Ray tracing support for Ogre 2.2+

Discussion area about developing with Ogre2 branches (2.1, 2.2 and beyond)
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 4971
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1164
Contact:

Re: Ray tracing support for Ogre 2.2+

Post by dark_sylinc »

RenderSystem is the wrong place to do it. It's too low level.

See VctVoxelizer (Components/Hlms/Pbs/include/Vct/OgreVctVoxelizer.h) and see VctCascadedVoxelizer (Components/Hlms/Pbs/include/Vct/OgreVctCascadedVoxelizer.h) the latter which accepts static and dynamic objects to generate the GI.

Of course you'd need to add RenderSystem interfaces to perform the RayTracing API calls, but RayTracing itself should be encapsulated somewhere else.

The only thing I am wondering is that VctCascadedVoxelizer requires manually adding each Item to be tracked; while I am thinking that is perhaps a mistake; and GI per-object settings should live in Item; while VctCascadedVoxelizer gets attached to SceneManager to be the active GI.

But overall RayTracing should be encapsulated into its own interface that is plugged into SceneManager and makes the necessary RenderSystem calls.

Post Reply