Maya commandPort send frame buffer data

Hi,

Is it possible to get frame buffer data from the render view and convert it to byte data so it can be send over open port using commandPort?

Thanks,

Wes

Yes, but you’re going to have to break it up into small pieces that can be transmitted in over the command port, then reassemble the image at the far end. I can’t remember the safe packet size; 1024 bytes perhaps? I wouldn’t pursue this path unless there are really compelling reasons. The commandport can be a bit “finicky” to say the least. I just looked at my C# class for dealing with commandport crashing and the timeouts, and there is a whole lot of code there wrapping the TCP stuff and dealing with asynchronous threads and timeout countdown variables.

[QUOTE=btribble;10497]I just looked at my C# class for dealing with commandport crashing and the timeouts, and there is a whole lot of code there wrapping the TCP stuff and dealing with asynchronous threads and timeout countdown variables.[/QUOTE]

Not to derail, but if you’re in C# anyway, have you thought about WCF? It’s a bit of work to get the contract playing nice on both ends, but in my experience it’s been more MUCH more stable than commandPort.

Thanks for the info. This does seem difficult with Maya. I do know of a possible solution using imf_disp with Mental Ray as you can send image data through socket, but I don’t want to tie this MR.

-Wes