Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Quick Tutorial Object to Entity
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#1
Quick Tutorial Object to Entity

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...itor1.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...itor2.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/...ditor3.png

Go to the "Body" tab and match the values & checkboxes shown in the picture below...

http://imageshack.us/photo/my-images/41/...tor35.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/...ditor3.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...itor4.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...itor5.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...itor6.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.
04-02-2013, 11:02 PM
Find
plutomaniac Offline
Super Moderator

Posts: 6,368
Threads: 45
Joined: May 2011
Reputation: 183
#2
RE: Quick Tutorial Object to Entity

great tutorial, please add it to the wiki as well.
04-03-2013, 01:05 PM
Find




Users browsing this thread: 1 Guest(s)