Scatter On Surface Extension For Gdevelop

This extension allows you to scatter and place objects procedurally on height map 3D object or any 3D model. The extension comes with its own LOD system that specifically work with this extension. The objects can be scattered as instanced meshes or regular objects.

Important Notice:

The extension is still in development, so future updates might now be compatible with previous versions, but I will provide downloads for all the versions in this page.


Demo Controls

  • WASD & Mouse or Touch screen & Buttons
  • Left click or touch button to Cut down trees
  • P for show Performance Monitor
  • Hold Shift to Run

Extension Actions:

There are two main categories and separate LOD system for each category. It can be find under the Advanced category or typing "scatter" in the search bar.


Instanced Scattering:

This system utilize instanced mesh. It allows to create millions of objects. objects will not have collisions and cannot be interacted. Good for grass and small pebbles on the ground etc.

  • Instanced Scatter on 3D object surface
  • Instanced Scatter on HeightMap3D
  • Update LOD for Instanced Objects

Normal Scattering:

This system create object in regular means. Objects can have anything like collisions and can be interacted. Good for objects that player or game logic can interact, such as trees and big rocks etc.

  • Scatter on 3D Object Surface
  • Scatter on HeightMap3D
  • Update LOD For Normal Objects

Scatter Setup Behavior:

Essential part of the system, It allows you to setup LOD levels, LOD distance and randomization values.

HOW TO USE:

  1. All the scattering actions must be called At the beginning of the scene.
  2. The object that is to be scattered must have Scatter Setup behavior. LOD1 and LOD2 version of the object does not need to have the behavior.
  3. Update LOD actions must be called as Always Event (action without any condition)
  4. I will make a video tutorial soon.

IMPORTANT THINGS:

  1. For scattering systems to work, you must add at least one instance of the object and its LOD levels in the scene. doesn't matter on which layer. So you can put in a different layer then hide the layer.
  2. Use Minimum distance value with caution. With huge amount of object count and big minimum distance value might cause long loading times.
  3. Base Scale factor in the Scatter Setup behavior is for instanced scattering system. For normal scattering your object's main scale factor will be used.
  4. Object Names for LOD levels are case sensitive. If you leave empty it will use the one level higher object for the LOD distance calculations.
  5. Update LOD for Normal Objects is needed to see scattered Normal objects. So it is NOT possible for system to create objects without LOD system is running.

Planned Upcoming Features:

  • Better minimum distance calculation.
  • Vertex shader for swaying in the wind.
  • Object groups support
  • Limiting the object placement with b&w image file

Check Out My Other Gdevelop Extensions!


Support My Work

If you find this extension useful and want to see more tools for GDevelop, please consider supporting my efforts!

Buy Me a Coffee at ko-fi.com


Updated 3 days ago
Published 18 days ago
StatusIn development
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorEldarduil
GenreSimulation
Made withGDevelop
Tags3D, extension, Procedural Generation, Walking simulator

Download

Download NowName your own price

Click download now to get access to the following files:

ScatterOnSurface.json 78 kB

Development log

Comments

Log in with itch.io to leave a comment.

(+1)

Nice!

(+1)

Amazing, you are very creative

Thank you so much!

(+1)

Beautiful, you really feel the nature. Congrats.

thank you so much!

(+1)

The extension that goes hand in hand with the new 3D editor 💪🏻 How can I keep track of it being released?

I will update this page, so you can follow me here

(+1)

bravo, i cant wait

(+1)

I know you did wait a lot, but soon I will release it.