Callback to access IPR buffer?

Forums: Callback to access IPR buffer?
Autodesk Maya (Plugin developed by JimStar)

Moderator: JimStar

Callback to access IPR buffer?

Postby pixerati2 » Tue Oct 02, 2018 6:30 pm

pixerati2 Tue Oct 02, 2018 6:30 pm
Is there any way to access the Octane IPR buffer other than saving to file then reading from disk? I want to write a plugin to send the current render to a remote viewing station, but I can't see anything in the Maya API that allows me to retrieve the current Octane render from the IPR.

Is there something I can use from the Octane SDK (while still using the Maya IPR)?


Or did I miss something in the Maya API? (All the callbacks seem to be to do with the native software renderer and not third party renderers.)

Thanks :)
pixerati2
Licensed Customer
Licensed Customer
 
Posts: 42
Joined: Sun Jul 06, 2014 4:06 pm

Re: Callback to access IPR buffer?

Postby BK » Tue Oct 02, 2018 11:42 pm

BK Tue Oct 02, 2018 11:42 pm
pixerati2 wrote:Is there any way to access the Octane IPR buffer other than saving to file then reading from disk? I want to write a plugin to send the current render to a remote viewing station, but I can't see anything in the Maya API that allows me to retrieve the current Octane render from the IPR.

Is there something I can use from the Octane SDK (while still using the Maya IPR)?


Or did I miss something in the Maya API? (All the callbacks seem to be to do with the native software renderer and not third party renderers.)

Thanks :)




Hi pixerati2,

It seems Octane SDK would not help.
Please contact Autodesk on how to retrieve the image data from standard Maya's renderView that gathers render results from renderers.

cheers
Kind Regards

bk3d
BK
OctaneRender Team
OctaneRender Team
 
Posts: 1318
Joined: Mon Oct 31, 2016 7:54 pm

Re: Callback to access IPR buffer?

Postby pixerati2 » Tue Oct 02, 2018 11:45 pm

pixerati2 Tue Oct 02, 2018 11:45 pm
Will do Bikram. I think I'll just write a bogus Maya image plugin to intercept.

Thanks for taking the time to reply.
pixerati2
Licensed Customer
Licensed Customer
 
Posts: 42
Joined: Sun Jul 06, 2014 4:06 pm

Re: Callback to access IPR buffer?

Postby BK » Wed Oct 03, 2018 3:41 am

BK Wed Oct 03, 2018 3:41 am
pixerati2 wrote:Will do Bikram. I think I'll just write a bogus Maya image plugin to intercept.

Thanks for taking the time to reply.


Thanks, Pixerati2!! Hope you will find it helpful.
Anyways, the Maya image plugin sounds exciting !! :)


cheers
Kind Regards

bk3d
BK
OctaneRender Team
OctaneRender Team
 
Posts: 1318
Joined: Mon Oct 31, 2016 7:54 pm

Re: Callback to access IPR buffer?

Postby pixerati2 » Wed Oct 03, 2018 5:07 pm

pixerati2 Wed Oct 03, 2018 5:07 pm
For completeness if anyone searches this in the future:

For my needs the SDK sample captureViewRenderCmd.cpp shows how to intercept a Viewport render and capture it to a buffer. Haven't tried it on the IPR, but since Octane now renders inside a Maya Viewport panel this proves sufficient.
pixerati2
Licensed Customer
Licensed Customer
 
Posts: 42
Joined: Sun Jul 06, 2014 4:06 pm

Return to Autodesk Maya


Who is online

Users browsing this forum: No registered users and 5 guests

Tue Apr 16, 2024 5:32 am [ UTC ]