Jump to content
  • Advertisement
Sign in to follow this  

Help implementing render by parts

This topic is 4493 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

Hello. I am trying to implement render by parts in a ray tracing application. That is instead of rendering the scene in just one file, I want to split it in several fragments and then stich them together. This will alow rendering large resolution images with out having to use lot of ram. Hope you can give me some advice on how to merge the pieces together after rendering. Thanks.

Share this post

Link to post
Share on other sites

I'd suggest this:

1) Create a binary file and write the headers*
2) Render a part, say a single scanline or whatever...
3) Open the file in append mode
4) Write the part and close the file
5) Repeat 2-4 until you've rendered the whole image

Hope that helps, or were you thinking of something else?

* So if if you were using TGAs you'd write the headers detailing the dimensions and colour depth in TGA header format, for example.


Obviously writing straight out to a proper image format is probably a bad idea. What you should do is save the actual floating point data to a temporary file instead. You should use this data after the whole image is rendered so you can do accurate post-processes such as tone-mapping.

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!