Game Development Community

Blender and objects with collision

by Pseudonym Acronym · in Torque 3D Beginner · 07/10/2013 (10:11 am) · 12 replies

Total noob here, completely unaware of any of the lingo and orismology...

I just recently downloaded torque and did *most* of the FPS tutorial. Naturally, I wanted to jump in feet first and make a map with my own stuff instead of ripping off art from the tutorial. To make a long story short, I'm having a great deal of difficulty getting torque and blender to talk to each other... I've been exporting stuff as collada and setting all of the collision features I could find to the same as used in walls, etc for the FPS tutorial. Unfortunately, torque
a) is sporadic in which polygons it decides to allow to exist
b)only occasionally decides that an object is worthy of collision
c)decides that whatever texture I apply is definitely a shade of completely and utterly black.

How do I build objects in blender and get them to cooperate in torque? Can't torque just use an objects native mesh instead of an annoying collision box? How? Why are parts of my objects dissapearing? any help would be appreciated.

About the author

Recent Threads


#1
07/10/2013 (10:56 am)
I think, every object you import to Torque you have option in object mode in its properties for collision, of course different options, see offline or online documentation,

I myself new to Torque 3d.

Good luck
#2
07/10/2013 (11:28 am)
Give us some examples of what you are talking about -- picture help people like me out a lot because I am a visual learner. I think that the sporadic polygons issue is related to inverted faces in Blender. The collision is based on what type of object you are importing the collada object as. For instance, objects that move do not have collision unless it is a player model. The texture issue may be due to textures being mapped incorrectly in Blender prior to export.
#3
07/10/2013 (11:39 am)
The FPS Tutorial is not the only Torque Documentation. Though there isn't much information for modeling in Blender there you will find loads of information relating to collision, animation, materials, etc.
#4
07/10/2013 (11:58 am)
You can switch to use the visible mesh for collision in the properties panel, otherwise a collision mesh is just a basic mesh with no material or else that name starts with "col"
#5
07/10/2013 (1:34 pm)
Uh... I just screenshot stuff so people would know what i'm talking about, but can't seem to upload it.

I switched to visible mesh, and it works... kind of. Projectiles simply go straight through the object.

The other documentation says "The file should load extremely fast, but you may not be able to see it right away." Perhaps this is causing the dissapearing mesh effect? How do I know?
#6
07/10/2013 (3:08 pm)
You have collision and decal mesh, you have to switch both to visible mesh so bullets will hit it also or better the decals.
#7
07/10/2013 (4:19 pm)
what in the world is a decal?

Anyway, I set the decal meshes for stuff, and it worked... even for the objects that stubbornly insist on being invisible.

Here's what happens: I export as a collada, stick it in the right folder, and put it in my world. I get the handles that change the coordinates and the little white boxes that show object dimensions. But the object simply isn't there.

Furthermore, I have a protrusion on a different object. My collisions are all set to visible mesh, but you can walk through / shoot through the protrusion. Furthermore, if you step inside the protrusion and shoot a grenade, the grenade will bounce around inside the object.
#8
07/10/2013 (4:24 pm)
Add a bounds box to all of your objects in Blender - just make a box with no material that encloses the object and attach it to the object - and name it "bounds".

Ok, add a bounds box to one object and test. I can't say it'll fix anything, but stranger things have happened....
#9
07/10/2013 (6:07 pm)
Say-- if an object has no material, would it default to invisible?
#10
07/10/2013 (6:31 pm)
yes
all you have todo to ensure a object is displayed
is to assign a material in blender
#11
07/11/2013 (8:58 pm)
Hey, thanks guys. Some of this stuff worked, some of It I had to find elsewhere, but I really appreciate it. Would you guys mind shooting me a link of a really good blender tutorial on how to texture stuff?
#12
07/12/2013 (4:17 am)
There are lots of Tutorials on www, I thinks best are here

http://cgcookie.com/blender/

http://www.blenderguru.com/