[solved] Static Geometry tutorial problem

Problems building or running the engine, queries about how to use features etc.
Post Reply
Niubbo
Goblin
Posts: 211
Joined: Sat Jan 23, 2016 11:26 am
x 17

[solved] Static Geometry tutorial problem

Post by Niubbo »

Ogre Version: 1.12.8
Operating System: dx9
Render System: win10

Hi

I tested in my test application the tutorial of grass creation using some grass texture I have. The generation of meshes and entities works well but when i start to move the camera around the objects when I enter in particular angles, the planes starts to disappears, leaving first two and after only one, and they reappears when i return the camera to the original position. I don't find any particular logic respect the angle of view.

I attach an image with examples taken from the high where the number of planes for entity is visibile:
Image

You can see objects with three planes (on the left) with only one (on the right) and with two on the top.

Respect the tutorial I didn't use

Code: Select all

  mField->setRegionDimensions(Vector3(140, 140, 140));
     mField->setOrigin(Vector3(70, 70, 70));
Because in my application the map is already divided in quadrants and I attached a staticgeometry to each quadrant.

ANy idea about what can be the problem?

thanks
Last edited by Niubbo on Thu Sep 23, 2021 7:36 am, edited 1 time in total.
paroj
OGRE Team Member
OGRE Team Member
Posts: 1994
Joined: Sun Mar 30, 2014 2:51 pm
x 1074
Contact:

Re: Static Geometry tutorial problem

Post by paroj »

a plane is 0px wide when you look perpendicular to it. See e.g. this perspective of the Grass Sample:

Image
Niubbo
Goblin
Posts: 211
Joined: Sat Jan 23, 2016 11:26 am
x 17

Re: Static Geometry tutorial problem

Post by Niubbo »

Yes, but also when I turn around them, after a near 180° turn the image lost the planes:

Image seen from top-angled view; you can see the three planes

Image

after a turn it remains monodimensional

Image
Niubbo
Goblin
Posts: 211
Joined: Sat Jan 23, 2016 11:26 am
x 17

Re: Static Geometry tutorial problem

Post by Niubbo »

An additional info, it seems the problem appears onloy with the camera moving along the positive z direction respect the object; if the camera is in the negative z diretion respect the entity the deep effect is correct
User avatar
sercero
Bronze Sponsor
Bronze Sponsor
Posts: 449
Joined: Sun Jan 18, 2015 4:20 pm
Location: Buenos Aires, Argentina
x 156

Re: Static Geometry tutorial problem

Post by sercero »

Can you make a video?

Another thing: can you put a patch of grass that is using Stating Geometry and another that doesn't?

That way we can determine if the problem is SG or something else.
Niubbo
Goblin
Posts: 211
Joined: Sat Jan 23, 2016 11:26 am
x 17

Re: Static Geometry tutorial problem

Post by Niubbo »

Problem found: it was the material, it was necessary set to none culling software and hardware
Post Reply