Archived

This topic is now archived and is closed to further replies.

hema

transfer pixels between client and server

Recommended Posts

I am developing a directx8 application with vb. Our project is server will capture the desktop screen and sent to client. client receive those updates (pixels) and display in 8*8 blocks directx appplication window. How can I transfer and receive image pixels between client and server through winsock control? please reply soon. thanks in advance. hema

Share this post


Link to post
Share on other sites
You''re not going to be able to send the pixels themselves, but rather, you''re going to have to send the individual color of each one, and then re-render.

Is this what you want to do?
1) Server-side: Render
2) Transfer all pixel colors to client
3) Re-render on client screen

Can I ask, why are you doing it this way? Why can''t you just render on the client originally? Commercial games actually only render on the client - the server just sends them messages telling them what to render.

I don''t really know much about winsock, but you could always looking into DirectPlay if you''re having trouble. DirectPlay isn''t just for game stuff - it''s for any networking app.


Dustin Franklin
Mircrosoft DirectX MVP

Share this post


Link to post
Share on other sites