HungryProton / scatter

Godot engine addon to randomly fill an area with props or other scenes
MIT License
2.18k stars 97 forks source link

Unable use my own scenes with ScatterItem. #167

Closed Loppansson closed 7 months ago

Loppansson commented 1 year ago

Hi!:) I'm for some reason unable to use by own scenes in ScatterItem. I'm trying to scatter the plant model in the bottom right, but putting the scene path into the ScatterItem doesn't generate anything but empty air. The bricks, and all other assets that come with the plugin work fine though. Any ideas of what's causing it to not work?:)

Screenshot from 2023-10-05 11-39-32

Screenshot from 2023-10-05 11-45-20

Settings for ScatterItem; only changed Path:

Screenshot from 2023-10-05 11-45-39

My scene for the plant model:

Screenshot from 2023-10-05 11-47-02

TokisanGames commented 1 year ago
Loppansson commented 1 year ago

Just having the plant's leves me with nothing (here all scatter sums == 100):

Screenshot from 2023-10-05 15-10-18

Replacing the grass in the scene with my assets leaves me with this ^^':

Screenshot from 2023-10-05 15-11-53

So, any ideas on what about my asset scene causes the problem?

Screenshot from 2023-10-05 15-13-52

Xtarsia commented 1 year ago

An odd one, but check if something in your scene has a big scaling factor? It may actually be rendering but so small that it doesn't even fill 1 pixel.

Sometimes I've imported models and the parent node has 100x scale, and the actual mesh is tiny.

You can uncheck "ignore scale" etc in the scatter object if that is the case.

Also, nice to know exactly what "proportion" does!

TokisanGames commented 1 year ago

Duplicate Hungry's cube scene, get it working in scatter. Add your plant to it. Piece by piece take over this scene until you figure out the cause.

Loppansson commented 1 year ago

Sometimes I've imported models and the parent node has 100x scale, and the actual mesh is tiny.

That was the problem! Thank you! Now i just gotta set "Scale Multiplier" = a casual 10,000 xD

Loppansson commented 1 year ago

Tho, the shadows be looking weird:/

... wait, i fixed it! changed back the scaling and changed "Render Mode" to "Create Copies".