dreadpon / godot_spatial_gardener

A Godot plugin for painting plants and props on arbitrary 3D surfaces implemented in GDScript
MIT License
829 stars 38 forks source link

[BUG] Foliage disappearing #54

Open HEofOttoman opened 5 months ago

HEofOttoman commented 5 months ago

Godot version Specify a numerical Godot version you are using. Include Git commit hash if possible. 4.2.2

Plugin version Specify a numerical Spatial Gardener version you are using. Include Git commit hash if possible. 1.3.3, latest version as of 22nd of May 2024

Platform What platform you were using, when you encountered this bug? Windows 11

Issue description Describe your issue. What is expected to happen? What actually happened? Painted foliage disappears when I save and then reload the scene. This seems to be an old issue apparently fixed, so sorry if I did something wrong. The foliage was painted on terrain from a plugin known as Terrabrush. This issue also seems to be mentioned in #37

Steps to Reproduce Describe steps for others to reproduce this issue Example:

  1. Go to assetlib
  2. Search for Terrabrush
  3. Click on Terrabrush and download the plugin,
  4. Click on Spatial Gardener and download the plugin
  5. Create a new Terrabrush node
  6. Create a new gardener node
  7. Set a working directory for the gardener
  8. Click on the new plants button and add a new plant
  9. Click on LOD variants and add a new LOD
  10. Drag a mesh to the new LOD
  11. Paint on the the terrain. Notice the bounding box being around the painted foliage
  12. Save the scene and reload
  13. Observe the foliage's disappearance.
  14. Paint the terrain once more
  15. Observe the foliage bounding box mentioned in no.11 now starting at the center of the scene.

Minimal reproduction project Footage: image Image: Bounding box starting at the center of the scene {Video unable to be uploaded}

SpeckDaKuhLeer commented 3 months ago

Hi, not a solution, but maybe a workaround for you. I had the same Problem with the trees. I got rid of this issue, by having an LOD without transparency and just quad meshes with a single color as leaves. Then we played around with the Octree settings. image

HEofOttoman commented 2 months ago

i would post a video. but Github's 10 MB file limit would not allow me to.