Sizes of objects in units

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
minas1
Posts: 35
Joined: Mon May 17, 2010 11:19 am

Sizes of objects in units

Post by minas1 »

Alright, so I have loaded a 3DS mesh (a wall) and I got it to be displayed.
However, I had to set the camera's position to (0, 150, -200) in order to be able to see the whole wall, which is at point zero.

Does this mean that the mesh it too big, and I have to change its scale to something less than 1.0?
Or do units have no significance at all? (When used with lights/shadows for example)

In other words, what should be the size in units of a small mesh? Let's say a mesh that represents a dog.
kklouzal
Posts: 343
Joined: Sun Mar 28, 2010 8:14 pm
Location: USA - Arizona

Re: Sizes of objects in units

Post by kklouzal »

My scale is (1.0F == 1 Meter)
Dream Big Or Go Home.
Help Me Help You.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Sizes of objects in units

Post by hendu »

The scale is your choice. Commonly 1 unit = 1 meter like kklouzal has, but you can use feet, mm, or whatever.
minas1
Posts: 35
Joined: Mon May 17, 2010 11:19 am

Re: Sizes of objects in units

Post by minas1 »

Thank you. I will use 1.0f = 1m as well.
Another thing: How can I get the dimensions of a mesh in units?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Sizes of objects in units

Post by CuteAlien »

The boundingbox gives you the dimensions (or well... the best approximation you can get with a box).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply