[Unsupported] Blender plugin v1.xx - Code

Forums: [Unsupported] Blender plugin v1.xx - Code
Blender (Export script developed by yoyoz; Integrated Plugin developed by JimStar)

[Unsupported] Blender plugin v1.xx - Code

Postby yoyoz » Sat Mar 05, 2011 11:09 am

yoyoz Sat Mar 05, 2011 11:09 am
Hi guys,

here's the 'Next-Gen' plugin. Please carefully read the Documentation before trying to install. It contains important information.

- It will not work with Blender 2.56a or too old svn builds. Please read the Documentation.
- It may destroy data and/or make your files unusable. Please check the Documentation.
- Before asking how it works, please have a look at the Documentation.
- Please do not report problems without properly documenting them (console logs, screenshots, steps to reproduce, etc...). Offenders will be flamed!

Roadmap:
- integrate "Mesh Preview Imager" in World panel. I need some info from RS for properly implementing that, but have no feedback yet.
- allow use of texture from texture panel instead of file name for the environement map
- network rendering (long term plan)

I hope you'll enjoy this plugin and that it'll make your life/workflow easier. Some options/features are clearly only usefull for animations and I hope you'll be able to share your experiences here. It'll be nice if some of you could make tutorials, as I understand not everything is obvious at first glance. In the meantime, there's a Documentation, in case you missed it :-)

Happy blending and rendering,
Lionel

[2011-03-05] First 'public' release v1.09. Please do not spread this plugin everywhere - read 'FAIR DISTRIBUTION' statement in 1st page of the Documentation.

[2011-03-15] v1.09b : update to match blender API change for builds since March 15th. No other changes. Will still display 1.09.
[2011-03-16] v1.09c : fixes code following additional API changes. Will still display 1.09.
[2011-03-23] v1.09d : more API changes, new version. Will still display 1.09.
Attachments
octanerender.v1.09d.zip
(71.79 KiB) Downloaded 1045 times
octanerender.v1.09c.zip
(72.18 KiB) Downloaded 370 times
octanerender.v1.09b.zip
(72.18 KiB) Downloaded 354 times
octanerender.v1.09.zip
Unofficial Blender to Octane Add-On v1.09
(72.18 KiB) Downloaded 462 times
Last edited by yoyoz on Sat Mar 26, 2011 7:04 am, edited 3 times in total.
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Re: [Unsupported] Blender plugin v1.xx - Code

Postby r0ug3r » Sat Mar 05, 2011 12:33 pm

r0ug3r Sat Mar 05, 2011 12:33 pm
thanks yoyoz, u'r really great..

keep it up mate!!

chow!!
win7Pro, i7 8GBram, Nvidia GEForce GT220 1GB Cuda32
User avatar
r0ug3r
Licensed Customer
Licensed Customer
 
Posts: 43
Joined: Wed Jan 05, 2011 8:35 pm

Re: [Unsupported] Blender plugin v1.xx - Code

Postby tungerz » Sat Mar 05, 2011 1:20 pm

tungerz Sat Mar 05, 2011 1:20 pm
Yo Lionel,
Thanks alot my friend, the exporter and the documentation are awesome.
you rock bro :) Next round of beers, on me 8-)

Cheers,

Andy
Win7 64bit...Q6600 Quad core...8Gig Mem...9600 geforce...Daily Build Blender2.5x...Lionel's(Yoyoz)1.10 Blender Exporter... 0 Skill=Priceless
tungerz
Licensed Customer
Licensed Customer
 
Posts: 69
Joined: Mon Dec 06, 2010 6:14 am

Re: [Unsupported] Blender plugin v1.xx - Code

Postby radiance » Sat Mar 05, 2011 1:35 pm

radiance Sat Mar 05, 2011 1:35 pm
Hey,

Abstrax told me you are exporting to ocs ? Is this the case ?

This is a really bad idea for several reasons, ocs is very low level and changes constantly, your exporter will never be able yo be kept up to date as we don't release docs and specs for it.
Also, we are building a new xml io format specifically for this...

It will be much better to stick with our plugin development guidelines, to make sure all plugins work and will continue to work with newer versions...


Seriously, save yourself a lot of headaches and don't write ocs files, you will run into numerous problems, such as new features, nodes and pins missing, and many many other things...

Radiance
Win 7 x64 & ubuntu | 2x GTX480 | Quad 2.66GHz | 8GB
User avatar
radiance
 
Posts: 7633
Joined: Wed Oct 21, 2009 2:33 pm

Re: [Unsupported] Blender plugin v1.xx - Code

Postby yoyoz » Sat Mar 05, 2011 3:37 pm

yoyoz Sat Mar 05, 2011 3:37 pm
Hi Radiance,

yes, and I know it's a bad idea but there's no alternate solution available yet :-)

The risks writing directly into the ocs files are cleary stated in the documentation I provided this morning, with a clear disclaimer RS is not endorsing this approach. However, the way I proceed is pretty safe at the moment with ocs files for beta 2.43 and 2.44.

If your new xml I/O format can achieve same result, I'll be more than happy to switch to it. If you're ok for sharing some info off-the-record, let's discuss that directly. In the meantime, the fact is that you have no working official plugin available for any recent 2.5x version of Blender, including 2.56a, but I don't want to become an official plugin developper either. I've given Enrico the insurance he'll get all information needed from me to adapt my plugin(s) in order to quickly provide/adapt the official one. I guess this will happen when Blender 2.5 goes final.

I'll PM you to confirm my email address and also a couple of IM ids if you want to discuss more interactively.

Lionel
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Re: [Unsupported] Blender plugin v1.xx - Code

Postby patlecoq » Wed Mar 09, 2011 9:44 pm

patlecoq Wed Mar 09, 2011 9:44 pm
Hi Lionel,

Your plugin is really great!!
I only have one problem: Octane Render is launched two times each time I launch the render.
Have you any idea about this problem?
Do you plan to add a panel for the Mesh Preview Imager?
Thanks.

Patrice
patlecoq
Licensed Customer
Licensed Customer
 
Posts: 6
Joined: Mon Jan 11, 2010 9:58 am

Re: [Unsupported] Blender plugin v1.xx - Code

Postby yoyoz » Thu Mar 10, 2011 5:57 am

yoyoz Thu Mar 10, 2011 5:57 am
Hi Patrice,

I've never faced this behavior before. Does it happen all the time and can you send the console logs? (I'm not able to look at them now as I'm travelling for business but will do this WE).

I will add a panel for the Mesh Preview Imager if the new XML I/O file allows to pass its parameters to Octane. At the moment I've no informartion so I can't confirm.

Cheers,
Lionel
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Re: [Unsupported] Blender plugin v1.xx - Code

Postby patlecoq » Thu Mar 10, 2011 9:37 pm

patlecoq Thu Mar 10, 2011 9:37 pm
Hi Lionel,

