Game Development Community

The case of the vanishing interiors

by Gerald Fishel · in Torque Game Engine · 04/15/2004 (6:54 am) · 3 replies

Hi all,

I seem to be having a problem with one of my interiors vanishing when I move to certain locations.

I am guessing it has something to do with the occlusion in the terrain manager, but I'm not certain.

The interior goes 'inside' of a terrain hill, perhaps that has something to do with it, but part of it is outside as well.

here are some screenshots of what I am seeing. I took them in world editor mode so you can see the bounding box, and that the box is not being occluded.

This SS shows it working correctly:
www.whogotgame.net/screenshots/ss1.jpg

This SS shows what happens if I move one step to the left from where the first SS was taken:
www.whogotgame.net/screenshots/ss2.jpg


The collision detection still seems to apply, if I shoot where the interior should be, I see bullet holes appear in mid air, just the rendering seems to be blocked.

Any ideas on how I can alleviate this problem would be great.

Thanks

#1
04/15/2004 (11:15 am)
That's very strange. Have you tried adding some code to make the occlusion check render its rays? Are there any invisible but collidable objects between you and the interior?
#2
04/16/2004 (2:27 pm)
Hi Ben,

Nope on both accounts. That's a good idea though. I'll see if I can get into the occlusion stuff this weekend. It will probably be useful to learn how Torque handles it all anyway.

Thanks
#3
04/16/2004 (5:05 pm)
It's actually really simple - a few lines in the scenegraph code.