WorldBuilding/MissionEditor/Adding Objects and Interiors

From TDN

This page is a Work In Progress.


Contents

Introduction

Adding objects to the mission is crucial to level design. Adding objects and interiors is very simple and easy to do. There are two ways you can add either to your mission. The first way is through the mission editor (mentioned in this article, and suggested if new to Torque). The second is manually adding it to your mission, both yielding the exact same thing.
Note: this article was written for users of a default Torque setup, any changes you've made to the source may affect the methods below. Also note that this is not an article on how to add characters or other "dynamic" objects, please search the rest of TDN for answers.



World Editor Creator

Steps to quickly adding items:

  • Put your items (with the textures) into the correct directory. (Check below for the correct directories)
  • Start Torque
  • Start selected mission.
  • Press F11
  • Then press F4
  • On the right, you'll see in the bottom box a selection of folders, open up the correct folder in relation tothe art you're adding. Remember, static shapes do not have any accompanying animations or scripts, so you'll probably want to search in this folder if you created an object.
  • Once you have navigated to the correct folder, click on the object , and it will appear in view of the current camera direction.
  • Relight the scene to remove black blobs if you have inserted an interior. Do this by pressing Alt+L. wait a while, especially if you have tons of items already in the mission.



FAQS

Q: My view turns completely black after inserting an object, except for the editor?
A: Zoom out, it is most likely the raycast ran into something very close to the camera, so it decided to place it close.

Q: I cannot seem to enter my mission after I've added objects, I get a message saying that I don't have the proper version, etc?
A: Make sure that all the objects are still in the same spots as they were when they were added to the mission, and make sure that all the textures are alongside the object files as well.


Default Art Directories

If the file is a *.DTS meaning an object, then the default directory is ./[insert modname]/data/shapes/

If the file is a *.DIF meaning an interior, then the default directory is ./[insert modname]/data/interiors/

You may put the art into however many subdirectories as you'd like.


External Links