Open unitycoder opened 8 years ago
Do you want to upload and save TextureCoord to the server? As far as I know, the blackboard eraser is not removing pixels, but replacing the original color with transparent color or background color. I will upload or synchronize from the server and save this part as well.
What I am doing now is to upload all the texture coods I have written and the Size and color at this time to the server, and download each point and draw it again when downloading. however, there is a problem that I will report all the historical records wrong. if I draw for 20 minutes, all the texture coods will be saved to the server within 20 minutes, resulting in very, very, very stuck when they are redrawn and displayed after downloading from the server.
yeah i was thinking about just the final image data only.
i think should either collapse historical data, without updating image, or do it in another thread if want to see it animated. (but still the image refresh will slow down)
How can I know that my current handwriting covers my former handwriting, thus screening out new and old data? I am currently drawing in VR. If I enlarge or reduce the drawing board, is it more difficult to judge?
do you need the historical data? should be simpler if just send the actual image snapshot.
just need snapshot. the Recent image
The function I am doing now is as follows: many people are in a network room, others can see the words written by one of them on the whiteboard in real time. if someone drops off the line, the whiteboard will automatically display the latest content on the whiteboard synchronously when it comes back online.
The contents I upload to the server are Size,Color and RaycastHit.textureCoord. the same data is synchronized to the client. after synchronizing to the client, I will fill in these parameters, just like redrawing them. at present, they are all historical data, so they will be especially blocked.
I'm trying GetRawTextureData()
with unity WWW, send to web (include php upload script)