Game Development Community

No skin on export??

by Wolf Okami · in Artist Corner · 11/27/2008 (7:00 am) · 2 replies

I recently began making my own models in milkshape for my sonic game im working on. I exported the DTS shape and put in the code and everything but the texture is not there when i create it in game it doesnt show up in showtool either.

How would i:
1: make it collideable
2: Make it export with the texture
3: make it dissapear on collision instead of being walkthrough, just like the FPS ammo pack.

#1
12/03/2008 (5:55 pm)
1: make it collideable

Add a box to the Milkshape scene that fully encloses the model - this is the shape that Torque will use to test for collisions. Name it "Collision-1" (no quotes).

2: Make it export with the texture

Note that textures are kept as separate files - they are not included in the exported DTS file. Checklist for getting textures in Torque:

1. Torque only supports BMP, JPG, PNG format textures
2. The texture width and height must be a power of 2 (eg. 16, 32, 64, 128 etc). The texture does not need to be square.
3. The texture file must be in the same directory as the DTS shape

If you have checked all of these are correct, look at the dump file (dump.html) that is produced in the same folder as the DTS file. The end of this file displays the shape hierarchy. Check that the expected materials are listed.

3: make it dissapear on collision instead of being walkthrough, just like the FPS ammo pack.

Create an ItemData datablock for your object (look at the FPS ammo pack for an example), then add it to the Torque scene using the world editor.
#2
02/19/2009 (2:17 pm)
Thx this was helpful