Page 1 of 8

Beta 2.2 RC1: Blender 2.55 Export Script testing thread

PostPosted: Sun Oct 17, 2010 12:38 pm
by enricocerica
Hi,

Here is the blender 2.55 exporter python script for beta 2.2 RC1, for testing:

octane_exporter_blender255_20101229.zip
(15.78 KiB) Downloaded 191 times


Limited to Blender 2.55 (See first thread for blender 2.49 version)

For Windows only (linux and mac will follow as soon as we get something more stable)

To install and use on Windows put the script in the appropriate script folder Blender 2.55 installation folder\2.55\scripts\io

Last changes since first version :

17/10/2010 :
Alpha 2.2.01 released for Blender 2.54

This is an alpha version, so expect several issues ;)
Still a lot of work, tries after tries, APIs changes after APIs changes the code became really messy. So I'll have to reorganize it a bit before proceeding and I need your first impression before adding other functionalities.

I would like to thank Livuxman for providing some good advises

What should work
-----------------
Export only
Export and render still image
Export and render animation
For now it only exports meshes (didn't tested with other objects)
Unit size should be taken into consideration
Select and export camera
Select and export sun
Define and export resolution
Define and export lens aperture
Define and export focal depth
Camera motion (hope so)

What doesn't work (for sure)
----------------------------
Parameters are not saved
Select samples drop down (should be entered manually)
Some issues with selecting paths, should be corrected manually
GPU device to use (well I didn't tested it)
Probably other issues, just post the problems you may find

29/12/2010
Alpha 2.2.02 released for Blender 2.55

Mirror property were used to set the specular shader instead of transparency
Roughness map exported based on hardness mapping
Several fixes in material conversion
Other objects types are now exported (curve, text, meta, ...)
Check if camera is valid and selected when export camera is activated
Check if sun is valid and selected when export sun is activated
Set the "samples per image" according to the "presets samples per image" dropbox selection
Take all the advanced options into consideration for obj exporting
Fix issue with material assignment for curve and text objects
Now it should export duplicates as well as object and group particules

Still many things to do ...

What doesn't work (for sure)
----------------------------
Some issues with selecting paths, should be corrected manually
GPU device to use (well I didn't tested it)
Probably other issues, just post the problems you may find

Screen Shot:

screenShot.jpg


Please keep all discussion regarding this script in this thread.

Thanks,
Enrico

Re: Beta 2.2 RC1: Blender 2.54 Export Script testing thread

PostPosted: Sun Oct 17, 2010 12:49 pm
by greg.thoman
Great! Thanks so much for your hard work!

Re: Beta 2.2 RC1: Blender 2.54 Export Script testing thread

PostPosted: Sun Oct 17, 2010 1:15 pm
by steveps3
excellent! I can't wait to try it out.

Re: Beta 2.2 RC1: Blender 2.54 Export Script testing thread

PostPosted: Sun Oct 17, 2010 1:55 pm
by radiant
[email protected]# YES!!!! omg omg. going to test this baby out :D

Re: Beta 2.2 RC1: Blender 2.54 Export Script testing thread

PostPosted: Sun Oct 17, 2010 2:47 pm
by steveps3
Initial tests, a big thumbs up! :mrgreen:

Re: Beta 2.2 RC1: Blender 2.54 Export Script testing thread

PostPosted: Sun Oct 17, 2010 5:45 pm
by PhilBo
Working good so far as well. I noticed that I had a metal that got exported as a specular material. There is nothing that I can see in the material settings in Blender that indicates it would be considered Specular. What do you use to determine if something is Diffuse, Specular, or Glossy?

Re: Beta 2.2 RC1: Blender 2.54 Export Script testing thread

PostPosted: Sun Oct 17, 2010 6:51 pm
by enricocerica
PhilBo wrote:Working good so far as well. I noticed that I had a metal that got exported as a specular material. There is nothing that I can see in the material settings in Blender that indicates it would be considered Specular. What do you use to determine if something is Diffuse, Specular, or Glossy?


Thanks Phil for testing, indeed I used the mirror property instead of transparency to set the specular shader, so here is the first bug reported ;), will be fixed in the next release. I use the specular value to set glossy or diffuse if it is equal to 0.

Re: Beta 2.2 RC1: Blender 2.54 Export Script testing thread

PostPosted: Sun Oct 17, 2010 7:04 pm
by PhilBo
I also noticed that if the relative checkbox is checked when choosing a file path, the script fails. Can you put some check to ensure that absolute paths are selected, or to put some file path check into the script?

Re: Beta 2.2 RC1: Blender 2.54 Export Script testing thread

PostPosted: Sun Oct 17, 2010 7:18 pm
by enricocerica
PhilBo wrote:I also noticed that if the relative checkbox is checked when choosing a file path, the script fails. Can you put some check to ensure that absolute paths are selected, or to put some file path check into the script?


Yep, paths selection is something that should be improved and indeed you may expect some problem with them, it's in the todo list ;)

Re: Beta 2.2 RC1: Blender 2.54 Export Script testing thread

PostPosted: Mon Oct 18, 2010 5:08 am
by Daniel
Thanks for the hard work you've put into this! It's something I've been waiting for which really was necessary.