Jump to content
  • 0

Blender measurements compared to Measurements in Second Life


TxDave1488303508
 Share

You are about to reply to a thread that has been inactive for 4042 days.

Please take a moment to consider if this thread is worth bumping.

Question

  • 0

When you export to Collada, the .dae file contains a statement that says whet the units are, like '<unit meter="0.01" name="centimeter"/>'. That is the default in Blender 2.49. It makes things 100x smaller thany you expect if you were thinking in meters. This needs to be changed to '<unit meter="1" name="meter"/>'

For versions of Blender after 2.49b, I recommend visiting the Machinimatrix site where you will find solutions that make the exporter ise meters. There is also a modified translator.py there that has this change.

If you are using Blender 2.49b, then you can change the unit by editing the translator.py file in your Blender scripts directory, colladaimex subdirectory. Make a backup copy first, with a different neme, then change...

        daeAsset.unit.name = 'centimeter'
        daeAsset.unit.meter = '0.01'

to

        daeAsset.unit.name = 'meter'
        daeAsset.unit.meter = '1'

Then the collada file will say '<unit meter="1" name="meter"/>'. Then Blender units will be interpreted as meters. This makes life easier.

In Later versions of Blender, the Collada exporter is not a python script, it's part of the program.

 

  • Like 1
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

When you export to Collada, the .dae file contains a statement that says whet the units are, like '<unit meter="0.01" name="centimeter"/>'. That is the default in Blender 2.49. It makes things 100x smaller thany you expect if you were thinking in meters. This needs to be changed to '<unit meter="1" name="meter"/>'

For versions of Blender after 2.49b, I recommend visiting the Machinimatrix site where you will find solutions that make the exporter ise meters. There is also a modified translator.py there that has this change.

If you are using Blender 2.49b, then you can change the unit by editing the translator.py file in your Blender scripts directory, colladaimex subdirectory. Make a backup copy first, with a different neme, then change...

        daeAsset.unit.name = 'centimeter'
        daeAsset.unit.meter = '0.01'

to

        daeAsset.unit.name = 'meter'
        daeAsset.unit.meter = '1'

Then the collada file will say '<unit meter="1" name="meter"/>'. Then Blender units will be interpreted as meters. This makes life easier.

In Later versions of Blender, the Collada exporter is not a python script, it's part of the program.

 

  • Like 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4042 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...