Jump to content

[SOLVED] Billboard tree height issue


photo

Recommended Posts

When using grass based impostors, there's a problem with the height of the billboards. When changing the size, the billboards scale from the center, not the bottom.

Here's an example. This is tree billboard that has been added to the world as part of a grass object. It's height is set to 30 meters. Notice the red lines marking the top and bottom.

post-1189-0-64691000-1458950400_thumb.jpg

 

This is a shot of the same tree with it's height set to 10 meters. The bottom of the billboard shifts upward dramatically. 

post-1189-0-54687800-1458950612_thumb.jpg

 

The problem here is that the billboards are meant to seamlessly replace WorldClutter objects (like trees) at a distance, but the scaling behavior of the impostors is different than the scaling behavior of WorldClutter objects. This also renders the min/max height function unusable, because if the trees have any height variation, most of the billboards will be floating above the ground. 

Link to comment

Hi,


 

If I understand you correctly, please, try to check forest sample in Samples demo (samples_2/natures/forest).

Try to Disable fir_meshes MeshClutter, increase near visibility distance of fir_billboards object and set min/max height.

 

So, you can check, that small trees do not hanging and big trees stands on the terrain, not under it.

post-737-0-57034400-1459154562_thumb.png

Then reparent grass from terrain and set it on the plain, position of the impostors will be the same: small trees on the ground, not hanging.

 

If it do not solve your problem, I'm afraid we need a simple test scene or step by step instructions.

Link to comment

You're right, I discovered that this was happening because the grass object's transform was scaled. I recreated the grass object with a scale of 1 and this feature worked as expected. 

 

Thank you!

Link to comment
×
×
  • Create New...