Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

How to render a picture into the screen

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
hansanjie
Posts: 8
Joined: 27 Mar 2018, 04:33

How to render a picture into the screen

Post by hansanjie » 28 Aug 2018, 11:35

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!

User avatar
gaz99
Posts: 16
Joined: 29 Nov 2016, 17:25

Re: How to render a picture into the screen

Post by gaz99 » 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
Gareth - Kinetic Pixel

hansanjie
Posts: 8
Joined: 27 Mar 2018, 04:33

Re: How to render a picture into the screen

Post by hansanjie » 28 Aug 2018, 13:19

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!

Post Reply