612 Commits

Author SHA1 Message Date
nic96
dede34acf1 Raycast shouldn't hit geometry type none 2020-07-05 19:15:08 -06:00
nic96
fe3c433f76 Transparent blocks should get hit by raycast if they have a collision aabb 2020-07-05 18:30:50 -06:00
Marc Gilleron
60d32ec006 Make stream and generator script methods optional, fixes errors in editor 2020-05-09 00:46:17 +01:00
Marc Gilleron
21fc777ed8 Fix wrong print 2020-05-08 23:03:07 +01:00
Marc Gilleron
33d38e61b1 Merge branch 'master' into voxel_gen_graph 2020-05-08 18:09:09 +01:00
Marc Gilleron
182352e903 Merge branch 'master' of https://github.com/Zylann/godot_voxel 2020-05-08 17:57:10 +01:00
Marc Gilleron
800febfab6 Implement duplicate() on Voxel 2020-05-08 17:57:00 +01:00
Marc
e57a39d467
Merge pull request #141 from nwdamgaard/master
Generate a collision mesh for each surface
2020-05-08 17:24:13 +01:00
Nathan
a17ab8bbe7 clean up for Zylann 2020-05-07 17:33:16 -07:00
Nathan
6b43c9a187 General improvements 2020-05-07 13:55:16 -07:00
Marc Gilleron
600942564c Fix crash when a VoxelTerrain is used without a stream 2020-05-07 21:13:47 +01:00
Nathan
713c57388a Changing the approch once again due to misunderstanding Zylann 2020-05-06 19:47:00 -07:00
Nathan
6db4246e9a Missed something to clean up 2020-05-06 16:20:24 -07:00
Nathan
c69afee67f Clean up some stuff that should not have happened 2020-05-06 16:14:11 -07:00
Nathan
704f491678 Instead of regenerating the mesh, simply join all the meshes together 2020-05-06 15:48:31 -07:00
Marc
5ed58995d5
Merge pull request #140 from thorlucas/master
Added raycast case for integer positions
2020-05-06 22:55:20 +01:00
Nathan
89691f6ece Added function in mesher to create collision mesh 2020-05-06 14:42:46 -07:00
Nathan
e045c0f350 Generate a collision mesh for each surface 2020-04-28 21:50:37 -07:00
Thor Correia
3e79f5e7e7 added raycast case for integer positions 2020-04-24 13:30:44 -07:00
Marc Gilleron
f73e566535 Added smoothstep 2020-04-05 19:53:07 +01:00
Marc
1521f0d940
Merge pull request #132 from tinmanjuggernaut/fix_warnings
Fix build warnings on other platforms
2020-04-03 14:02:58 +01:00
Cory Petkovsek
d407d6201a Fix build warnings on other platforms 2020-04-03 20:46:29 +08:00
Marc Gilleron
9ce0ded22e Added a bunch of operation types, untested 2020-03-20 00:21:09 +00:00
Marc Gilleron
4176894383 Editable default inputs 2020-03-08 19:23:48 +00:00
Marc Gilleron
d1f00537d5 Parameters are editable (not default inputs, need to do them after) 2020-03-08 00:46:55 +00:00
Marc Gilleron
ba612187fb Fix node dragging, made it undoable 2020-03-07 02:18:36 +00:00
Marc Gilleron
43b99975f3 Loading and saving of voxel graphs 2020-03-07 01:34:30 +00:00
Marc Gilleron
fab3e791d8 Implement undo/redo, which also marks the resource as modified 2020-03-03 00:19:25 +00:00
Marc Gilleron
81909567be Implemented add, remove, connect and disconnect nodes from editor 2020-03-02 00:15:54 +00:00
Marc Gilleron
e7c720ceeb Added barebones editor plugin to edit VoxelGeneratorGraph (does nothing for now) 2020-03-01 18:12:16 +00:00
Marc Gilleron
a3b623ad3d Optimize parts of the graph that only depend on X and Z, so they run in the outer loop 2020-02-29 22:35:55 +00:00
Marc Gilleron
a3b64c3983 A bit of reorganization:
- Merged VoxelGeneratorGraph::Node into ProgramGraph::Node
- Separated compilation and execution to its own class
2020-02-29 00:17:47 +00:00
Marc Gilleron
dcc53d9351 Added can_connect() and get_node_type_id() 2020-02-27 00:17:15 +00:00
Marc Gilleron
5aa7c4cbd6 Fix missing data in node type info dict 2020-02-26 22:26:22 +00:00
Marc Gilleron
815954bc03 Added graph edition methods and exposed to script API 2020-02-24 23:03:41 +00:00
Marc Gilleron
dbca01de59 Implemented more accurate noise range detection, moved range utils to their own file 2020-02-24 19:32:18 +00:00
Marc Gilleron
de3707ab6b Put some Interval functions in the same space as regular functions 2020-02-23 21:46:09 +00:00
Marc Gilleron
f785589ebe Implemented DFS in ProgramGraph, I might need it later 2020-02-23 21:05:04 +00:00
Marc Gilleron
f4a5b36fe9 Moved node DB to its own file 2020-02-23 19:08:14 +00:00
Marc Gilleron
c87dc49046 Implemented duplicate() 2020-02-23 02:50:04 +00:00
Marc Gilleron
3a579dfb3e Merge branch 'master' into voxel_gen_graph 2020-02-23 01:57:14 +00:00
Marc Gilleron
9f7a081dd4 Non-cube voxels don't contribute to AO for now 2020-02-23 01:29:32 +00:00
Marc Gilleron
f5001fdc07 Merge branch 'master' into custom_blocky_mesh
# Conflicts:
#	util/array_slice.h
2020-02-22 22:55:50 +00:00
Marc Gilleron
927f7c4e3f Moved interval.h to the math/ folder 2020-02-22 22:52:19 +00:00
Marc Gilleron
07905ba580 Renamed evaluate in ProgramGraph to a more descriptive name 2020-02-22 22:45:22 +00:00
Marc Gilleron
60fb709c1c Added range analyzis to automatically find when a block will be uniform 2020-02-22 22:11:07 +00:00
Marc Gilleron
258b211560 Fix box bounds going off charts 2020-02-21 20:27:18 +00:00
Marc Gilleron
f0a8d7e169 Update inspector when bound type is changed 2020-02-21 20:26:39 +00:00
Marc Gilleron
ce2b50fe1e Added boundaries to avoid computing the graph in blocks it doesn't need to run 2020-02-21 00:08:26 +00:00
Marc Gilleron
af09121c9f Fixed a bunch of things 2020-02-19 21:59:41 +00:00