unitycoder / UnityMobilePaint

Public repository for MobilePaint issues & requests
https://www.assetstore.unity3d.com/en/#!/content/19803?aid=1101lGti
MIT License
49 stars 16 forks source link

Upload image to server #5

Open unitycoder opened 8 years ago

unitycoder commented 8 years ago

with unity WWW, send to web (include php upload script)

BelieveXiaoShuai commented 4 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.

BelieveXiaoShuai commented 4 years ago

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.

unitycoder commented 4 years ago

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)

BelieveXiaoShuai commented 4 years ago

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?

unitycoder commented 4 years ago

do you need the historical data? should be simpler if just send the actual image snapshot.

BelieveXiaoShuai commented 4 years ago

just need snapshot. the Recent image

BelieveXiaoShuai commented 4 years ago

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.

BelieveXiaoShuai commented 4 years ago

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.

BelieveXiaoShuai commented 4 years ago

I'm trying GetRawTextureData()