Jump to content
  • Advertisement
Sign in to follow this  
TimmerCA

Rendering 3D Scenes to JPG or PNG

This topic is 2941 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'm starting a game project that's mostly web-based, and I was wondering if anyone had some advice as to a good 3D rendering engine that would allow me to render to JPG or PNG files, rather than the screen, and that does not require any special GPU, as this is being hosted on virtual servers that have no graphics hardware.

Is there any such library out there?

Share this post


Link to post
Share on other sites
Advertisement
I guess that realtime graphics is not important, so Pixie might do the trick.
It`s heavy offline renderer, but generated images quality is one of the best!

http://www.renderpixie.com/

But I quess that server hosting company might have something to say,
if you convert their machines to render farm ;D

/Tyrian

Share this post


Link to post
Share on other sites
I know that you are asking for an engine, but:

In Direct3D11, there is a device type called WARP that is a high-performance software renderer with D3D10.1 feature set. It is specifically designed for scenarios where there's no hardware acceleration available, such as legacy machines or headless servers.

The benefit of using WARP is that you could write the rendering infrastructure code only once and use it with both accelerated (modern client machines) and non-accelerated (server, legacy client machines) nodes. WARP is programmed exactly like a 10.1 level GPU, with the sole exception of the device type flag when you create the device object.

In D3D11, it is easy to fetch the rendered data from the device object by using a staging resource, whether the renderer is in hardware or software. You can then use D3DX to save the image to a PNG or JPG, or use an external file writer if D3DX is not flexible enough. In particular, the D3DX save functionality does not let you specify the quality of the JPEG compression, while this is very common functionality in external JPEG writers.

Share this post


Link to post
Share on other sites
what do you mean by mostly web-based?

It's not too hard to do in OpenGL, you just render to a texture and then write that data out in whatever file format you want. You don't need a special GPU for that, and you could have it run on the server if the input to it is web based.

What do you want to render? Do you have 3d models already?

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!