Page 1 of 1

How to render a picture into the screen

Posted: 28 Aug 2018, 11:35
by hansanjie
To send a picture to Ventuz via socket from Unity. I change the picture to Byte[], and i got the byte[] in Ventuz, but I can't link the byte[] to Image note or texture node.

Does anyone know anyNode accept byte[],or Know how to render the picture like this.

ps:I want to show the screen shot from unity on the Ventuz Scene!

Re: How to render a picture into the screen

Posted: 28 Aug 2018, 12:34
by gaz99
Hi,

I'm not sure that it's possible the way you are trying to do it.

I would save the image from unity to the file system and then send ventuz the file path of the image you saved via the Ventuz remoting library.
Once you have the path in Ventuz you can use it with a texture loader.

Cheers

Gaz

Re: How to render a picture into the screen

Posted: 28 Aug 2018, 13:19
by hansanjie
gaz99 wrote:
28 Aug 2018, 12:34
Hi,

I'm not sure that it's possible the way you are trying to do it.

I would save the image from unity to the file system and then send ventuz the file path of the image you saved via the Ventuz remoting library.
Once you have the path in Ventuz you can use it with a texture loader.

Cheers

Gaz
thank you for your reply,To save the image into the hard disk is the secondery choice for me. I want to write a script to load the picture from the memory, which can save a lot of time and computing resource。

i can read the picture from the byte ,but i can't load it into the Scence. i want to find a note to recept the byte array!