Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

Blender units to directx units?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 george7378   Members   -  Reputation: 391

Like
0Likes
Like

Posted 01 March 2013 - 01:25 PM

Is there a simple way to convert between the two unit systems? After exporting a .x file of a unit cube from Blender, I can see that they aren't the same scale!

 

Thanks.


Long-term project: LEM 3D


Ad:

#2 darookie   Members   -  Reputation: 1428

Like
2Likes
Like

Posted 02 March 2013 - 04:57 AM

There is no such thing as "directx units". If you model a unit cube the exported cube should be a unit cube as well. Any perceived difference in scale is therefore a result of either scaling by the exporter or simply different camera settings in Blender and your application. The former can easily be checked by examining the vertices of the loaded model.



#3 george7378   Members   -  Reputation: 391

Like
0Likes
Like

Posted 02 March 2013 - 05:25 AM

I tried again using a different model, and it seems like you're right - the coordinates of the vertices in Blender and DirectX matched. I must have been looking at the wrong coordinates (local instead of global, perhaps). I suppose it makes sense - a .x file is simply a list of vertex locations (among other things), so the numbers should stay the same when they're exported from Blender (i.e. a vertex at 0,0,1 in Blender should also be at 0,0,1 in DirectX).

 

Thanks for clearing that up!


Long-term project: LEM 3D


#4 MrDaaark   Members   -  Reputation: 3503

Like
1Likes
Like

Posted 02 March 2013 - 05:36 AM

The only possible way for the scale to be ff is if the scale factor is wrong in the exporter. Also, make sure you set the rotation, scale, and location to indentity in Object Mode. (Select object + Ctrl-A)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS