saindd Posted July 2, 2015 Share Posted July 2, 2015 When trying to generate a bounding box for a shape inside the shape editor, the editor crashes. Select fit type "box" then fit target the model itself. Boom. It also crashes if you change the fit type to anything other than box. Quote Link to comment Share on other sites More sharing options...
Duion Posted July 3, 2015 Share Posted July 3, 2015 I never used bounding boxes, they look useless to me. Quote Link to comment Share on other sites More sharing options...
saindd Posted July 3, 2015 Author Share Posted July 3, 2015 How do you create player collision, then? Quote Link to comment Share on other sites More sharing options...
Duion Posted July 3, 2015 Share Posted July 3, 2015 Normally it is done by collision meshes, but the player collisions seem to be done by the bounds. But I think I once made a player and doing no bounding box and it worked.If you really want or need it create one in a modeling app and call it "Bounds" Quote Link to comment Share on other sites More sharing options...
saindd Posted July 3, 2015 Author Share Posted July 3, 2015 That's what i'm referring to. Look:http://torque-3d.readthedocs.org/en/latest/artist/playercharacter.html#bounding-boxWithout them, the engine is not able to create the collision properly and the player ends up falling through terrain and so on. However, i'm not creating one with the character and wanted to generate that inside the engine. The docs say it's fine, but the engine crashes. Quote Link to comment Share on other sites More sharing options...
TorqueFan Posted July 4, 2015 Share Posted July 4, 2015 The bounding box and the collision meshes are 2 different things, and each serves a different purpose. What Duion says is true, in a way, but only when dealing with the actual player character that the client controls. As I recommended in your other posting @saindd you should setup the player's bounding box dimensions in the player's datablock file. There are fields there for the bounding box and crouching bounding box, etc. The player is an exception to the rule, in that the bounding box dimensions setup in the player's datablock will also be the player's collision box. Other objects actually use bounding boxes and collision meshes as they 'normally' should be - The bounding box determines visible bounds and the collision meshes determine actual collision. You can see how this works pretty easily:• Create a large cube taller than the player in size.• Create a bounds box for the cube, say half the size of the cube so that the bounds box is too small and fits inside the cube.Toss the cube into a scene and look at it. If you turn the camera to the side, the cube will disappear when the bounds box goes out of view. This is totally incorrect because you'll notice when the cube is not in view and you turn to look at it again it won't render until the bounds box is on screen again. So you end up with a cube that should be rendered but isn't until you're looking closer to its center. Collision meshes are pretty self explanatory, quite simply they are what you actually collide with. I just wanted to point out the functional differences between the two. Quote Link to comment Share on other sites More sharing options...
saindd Posted July 4, 2015 Author Share Posted July 4, 2015 How do you determine them in the datablocks? Also, wouldn't that be bad, due to differently sized player models? Quote Link to comment Share on other sites More sharing options...
TorqueFan Posted July 5, 2015 Share Posted July 5, 2015 How do you determine them in the datablocks? • Navigate to art/datablocks/player.cs• In the datablock PlayerData(DefaultPlayerData) (this is the player datablock...), find the line: boundingBox = "0.65 0.75 1.85"; • Adjust to your heart's content. The first number is the x value (from the center), the second the y, and lastly the z.• Profit Also, wouldn't that be bad, due to differently sized player models?Of course not, since you'd want a different datablock for every different model! Quote Link to comment Share on other sites More sharing options...
saindd Posted July 5, 2015 Author Share Posted July 5, 2015 Is there a way of having some visual feedback when setting the bounding box? Quote Link to comment Share on other sites More sharing options...
saindd Posted July 20, 2015 Author Share Posted July 20, 2015 Nope? :( Quote Link to comment Share on other sites More sharing options...
marauder2k9 Posted July 21, 2015 Share Posted July 21, 2015 if u have your heart set on creating a bounding box this way then u would have to code in the ability to draw a bounding box, most people dont bother with this in a shape editor though just create your bounds in an art package like 3ds max or maya or something? like duion said. Quote Link to comment Share on other sites More sharing options...
rlranft Posted July 21, 2015 Share Posted July 21, 2015 (edited) Oops - they must have reset the Matrix.... Edited July 22, 2015 by rlranft Quote Link to comment Share on other sites More sharing options...
rlranft Posted July 21, 2015 Share Posted July 21, 2015 No. One unit in your modeling application is one unit in Torque. So if your model is two meters tall in Max, the bounds should be about "2.2 2.2 2.2" in Torque to start (tweak to fit expected behavior).On the other side of this - the Shape Editor shouldn't crash. This would be pretty handy if it worked right.... Quote Link to comment Share on other sites More sharing options...
saindd Posted July 21, 2015 Author Share Posted July 21, 2015 Can anyone try to reproduce this problem? It's quite easy to do. Hopefully it will get the attention from someone maintaining that part of the code. Quote Link to comment Share on other sites More sharing options...
marauder2k9 Posted July 21, 2015 Share Posted July 21, 2015 do u have a way of uploading your model file and letting us use the same mesh you are using? Quote Link to comment Share on other sites More sharing options...
saindd Posted July 22, 2015 Author Share Posted July 22, 2015 Just use any mesh without a "bounds" object inside the DAE file. And try to create the bound inside the Spae Editor. It crashes. Quote Link to comment Share on other sites More sharing options...
marauder2k9 Posted July 22, 2015 Share Posted July 22, 2015 Here is a crate. I deleted the environment light node after this image was takenhttp://i.imgur.com/Y0DnA1N.pngThen here it is with the generated col boxhttp://i.imgur.com/WeGgz3d.png Quote Link to comment Share on other sites More sharing options...
marauder2k9 Posted July 22, 2015 Share Posted July 22, 2015 Would you mind talking me through what u are using to create the meshes and how they are exported and brought in to torque? It works for me on my build of torque, although i have messed with the torque code on shapes quite a bit i don't think i have changed any code that controls how bounds are generated, i will try it again on a fresh torque build and see what happens. Are you using the EXE files you download separately? and are u using 32bit or 64bit? Quote Link to comment Share on other sites More sharing options...
saindd Posted July 22, 2015 Author Share Posted July 22, 2015 Max > DAE Exporter > Save into art/blah/blah > Open Shape Editor > Open collision tabTry to change the fit type. Also, which log should i send to help developers debug this?ps.: I'm on Win x64. Quote Link to comment Share on other sites More sharing options...
rlranft Posted July 22, 2015 Share Posted July 22, 2015 console.log Quote Link to comment Share on other sites More sharing options...
marauder2k9 Posted July 22, 2015 Share Posted July 22, 2015 Collada file formats are not the same throughout art programs due to collada being a totally open file format, to get mesh files to work inside torque 3d i had to use Open Collada's exporter instead of the one native to max, could you try that and see if it fixes the problem?Heres a link just incase https://code.google.com/p/opencollada/downloads/detail?name=OpenCOLLADA_3ds_Max_1.3.1_x64.msihttp://i.imgur.com/wcR8OsY.pnghttp://i.imgur.com/wFMVjGY.pnghttp://i.imgur.com/BVZNgA4.pnghttp://i.imgur.com/QX6zFZi.pngThese were all done one after the other and not a single crash =/, some pretty uncanny results but thats cos the mesh isn't centered in the dae file i think Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.