Irrlicht units in meters

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
RdR
Competition winner
Posts: 273
Joined: Tue Mar 29, 2011 2:58 pm
Contact:

Irrlicht units in meters

Post by RdR »

Hello,

I'm using Bullet (with irrBullet) and they suggest to use 1 unit = 1 meter for most realistic physics etc.
So I created all my models in Maya in meters, but when I load them in Irrlicht its in 100 times bigger (or just in centimeters).

What is the default units in Irrlicht?
How much is 1 unit in Irrlicht?
Should I scale all my models to 0.01 or is there a better solution?

How are you guys deciding what units to use?
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

Irrlicht does not specify a set unit size, a unit can be anything you want it to be

The safest bet is to take 1 unit = 1 meter in irrlicht and scale the units used in the tools you're using accordingly, a 1 unit = 1 meter approach is also the safest option for avoiding floating point precision errors

I've never actually worked with Maya, but there should be an option to set up your world units
RdR
Competition winner
Posts: 273
Joined: Tue Mar 29, 2011 2:58 pm
Contact:

Post by RdR »

Radikalizm wrote:Irrlicht does not specify a set unit size, a unit can be anything you want it to be

The safest bet is to take 1 unit = 1 meter in irrlicht and scale the units used in the tools you're using accordingly, a 1 unit = 1 meter approach is also the safest option for avoiding floating point precision errors

I've never actually worked with Maya, but there should be an option to set up your world units
Thanks for you reply, gonna search for that.
ChaiRuiPeng
Posts: 363
Joined: Thu Dec 16, 2010 8:50 pm
Location: Somewhere in the clouds.. drinking pink lemonade and sunshine..

Post by ChaiRuiPeng »

you might need to set a scaling world constant when using bullet if your application is centered around irrlicht, in order to like before poster said avoid precision problems.

however my application is centered around bullet so i dont scale i just use small size on irrlicht. no problems detected so far.
ent1ty wrote: success is a matter of concentration and desire
Butler Lampson wrote: all problems in Computer Science can be solved by another level of indirection
at a cost measure in computer resources ;)
TCM
Posts: 53
Joined: Mon May 24, 2010 9:29 pm

Post by TCM »

Anybody knows the ratio recommended for Physx ?
RdR
Competition winner
Posts: 273
Joined: Tue Mar 29, 2011 2:58 pm
Contact:

Post by RdR »

TCM
Posts: 53
Joined: Mon May 24, 2010 9:29 pm

Post by TCM »

Thanks. Good reading material.

I am having problems with Physx. My simulation looks slow. Only if i set the time step to 1/20 it gets a bit more realistic. But of course setting the timestep to 1/20 is not fixing the cause, just the effect.
RdR
Competition winner
Posts: 273
Joined: Tue Mar 29, 2011 2:58 pm
Contact:

Post by RdR »

TCM wrote:Thanks. Good reading material.

I am having problems with Physx. My simulation looks slow. Only if i set the time step to 1/20 it gets a bit more realistic. But of course setting the timestep to 1/20 is not fixing the cause, just the effect.
This is what Bullet suggest -> http://www.bulletphysics.org/mediawiki- ... _The_World
Post Reply