Beta 2.2 RC1: Maya exporter plugin (unofficial)

Autodesk Maya (Plugin developed by JimStar)

Moderator: JimStar

User avatar
radiance
Posts: 7633
Joined: Wed Oct 21, 2009 2:33 pm

iknowmedia wrote:I have a scene and Animation in Maya a "hand grenade m67". I want to Render that scene in Octance with this script. But how to set the materials I like in Octane when rendering from maya to octane?

Thx!
just read the manual, there's a workflow in it. you export, finetune mats/lights in octane, save the OCS, then you rerender with new linked geometry, keeping the materials/lighting in the OCS intact.

Radiance
Win 7 x64 & ubuntu | 2x GTX480 | Quad 2.66GHz | 8GB
User avatar
iknowmedia
Licensed Customer
Posts: 52
Joined: Wed Apr 21, 2010 1:12 pm
Location: The Netherlands
Contact:

Thanks a lot, didn't know it was already in the manual of Octane.
Windows 7 | Q9550 @2833Mhz | 8GB | Zotac GTX480
bazuka
Licensed Customer
Posts: 259
Joined: Thu Apr 22, 2010 3:47 pm

I will record some videos soon, the basic workflow for maya & octane...

;)
Maya 2009 x64 & Maya 2011 x64
Windows 7 x64 & Windows XP x64
2x Quad Core Q6600, 8gb, Nvidia Gtx 260 & Gtx 460
Woedend
Licensed Customer
Posts: 10
Joined: Mon May 31, 2010 7:58 pm

Not sure if I should post this here but here it goes..

When I press the render button to render a still it launches Octane which then freezes. (26% cpu usage on 8 cores) The red cube is black instead of red.
This happens every time I start with something new. The second time (when the .ocs file already exists) it works fine.

Also is there any logic to what sort of material I get in Octane? I have 2 Blinn's (identical except for the diffuse color) and one becomes a diffuse material and the other one a glossy material.
When I load the same obj in octane using Add>Objects>Mesh both materials become diffuse.
Attachments
Screenshot.jpg
Win XP 64 | Quadro FX 3700 Dual Quad 3.00GHz | 10GB RAM
bazuka
Licensed Customer
Posts: 259
Joined: Thu Apr 22, 2010 3:47 pm

hm strange, can u post the cmd line from maya script editor?

about the 2nd probl i notice that too, but im not sure i could help, its up to octane how he reads obj and mat file

cheers
Maya 2009 x64 & Maya 2011 x64
Windows 7 x64 & Windows XP x64
2x Quad Core Q6600, 8gb, Nvidia Gtx 260 & Gtx 460
Woedend
Licensed Customer
Posts: 10
Joined: Mon May 31, 2010 7:58 pm

Did a bit of testing and found out it only happens if I have found that it does work if I don't have more than one material assigned.
To make things more interesting..

I'm starting octane and load the obj with Bazuka's mel script.
Unless stated otherwise I'm deleting the .obj, .mtl and .ocs file before each test.

4 objects all using the same shader : works
2 objects shader A and 2 objects using shader B : freeze
2 objects shader A and 2 objects using shader B without deleting files : works
1 object shader A, 1 objects using shader B, 1 object shader C and 1 objects using shader D : freeze
1 object shader A, 1 objects using shader B, 1 object shader C and 1 objects using shader D without deleting files : works

Concluding: it does work the second time I press the render button using the same scene file.

This would be anoying but I could work around it. However.. It get's more complicated.
Whenever I have a working version in Octane, (2nd try with the same scene) and I want to add more shaders I can add 1 without deleting the files and it will still work. When I add another shader it freezes.
At this point trying again without deleting the files doesn't help anymore. Only way I found to get it working again was to delete the files which starts a new cycle. The first time I launch after deleting the files it will still freeze but when I try a second time without deleting the files it works again.

Hadn't noticed before but when I try without the script (Add>Objects>Mesh) Octane also freezes on this same file. When I open the .ocs instead it works. This leads me to believe it's not a fault in the script but a bug in octane.
Strange thing is I've also had more complex obj's that work fine.
Win XP 64 | Quadro FX 3700 Dual Quad 3.00GHz | 10GB RAM
Woedend
Licensed Customer
Posts: 10
Joined: Mon May 31, 2010 7:58 pm

The command from my script editor is:

C:\Program Files\Refractive Software\Octane Render 1.022 x64\octane.exe -m temp.obj -s 256 -r "C:\Documents and Settings\Administrator\Desktop\Octane\Istio\Test\temp.obj" --cam-pos-x 2440.445674 --cam-pos-y 2493.238998 --cam-pos-z 3013.699423 --cam-target-x -2.728484105e-012 --cam-target-y -4.547473509e-013 --cam-target-z -2.728484105e-012 --film-width 640 --film-height 480 "C:\Documents and Settings\Administrator\Desktop\Octane\Istio\Test\temp.ocs"
Win XP 64 | Quadro FX 3700 Dual Quad 3.00GHz | 10GB RAM
bazuka
Licensed Customer
Posts: 259
Joined: Thu Apr 22, 2010 3:47 pm

10x for ur time for testing,

its good to know that script works (if i may say so ;) )

we can check with radiance about this bug, i had some similar probl few days ago, but didnt have time to play with it (i busy)

i hope ill publish new scripts with some add-ons ;)

cheers
Maya 2009 x64 & Maya 2011 x64
Windows 7 x64 & Windows XP x64
2x Quad Core Q6600, 8gb, Nvidia Gtx 260 & Gtx 460
bazuka
Licensed Customer
Posts: 259
Joined: Thu Apr 22, 2010 3:47 pm

New Update uploaded, check 1st page
Maya 2009 x64 & Maya 2011 x64
Windows 7 x64 & Windows XP x64
2x Quad Core Q6600, 8gb, Nvidia Gtx 260 & Gtx 460
cgbeige
Licensed Customer
Posts: 127
Joined: Sun Apr 04, 2010 5:30 pm

works okay for me but I still can't use Maya while it renders. I remember Tim from Autodesk suggesting I try some sort of "release" command for scripts that had this problem with 2011. Do you know of something like that you can execute as a final command so Maya is usable? I think this is only a problem with the Mac 2011 version right now (and maybe Linux).

I haven't tested scene scale
Post Reply

Return to “Autodesk Maya”