Here is the console logs I have:
found bundled python: C:\Temp\Blender\BLENDE~1.56\2.56\python
read blend: C:\Temp\Blender\Cube_Sphere_2.5.blend
Octane plug-in v1.09 on 2.56.2.35430 : Rendering still image
Octane plug-in v1.09 on 2.56.2.35430 : Output ocs: "C:\Temp\Blender\OctaneRender
\Essai_Plugin\Cube_Sphere.ocs"
Octane plug-in v1.09 on 2.56.2.35430 : Output obj: "C:\Temp\Blender\OctaneRender
\Essai_Plugin\Cube_Sphere.obj"
Octane plug-in v1.09 on 2.56.2.35430 : Output mtl: "C:\Temp\Blender\OctaneRender
\Essai_Plugin\Cube_Sphere.mtl"
Octane plug-in v1.09 on 2.56.2.35430 : Unit Factor (rescaling): 1.0000
Octane plug-in v1.09 on 2.56.2.35430 : Exporting frame #1
Octane plug-in v1.09 on 2.56.2.35430 : Begin OBJ/MTL export
Octane plug-in v1.09 on 2.56.2.35430 : OBJ file: "C:\Temp\Blender\OctaneRender\E
ssai_Plugin\Cube_Sphere.obj.temp"
Octane plug-in v1.09 on 2.56.2.35430 : Processed <Plane.001> in 0.000 secs
Octane plug-in v1.09 on 2.56.2.35430 : Processed <Sphere> in 1.751 secs
Octane plug-in v1.09 on 2.56.2.35430 : Processed <Cube> in 0.043 secs
Octane plug-in v1.09 on 2.56.2.35430 : Processed <Plane> in 0.000 secs
Octane plug-in v1.09 on 2.56.2.35430 : OBJ export time: 1.801 secs
Octane plug-in v1.09 on 2.56.2.35430 : MTL file: "C:\Temp\Blender\OctaneRender\E
ssai_Plugin\Cube_Sphere.mtl.temp"
Octane plug-in v1.09 on 2.56.2.35430 : Processing <Area>
Octane plug-in v1.09 on 2.56.2.35430 : Processing <Material.001>
Octane plug-in v1.09 on 2.56.2.35430 : Processing <Material.002>
Octane plug-in v1.09 on 2.56.2.35430 : Processing <Material.003>
Octane plug-in v1.09 on 2.56.2.35430 : MTL export time: 0.002s
Octane plug-in v1.09 on 2.56.2.35430 : Using camera : <Camera.Camera>
Octane plug-in v1.09 on 2.56.2.35430 : Using Depth of Field from : Camera
Octane plug-in v1.09 on 2.56.2.35430 : Using DoF from blender camera: 0.000000 *
unitSize
Octane plug-in v1.09 on 2.56.2.35430 : Camera position: x 3.586571 y 2.483682 z
4.494470
Octane plug-in v1.09 on 2.56.2.35430 : Camera target: x 2.931709 y 2.038436 z 3.
883804
Octane plug-in v1.09 on 2.56.2.35430 : Camera up: x -0.317370 y 0.895343 z -0.31
2469
Octane plug-in v1.09 on 2.56.2.35430 : Project file already exists
Octane plug-in v1.09 on 2.56.2.35430 : Resolution set to 800 x 600 at 100%
Octane plug-in v1.09 on 2.56.2.35430 : Samples per image: 64000
Octane plug-in v1.09 on 2.56.2.35430 : OCS Materials
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.001> already in ocs - inter
nalnodegraph = true
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.003> already in ocs - inter
nalnodegraph = true
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.002> already in ocs - inter
nalnodegraph = true
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Area> already in ocs - internalnodeg
raph = true
Octane plug-in v1.09 on 2.56.2.35430 : Blender Materials
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.001> is internal - replacin
g
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.003> is internal - replacin
g
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.002> is internal - replacin
g
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Area> is internal - replacing
Octane plug-in v1.09 on 2.56.2.35430 : Node <%%SYSTEM%%> <macro> : ID <1>
Octane plug-in v1.09 on 2.56.2.35430 : Node <Preview Configuration> <macro> : ID
<2>
Octane plug-in v1.09 on 2.56.2.35430 : Node <Cube_Sphere.obj> <mesh> : ID <3>
Octane plug-in v1.09 on 2.56.2.35430 : Updating Mesh Preview Kernel
Octane plug-in v1.09 on 2.56.2.35430 : Updating Mesh Preview Environment
Octane plug-in v1.09 on 2.56.2.35430 : Launching Octane: ['C:\\Program Files\\Oc
taneRender\\octane.exe', '-m', 'Cube_Sphere.obj', '--cam-lensshift-right', '0.00
0000', '--cam-lensshift-up', '0.000000', '--cam-fov', '49.134342', '--cam-pos-x'
, '3.586571', '--cam-pos-y', '2.483682', '--cam-pos-z', '4.494470', '--cam-targe
t-x', '2.931709', '--cam-target-y', '2.038436', '--cam-target-z', '3.883804', '-
-cam-up-x', '-0.317370', '--cam-up-y', '0.895343', '--cam-up-z', '-0.312469', '-
-film-width', '800', '--film-height', '600', '-s', '64000', '-r', 'C:\\Temp\\Ble
nder\\OctaneRender\\Essai_Plugin\\Cube_Sphere.obj', 'C:\\Temp\\Blender\\OctaneRe
nder\\Essai_Plugin\\Cube_Sphere.ocs']
Octane plug-in v1.09 on 2.56.2.35430 : Status set to Info: Completed in 0h0m1.86

Octane plug-in v1.09 on 2.56.2.35430 : Output ocs: "C:\Temp\Blender\OctaneRender
\Essai_Plugin\Cube_Sphere.ocs"
Octane plug-in v1.09 on 2.56.2.35430 : Output obj: "C:\Temp\Blender\OctaneRender
\Essai_Plugin\Cube_Sphere.obj"
Octane plug-in v1.09 on 2.56.2.35430 : Output mtl: "C:\Temp\Blender\OctaneRender
\Essai_Plugin\Cube_Sphere.mtl"
Octane plug-in v1.09 on 2.56.2.35430 : Unit Factor (rescaling): 1.0000
Octane plug-in v1.09 on 2.56.2.35430 : Exporting frame #1
Octane plug-in v1.09 on 2.56.2.35430 : Begin OBJ/MTL export
Octane plug-in v1.09 on 2.56.2.35430 : OBJ file: "C:\Temp\Blender\OctaneRender\E
ssai_Plugin\Cube_Sphere.obj.temp"
Octane plug-in v1.09 on 2.56.2.35430 : Processed <Plane.001> in 0.000 secs
Octane plug-in v1.09 on 2.56.2.35430 : Processed <Sphere> in 1.771 secs
Octane plug-in v1.09 on 2.56.2.35430 : Processed <Cube> in 0.042 secs
Octane plug-in v1.09 on 2.56.2.35430 : Processed <Plane> in 0.000 secs
Octane plug-in v1.09 on 2.56.2.35430 : OBJ export time: 1.816 secs
Octane plug-in v1.09 on 2.56.2.35430 : MTL file: "C:\Temp\Blender\OctaneRender\E
ssai_Plugin\Cube_Sphere.mtl.temp"
Octane plug-in v1.09 on 2.56.2.35430 : Processing <Area>
Octane plug-in v1.09 on 2.56.2.35430 : Processing <Material.001>
Octane plug-in v1.09 on 2.56.2.35430 : Processing <Material.002>
Octane plug-in v1.09 on 2.56.2.35430 : Processing <Material.003>
Octane plug-in v1.09 on 2.56.2.35430 : MTL export time: 0.004s
Octane plug-in v1.09 on 2.56.2.35430 : Using camera : <Camera.Camera>
Octane plug-in v1.09 on 2.56.2.35430 : Using Depth of Field from : Camera
Octane plug-in v1.09 on 2.56.2.35430 : Using DoF from blender camera: 0.000000 *
unitSize
Octane plug-in v1.09 on 2.56.2.35430 : Camera position: x 3.586571 y 2.483682 z
4.494470
Octane plug-in v1.09 on 2.56.2.35430 : Camera target: x 2.931709 y 2.038436 z 3.
883804
Octane plug-in v1.09 on 2.56.2.35430 : Camera up: x -0.317370 y 0.895343 z -0.31
2469
Octane plug-in v1.09 on 2.56.2.35430 : Project file already exists
Octane plug-in v1.09 on 2.56.2.35430 : Resolution set to 800 x 600 at 100%
Octane plug-in v1.09 on 2.56.2.35430 : Samples per image: 64000
Octane plug-in v1.09 on 2.56.2.35430 : OCS Materials
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.001> already in ocs - inter
nalnodegraph = true
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.003> already in ocs - inter
nalnodegraph = true
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.002> already in ocs - inter
nalnodegraph = true
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Area> already in ocs - internalnodeg
raph = true
Octane plug-in v1.09 on 2.56.2.35430 : Blender Materials
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.001> is internal - replacin
g
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.003> is internal - replacin
g
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Material.002> is internal - replacin
g
Octane plug-in v1.09 on 2.56.2.35430 : Mat <Area> is internal - replacing
Octane plug-in v1.09 on 2.56.2.35430 : Node <%%SYSTEM%%> <macro> : ID <1>
Octane plug-in v1.09 on 2.56.2.35430 : Node <Preview Configuration> <macro> : ID
<2>
Octane plug-in v1.09 on 2.56.2.35430 : Node <Cube_Sphere.obj> <mesh> : ID <3>
Octane plug-in v1.09 on 2.56.2.35430 : Updating Mesh Preview Kernel
Octane plug-in v1.09 on 2.56.2.35430 : Updating Mesh Preview Environment
Octane plug-in v1.09 on 2.56.2.35430 : Launching Octane: ['C:\\Program Files\\Oc
taneRender\\octane.exe', '-m', 'Cube_Sphere.obj', '--cam-lensshift-right', '0.00
0000', '--cam-lensshift-up', '0.000000', '--cam-fov', '49.134342', '--cam-pos-x'
, '3.586571', '--cam-pos-y', '2.483682', '--cam-pos-z', '4.494470', '--cam-targe
t-x', '2.931709', '--cam-target-y', '2.038436', '--cam-target-z', '3.883804', '-
-cam-up-x', '-0.317370', '--cam-up-y', '0.895343', '--cam-up-z', '-0.312469', '-
-film-width', '800', '--film-height', '600', '-s', '64000', '-r', 'C:\\Temp\\Ble
nder\\OctaneRender\\Essai_Plugin\\Cube_Sphere.obj', 'C:\\Temp\\Blender\\OctaneRe
nder\\Essai_Plugin\\Cube_Sphere.ocs']
Octane plug-in v1.09 on 2.56.2.35430 : Status set to Info: Completed in 0h0m1.87


You can see that Octane Render is launched two times.

Regards.
Patrice
patlecoq
Licensed Customer
Licensed Customer
 
Posts: 6
Joined: Mon Jan 11, 2010 9:58 am

Re: [Unsupported] Blender plugin v1.xx - Code

Postby yoyoz » Sat Mar 12, 2011 6:19 am

yoyoz Sat Mar 12, 2011 6:19 am
Yep, I can see the render thread is started twice while the 'render' button only hit once.

That's pretty strange but I'm not even able to reproduce as Blender is broken at the moment: latest svn builds give me segmentation faults in various areas (not only when trying to export). At the moment I can just hope this problem is specific to the build you're using. The "Status set to Info" line shows that the exporter has exited from the render function and I see no reason it could be called again - except some new behavior of Blender I'm not able to test until they fix the seg fault issue.

In the meantine may be you can try with a different build of blender...

Cheers,
Lionel
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium

Re: [Unsupported] Blender plugin v1.xx - Code

Postby yoyoz » Sat Mar 12, 2011 6:37 am

yoyoz Sat Mar 12, 2011 6:37 am
Well, I should have looked at the available updates for blender before posting, as this morning's build has fixed the segmentation fault problem.
It sounds it was related to python as they're moving from 3.1 to 3.2, so may be that was the issue.

Please give a try with build 35474 or higher and let me know if this happens again. Please also check which version of python you're using - may it's builtin with the Windows package but I can't test.

Cheers,
Lionel
Desktop: Ubuntu 13.04 x64 - i7-3770K @ 3.5GHz - 32GB DDR3 - GTX670 2048MB
Laptop: Linux Mint 11 x64 - i7-2860QM @ 2.5GHz - 16GB DDR3 - Quadro 3000M 2GB
Software: NVidia 319.12 - Cuda 4.2.9 - Blender 2.66a
User avatar
yoyoz
Licensed Customer
Licensed Customer
 
Posts: 451
Joined: Sat Dec 25, 2010 9:59 am
Location: Belgium
Next

Return to Blender


Who is online

Users browsing this forum: No registered users and 3 guests

Tue Apr 16, 2024 5:21 pm [ UTC ]