In C++ Ogre or OpenGL, how to do rendering once and get multiple images with objects at different pose?

288 Views Asked by At

Let's say I want to render a video of one asteroid rotating around its planet. One straightforward way is to place the asteroid at different pose around the planet and render each time to get one image. If the video consists of 100 images, then I have to render 100 times for each image. This looks not very efficient.

However, since I already know all the poses the asteroid could be. I want to get all the pictures in one-pass-rendering, i.e. in each picture, the asteroid is in different location relative to the planet. Is there a way to render once and get all the pictures by taking advantage of GPU computation?

I guess this is doable if we do this in CUDA, but I'm wondering if there is a way in Ogre? Or dive into OpenGL if neccessary.

0

There are 0 best solutions below