Game Editing > Scripts & Support
[MD5] EXPORT script for Blender 2.6x (OPEN)
Rajveer:
Thanks very much for double checking. Please take your time there's no rush, also if there's any way I can help (providing test cases e.t.c) then let me know :)
kat:
Sample file has been updated for Blender 2.69 and above (subject to Blender Foundation subsequently breaking stuff internally again). Old version is still available but both can now be found on the MD5 sample file page.
Rajveer:
I think there's been a misunderstanding, the problem wasn't with the Bob MD5 sample model, the problem is with the MD5 export script. Taking a look at the updated model, the newly-created "bob_lamp_update.md5anim" and "bob_lamp_update_export.md5anim" animation files still have the same problem - the bounds are incorrect. Open up those files with Notepad++ and compare the values for each bounding box's min and max x, y and z values and you'll see that the bounds were calculated/exported incorrectly.
kat:
Just to check this further the below is the first line from the 'bounds' block exporting the same (original) Bob file from each script corresponding version of Blender - before export MESH objects were reset so their size and origin were relative to Blenders grid-centre (used "Apply" to set Origin points at 0,0,0) - the bounding box values are calculated relative to that position (outwards).
Bounds from 2.54
( -1.634066 -1.325154 -0.028520 ) ( 1.632142 7.007772 6.647473 )
Bounds from 2.57
( -1.634066 -1.325154 -0.028520 ) ( 1.632142 7.007772 6.647473 )
Bounds from 2.62
( -1.634067 -1.634067 -1.634067 ) ( -1.634067 6.444686 5.410537 )
Bounds from 2.63
( -1.634067 -1.634067 -1.634067 ) ( -1.634067 6.444686 5.410537 )
Bounds from 2.69
( -1.634067 -1.634067 -1.634067 ) ( -1.634067 6.444686 5.410537 )
It looks like either there's an error in the script or Blender itself (in terms of what it's doing relative to the script) after the significant change that happened Blender 2.60 onwards - looking at the numbers from 2.62 the bounds do indeed appear to be a flat box compared to prior that.
Unfortunately I can't do anything beyond confirming what you've found as I'm not a code-monkey.
Rajveer:
Thanks for double checking the different Blender versions for which work and don't. If I have time I'll take a look at the changes between 2.57 and 2.63 and hopefully be able to figure out what changes need to be made to the script. If I'm able to fix it I'll report back.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version