Rendering the inside of hollowed objects
by Love "hyzen" Florg · in Torque Game Engine · 12/28/2001 (3:44 pm) · 8 replies
I made a hollowed cube in worldcraft, added it to a mission and put the player inside. It won't render! Why?
About the author
#2
12/28/2001 (6:36 pm)
Relighting the mission won't help unless there is an openning for the sun light. I'd recommend placing a light in WorldCraft. It's probably rendering, it's just all black.
#3
It's not black inside the cube, it just don't render at all (I see the skies etc).
It's like Torque thinks; "Hey! There's no way to get into this box, so why would I render it?" :)
12/29/2001 (6:30 am)
I both relighted and put a light inside. It doesn't work.It's not black inside the cube, it just don't render at all (I see the skies etc).
It's like Torque thinks; "Hey! There's no way to get into this box, so why would I render it?" :)
#4
Strange thought, but if you have a block inside your cube with the null texture, it can screw things up.
Make a cube with a normal texture, then a cube with the null texture, and make them touch eachother. When you test it in the game there are faces missing. The compiler treats brushes with the null texture just like any other brush, but invisible. So it cuts away faces if it thinks they can't be seen.
Wild guess, I know :)
Dark
12/29/2001 (7:28 am)
Are you sure it's hollow? I've had hollow interiors with no openings, and they work fine.Strange thought, but if you have a block inside your cube with the null texture, it can screw things up.
Make a cube with a normal texture, then a cube with the null texture, and make them touch eachother. When you test it in the game there are faces missing. The compiler treats brushes with the null texture just like any other brush, but invisible. So it cuts away faces if it thinks they can't be seen.
Wild guess, I know :)
Dark
#5
12/29/2001 (8:18 am)
When you make a level in Worldcraft your textures are stored in a .wad file. When you use it in the torque engine the textures must be out in a subdirectory. Are the textures correctly exposed and are you sure the path to find the textures is correct? In the tools directory check the tutorial on Worldcraft configuration to verify everything is correct.
#6
From the outside it renders as usual, and when I make a hole or a portal in a side of the cube, it renders the inside as apropriate.
12/29/2001 (10:11 am)
It's hollow, and the textures are all right.From the outside it renders as usual, and when I make a hole or a portal in a side of the cube, it renders the inside as apropriate.
#7
01/02/2002 (11:01 am)
I could have sworn I'd had an example like this that worked... but I just created one and it definitely does not render the interior. Look's like map2dif didn't export it, I counted the surfaces and map2dif definitely only exported the exterior surfaces. I'm not really all that familiar with the map2dir code, so I'm not sure if this is a "feature" or a bug. I suspect it's a feature, and that the converter is simply deleting spaces that are not accessible.
Torque Owner David Dougher
Pariah Games