size in irrlicht[solved]
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
size in irrlicht[solved]
I am sorry for all these questions but really it is a problem how do i know my size of the mesh in irrlicht example: my mesh is 30cmx30cmx30cm so what unit does irrlicht use cm or meter or inch !!?
Last edited by omar shaaban on Sun Apr 08, 2007 12:55 pm, edited 1 time in total.
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
-
- Posts: 19
- Joined: Fri Nov 18, 2005 4:14 pm
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
-
- Posts: 19
- Joined: Fri Nov 18, 2005 4:14 pm
What you're really asking is "how many units in Irrlicht correspond to one centimeter in my modeling tool," but unfortunately this is difficult to answer, because not only do we not know what tool we're using, but we don't know what file format you're using, nor exactly how the file is exported, nor how Irrlicht imports that file format. Your best bet is probably trial and error. I would be surprised if factors of ten didn't work, however.
-
- Posts: 277
- Joined: Thu Dec 15, 2005 6:11 pm
I agree here. A unit is just that, a unit. In max/blender/whatever you use, if your model is 10 units tall, then in Irrlicht, it should be ten units tall, unless either the exporter or loader scales it, or YOU scale it yourself. Now, depending on the camera, you might barely see the object or it make take up the whole screen, though it is the same object. Try it in meshviewer and you'll see what I mean. For example, .md2 meshes that came with quake2 were hugh, like 80-100 units tall. But I don't know if Quake2's engine scaled them down. But if I were to use the model in my code, I would have to because that is like one third of the world. So it depends on you. Try different scales and see what works, then use it.cowsarenotevil wrote:What you're really asking is "how many units in Irrlicht correspond to one centimeter in my modeling tool," but unfortunately this is difficult to answer, because not only do we not know what tool we're using, but we don't know what file format you're using, nor exactly how the file is exported, nor how Irrlicht imports that file format. Your best bet is probably trial and error. I would be surprised if factors of ten didn't work, however.
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact:
-
- Posts: 83
- Joined: Wed May 23, 2007 6:11 pm
lol, after reading through this i fell as if my head is going to explode. What exactly don't you get about there just being units? Not centimeters. Not feet. Not miles. Just units. Irrlicht certainly doesn't "apartently use metrics", it uses units. How 3D packages and irrlicht represents those units though, is the problem. If you model something 10 units long, stick that into ur app, create a cube node or something in irrlicht that is 10 units and then compare their lengths. Fiddle around untill you get them exactly the same size. From the sizes of boths nodes then, you can find a ratio that you can use straight away whenever, but ull need to do the tedious fiddling now though.
Good luck.
Good luck.
Guerilla Softworks
New Guerilla Softworks website under construction - http://guerillasoftworks.awardspace.com
New Guerilla Softworks website under construction - http://guerillasoftworks.awardspace.com