RoomBuilder Code
by Ryan Mounts · in Torque 3D Professional · 03/08/2011 (6:44 pm) · 21 replies
RoomBuilder was a project I began last year that has fallen by the wayside (more info here). It allows the user to drag and drop objects, doors, and windows into the room. Doors and windows dynamically boolean subtract a hole for themselves out of the walls. Sunlight entering the room can automatically create realtime, fake radiosity. The code is supplied "as is" and is dependent upon the General Polygon Clipper (GPC) and Triangle++ libraries, which must be licensed to use in a commercial application.
Here's the link for the RoomBuilder code (Compatible with Torque 1.1 Beta 3).
Enjoy!
Updated 2/28/2013 to be compatible with Torque 3D Open Source 2.0
www.mediafire.com/file/j1wlkx7z5jbm4n4/RoomBuilderInstall2.0.zip
Here's the link for the RoomBuilder code (Compatible with Torque 1.1 Beta 3).
Enjoy!
Updated 2/28/2013 to be compatible with Torque 3D Open Source 2.0
www.mediafire.com/file/j1wlkx7z5jbm4n4/RoomBuilderInstall2.0.zip
Torque Owner Ryan Mounts
CornerstoneViz
@Frank, I don't think that it is strictly restricted to the plane, since the underlying wall code is modified MeshRoad code, but I would not expect it to work in typical MeshRoom fashion if you got off the plane. Particularly, the floor and ceiling assume that they are planar polygons. They might still decompose into triangles but probably with some bad kinks. I doubt the boolean subtraction would be correct either... probably be rotated or skewed in some fashion. Wouldn't hurt to try it, though. ;)