Game Development Community

Interior, exterior linking

by Ty Icepaws · in Constructor · 11/20/2008 (12:12 pm) · 1 replies

I was just wondering im on the cusp of chosing a game engine and starting a small game studio. In my game im gonna have pretty large/detailed interiors , what i was wondering is do i have to just create the building inside and out as on complete mesh or do i create an interior an exterior mesh an link them with a telepoter? srry if this seem like a stupid question, i just heard that tgea has problems with complex interiors

thanks. Ty Icepaws

#1
11/20/2008 (4:35 pm)
You just create one whole building (or whatever) and place portals in the doorways, windows, etc. When you export the building to the DIF file format, the exporter takes care of everything. What's inside the portals becomes the interior and what's outside the portals becomes the exterior. Then Torque automatically takes care of culling the part that isn't visible from the player's perspective. The tricky part is learning proper CSG techniques, because the portalling process can be somewhat unforgiving at times.

Also in Torque, any CSG object or building in the DIF format is referred to as an "Interior" in Torque. So don't think when you see this term that it means the "inside" of a structure. An "Interior" can be a small simple object, a single house with LODs, multiple buildings in a city block, or whatever you want to stick in the DIF file.