Quick Tutorial Object to Entity - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Articles (https://www.frictionalgames.com/forum/forum-40.html) +---- Thread: Quick Tutorial Object to Entity (/thread-21024.html) |
Quick Tutorial Object to Entity - Rapture - 04-02-2013 Quick breakdown to making a object into a grab able entity. Quick Download if you want to practice with a Fork. Download Fork I'm taking the assumption the model works perfectly fine as a static_object (Since it takes no effort to make it into a static_object) and can be seen in-game. (1) Open the ModelEditor. Go to File > Import Mesh. Find the object you want to convert into a Entity, the file extension is a ".dae" http://imageshack.us/photo/my-images/571/modeleditor1.png/ (2) On the left side, click the second icon from the bottom shaped like a purple cube. On the right side you will be given 4 distinct shapes to make a mesh for your body. (The capsule must be stretched on the Y-Axis to make it longer!) Make the closest approximation of a body mesh that matches the object body. The closer it is, the better your entity will function when colliding with other objects. I raised mine just to show it, but if I was to bring it back down. It would envelope the Fork fairly well. http://imageshack.us/photo/my-images/109/modeleditor2.png/ (3) Once your done, select all the purple objects (Except for the model) and on the right side under the Tab "Shape", select "Create Body". The purple objects should now be green. http://img837.imageshack.us/img837/7004/modeleditor3.png Go to the "Body" tab and match the values & checkboxes shown in the picture below... http://imageshack.us/photo/my-images/41/modeleditor35.png/ Once your done, go to the "Attachment" tab and select the "SU" button. Hover over the model until it is selected and left-click once. If you move your cursor away, it should still be selected. Click "Done" back on the right side. http://img837.imageshack.us/img837/7004/modeleditor3.png Now if you move the Fork Model Around, you should see a Red Line tethering the Fork Model and the Green mesh object you made earlier. (If you move the Green mesh object first, you will see a Green line tethering to the two together.) http://imageshack.us/photo/my-images/600/modeleditor4.png/ (4) Go to the Menu Bar > Settings > User Defined Variables. At the top, change the Type to "Object" and to the right of it, change the Subtype to "Grab". http://imageshack.us/photo/my-images/405/modeleditor5.png/ (5) Once your done, close the User Defined Variables dialogue. At the bottom, click the big button with two gears on it. You are now ready to test out your Entity, left-click and drag and watch it loopy around. http://imageshack.us/photo/my-images/163/modeleditor6.png/ Do a Save As and make sure it's in the Amnesia the Dark Descent>entity>YourFolder and it will be ready to go into your game. ========================= If you want to do something like a Lightable Lantern, Door, Item, Valve, etc... Change the "Type" in the "User Defined Variables". And open a already working model from Amnesia so you can compare notes to make sure you get yours working also. RE: Quick Tutorial Object to Entity - plutomaniac - 04-03-2013 great tutorial, please add it to the wiki as well. |