Game Development Community

Subterrainian / Underground Interiors

by DIAG · in Torque Game Engine · 11/20/2004 (4:41 am) · 7 replies

Hey all,

i was just wondering if there was any way to do underground interiors.
i have tried the setEmpty to clear the terrain for the entrance to the interior - but this is messy, and difficult to match up to the interior entrance properly.

also, if not matched well, the terrain is drawn inside the interior - the interior is a .dif file, a simple room, with a door, and compiles properly from map to dif.

i realise that the collision meshes are for the player avatar and other objects, but i thought the terrain shouldn't draw itself through a colision mesh - obviously i am wrong!

anyway, any help would be appreciated, as it seems overly difficult to match your model interior to the deleted terrain poly.

thanks.

#1
11/20/2004 (4:53 am)
Do you have a portal at your door? I think if you have the terrain wont draw inside.
#2
11/20/2004 (5:34 am)
Erm...okay.
i ain't no modeller (i ain't getting on no plane!),

how do i do add a portal?

(i'm not trying/training to be a modeller, i'm a programmer learning torque, and just want to do a few things before i get proper content).

cheers david.
#3
11/20/2004 (5:35 am)
Its done in Quark - so no way around playing modeller ;-)
#4
11/20/2004 (5:50 am)
Oh well.
:)

actually, just while i have a few peoples attention,
i have done a lift shaft type model in ms3d,
which i export as a general .map file,
and whenever i dop that onto the map2dif, or try to load it with quark, i get a 'error: div by zero' (somehthing like that, i dont remember it word for word.).

it must be something in the way im constructing the model yeah?
(i hope this doesn't require a huge answer, i've looked in the forums but couldn't find anything like this).

thanks!
#5
11/20/2004 (6:39 am)
Hey,
the basic room that there when you click new torque map, has a portal for a door right?
so when i put that in the level, the terrain is not drawn through the interior room, when you are inside the room.
but when the camera/avatar is outside of the room looking in, the terrain IS drawn inside the room.
what am i doing wrong?
#6
11/20/2004 (7:19 am)
DIAG, I think the artifact you are seeing in your last post is due to the 'zoning' done on interiors. When you are inside the building looking out, it should only draw parts of the terrain that are visible through the door. Since the parts of the terrain that poke through the interior shouldn't be visible from inside, it tries to cull them out and not render them. If you are outside looking in, all the terrain around the interior is visible, and so all that terrain is drawn, including the parts that poke through the interior.

To answer your original question, it is hard to get a good matchup between an interior and the terrain blocks. I basically had to carve out a big hole in the terrain--bigger than I had planned to, anyway--and then make the brushes around the dungeon entrance larger to fill in the extra blocks of the terain hole. It works reasonably well, but with some more tweaking I suppose it could be improved. There is a snapshot in my GID plan
#7
11/20/2004 (8:41 am)
Fair enough.
thanks!