Bug Report: multiple grassloaders in different bounds

Chaster

07-05-2008 17:03:55

First, let me say that this is an awesome project. I am very impressed with how well it works and how easy it is to use.

That said, I am running into a bug which probably only happens for me since I am doing something pretty, uh, different (I suspect).

What I am trying to do is use paged geometry in two different places in my scene. Specifically, I have two "islands" which I want to use cover with trees/grass/etc. The islands are separated by open space so I don't want trees/grass/etc. over the whole scene.

Each island is square (I'm using TerrainZones in the PCZSM). I created different tree loaders for each island and set their TBounds to match the islands. This works.

However, when I tried to do the same using two grass loaders, it didn't work. I get grass on the second island, but not the first. It's not a case of the grass just getting drawn below the terrain - it's definitely not there at all. To me, it seems that maybe the second set of TBounds is over-riding the TBounds of the first set, but that is just a guess.

Any ideas? I'm new to this plug-in and I just started using it two days ago so I haven't familiarized myself with the internals (yet).

Also, is there any way to rotate a whole set of trees/grass? I ask because I would like to rotate my islands, but it doesn't seem like paged geometry supports that.

Many thanks in advance,

Chaster

Amenothep

07-05-2008 19:28:11

use a densitymap where your waterarea is black :D

JohnJ

08-05-2008 01:44:28

I think this is a bug - I remember the property map system reuses property maps to save memory, and since boundaries are stored in the property maps, this could be causing the grass system to have problems if you use the same density map in multiple areas. I'll check it out and try to fix it soon.

Also, is there any way to rotate a whole set of trees/grass? I ask because I would like to rotate my islands, but it doesn't seem like paged geometry supports that.
You can rotate an entire PagedGeometry object and all geometry under it by accessing it's scene node with PagedGeometry::getSceneNode() and rotating the node as you like.

JohnJ

08-05-2008 01:54:21

Ok, I think it's fixed. Try the latest version from SVN if you can and let me know if it works :)

Chaster

08-05-2008 04:48:55

*UPDATE* Woohoo! It works! Thanks JohnJ!

However, I found another bug which I will start another thread for (so as not to make this one wander..)

Chaster


Thanks JohnJ! I will give it a try asap. I have to fix my application though first because somewhere in the last 3 days I introduced a weird bug which is causing all my billboard impostors not to draw (I know this bug is mine though, not PagedGeometry)..

Chaster