Horde3D

Next-Generation Graphics Engine
It is currently 29.03.2024, 14:41

All times are UTC + 1 hour




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: 12.05.2009, 20:38 
Offline

Joined: 10.05.2009, 07:55
Posts: 30
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


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2009, 06:27 
Offline

Joined: 10.05.2009, 07:55
Posts: 30
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.


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2009, 07:17 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
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?


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2009, 07:39 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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.


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2009, 08:05 
Offline

Joined: 10.05.2009, 07:55
Posts: 30
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


Last edited by tlaukkan on 13.05.2009, 08:06, edited 1 time in total.

Top
 Profile  
Reply with quote  
PostPosted: 13.05.2009, 08:21 
Offline
Engine Developer

Joined: 10.09.2006, 15:52
Posts: 1217
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).


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2009, 09:44 
Offline

Joined: 10.05.2009, 07:55
Posts: 30
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


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2009, 17:43 
Offline

Joined: 10.05.2009, 07:55
Posts: 30
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


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2009, 18:02 
Offline

Joined: 10.05.2009, 07:55
Posts: 30
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


Top
 Profile  
Reply with quote  
PostPosted: 13.05.2009, 20:14 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
Just what I mentioned in my first post


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 23 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group