Posts

Auto import Kenny.nl 3d models to Godot using gdscript

Kenney.nl 3d kit have too many file and time consuming task to create a scene & collision shapes for each object.So i wrote  a gd script will import the files. 1.Copy the obj file to a folder and set the path according in the script. 2.Set the output path so the files can be written to the folder. 3.Create an empty scene and add a 'Spatial' node attach this script. 4.In the 'Inspector' window you need 'trigger_gen'  check box click that the script will execute. more comment in the code itself

Procedural Terrain Generation in GODOT using simplex noise

Image
Add a new "Mesh Instance" to the scene Attach a new script to the node Copy this script Goto to 3d view in the 'Inspector' click 'Trigger Generation'

How to render custom mesh i workspace and reload on property change in godot ?

Creating custom mesh in GODOT 1. Add a "Mesh Instance" node to the scene 2. Create a script make sure this instance " extends MeshInstance " 3. You can create custom mesh using 3 different ways       Surface tools      Immediate geometry      Using array      you can read more about this here       https://docs.godotengine.org/en/3.1/tutorials/content/procedural_geometry.html 4. After you created the mesh attach to node like this   " mesh=st.commit ". Note mesh variable already available in the Node. Rendering and reloading in work space  Add ' tool ' word at the top of the script  Add line  ' export(bool) onready var trigger_generation= false setget GenerateMesh '  at the top Add function        func GenerateMesh(_newval): if(_newval != trigger_generation): callMeshGenerationFunction() If you check the property in the ' trigger_generation ' in the ...