Jump to content
Site Stability Read more... ×
  • Advertisement
Sign in to follow this  

OpenGL Remote rendering - OpenGL

This topic is 2825 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


I want to implement a simple remote rendering system. For the sake of simplicity, assuming that I have a server and a client, now I want the server to perform the rendering according to the client requests and then send the result back to the client.

The idea is pretty straightforward, I will briefly discribe as following:
1. At first, the client sends rendering parameters to the server (for example: viewport info)
2. The server performs the redering according to the parameters received from client
3. The server then extracts the rendered image (by using glReadPixels, for instance) and transmit it to the client

I got some problems when implementing step 2. As the user keeps changing the viewport constantly, I make a 'while' loop to keep the server up to date with the changes from client.

Something like this:
void init(void);
void render(void);


int main ( int argc, char** argv ) {

// ...
while (1)
// receive data from the client
// perform rendering
// send data to the client
return 0;

Is there any possble way to perform rendering when I'm still in the 'while' loop or if someone comes up with better idea in doing this, plz let me know.

I'm thinking of using offline-rendering. It may take some time cuz I'm not familier with it and I just wanna keep everything simple.

Sorry for the stupid question. I'm just a newbee smile.png


Share this post

Link to post
Share on other sites
I found a relevant thread here. It seems that many people are interested in this topic, so if someone has successfully impelemented this kinda things before plz share with me. Or if someone can point out a tutorial about this, that would be great.

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!