echivalence to 1 meter

Started by
3 comments, last by Darg 14 years, 7 months ago
How big a model should be in directx? what is the echivalence to 1 meter? is it 1.0f value ?
Planet Yupeee 2009$100 maniac.planetyupeee.com
Advertisement
The answers to your questions are: 'as big as you like', and 'whatever you like'.

DirectX (and OpenGL for that matter) don't deal with units, that part is up to you. Both graphics APIs use some arbitrary dimensional unit, which you are free to equate to whatever you like.

For instance, in my planet renderer, I use 1 unit in OpenGL to represent 1 kilometre. In a smaller demo of a city, I used 1 unit to represent 1 metre.

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

thank you for your answer. So 1 meter can be 1 unit. I knew i can choose but maybe there is a standard in the indie community. You see i will activate an option for gamers to upload their space ship models made by blender or whatever exports .x for now. But if they consider something else for 1 meter(10 units) the space ship could be too large.
Planet Yupeee 2009$100 maniac.planetyupeee.com
So they scale it down, no problemo :)
I would use 1 unit to 1 metre just to keep it simple. If you're going to be including physics then a lot of the various XNA physics engines use 1:1m. For example the JigLibX engine use 1:1m for it's height map.
Portfolio & Blog:http://scgamedev.tumblr.com/

This topic is closed to new replies.

Advertisement