Horde3D
http://horde3d.org/forums/

Latest trunk culls objects with large scale too agressively
http://horde3d.org/forums/viewtopic.php?f=3&t=738
Page 1 of 1

Author:  tlaukkan [ 12.05.2009, 20:38 ]
Post subject:  Latest trunk culls objects with large scale too agressively

I made a large object with two sided faces so it renders all right even if you are inside the object. The object radius is 1 inside blender. When I load this object with transformation scale of 100 to Horde3d the entire object disappears when camera is inside the object and object center or the original bounding box (I am not sure which) moves outside field of view. In debug mode though the wireframes and bounding box show correctly. Maybe the actual bounding box used by some rendering exclusion code is not respecting scale?

-tommi

Author:  tlaukkan [ 13.05.2009, 06:27 ]
Post subject:  Re: Latest trunk culls objects with large scale too agressively

This could some how be related to lighting as when I have several objects and one of them "disappears" I noticed that it is drawn with black color.

Author:  Volker [ 13.05.2009, 07:17 ]
Post subject:  Re: Latest trunk culls objects with large scale too agressively

Do you have errors in the log. My first thought was that if the rendering suddenly switches to black, that there is a texture not bounded correctly to the geometry. But maybe there is indeed another problem. Do you have tried it with a smaller scale?

Author:  marciano [ 13.05.2009, 07:39 ]
Post subject:  Re: Latest trunk culls objects with large scale too agressively

Is the scale factor the problem? Does it work when you set the scale to 1?

Maybe the problem is related to the two-sided faces. How did you realize them, is the geometry really duplicated for them? Just setting the option two-sided in your DCC tool would not work. If the second side (backside) is not real geometry, the face would only have one normal and hence the lighting would be wrong.

Author:  tlaukkan [ 13.05.2009, 08:05 ]
Post subject:  Re: Latest trunk culls objects with large scale too agressively

When I render the objects with normal scales (~1) they work without problems. Its problematic to get the Camera inside the object with those scales though so it might be that the problem is related on situation when camera is inside the object bounding box.

-tommi

Author:  marciano [ 13.05.2009, 08:21 ]
Post subject:  Re: Latest trunk culls objects with large scale too agressively

Could you try to decrease the camera speed and get into the object? We need to find out what exactly the problem is. I suspect that you just get backface culling since your "two-sided" faces are probably just regular triangles (with one side and one normal).

Author:  tlaukkan [ 13.05.2009, 09:44 ]
Post subject:  Re: Latest trunk culls objects with large scale too agressively

Hi

I have separate vertices faces for inside and they are showing correctly on small scale. According to my experience the sudden blackness of the entire object is not explained by back face culling. I will try viewing things from inside the object for smaller scales once I get home.

-tommi

Author:  tlaukkan [ 13.05.2009, 17:43 ]
Post subject:  Re: Latest trunk culls objects with large scale too agressively

I have tested further with large scale objects and I do not need to be inside the object to replicate the problem. Outside the effect is same. If the center/original bounding box of the large scaled object is rotated out of field of view then the entire object is instantly drawn with black color.

-tommi

Author:  tlaukkan [ 13.05.2009, 18:02 ]
Post subject:  Re: Latest trunk culls objects with large scale too agressively

Finally the problem turned out to be empty (only opening and closing tags) material file. With proper material rendering is correct as expected. Sorry about the wrong alarm.

-tommi

Author:  Volker [ 13.05.2009, 20:14 ]
Post subject:  Re: Latest trunk culls objects with large scale too agressively

Just what I mentioned in my first post

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/