Ogre Version: 1.9
Operating System: Ubuntu
Hi, I am new to Ogre. I was using Gazebo for simulation which used Ogre for rendering.
I was trying to implement features like motion blur and rolling shutter for my camera. According to my research, these features would need a depth buffer. I noticed Ogre does have depth buffer but I am wondering if Ogre::camera have a similar one, or is there anyway I can implement a depth buffer for camera myself?
Thanks!
Depth buffer for camera
- sercero
- Bronze Sponsor
- Posts: 449
- Joined: Sun Jan 18, 2015 4:20 pm
- Location: Buenos Aires, Argentina
- x 156
Re: Depth buffer for camera
Have you seen the samples?
There is one example of motion blur in the compositor examples.
There is one example of motion blur in the compositor examples.
-
- Gnoblar
- Posts: 2
- Joined: Fri Oct 15, 2021 3:45 am
Re: Depth buffer for camera
Thanks for the reply!
Yes I have seen the sample and tried to add motion blur to the compositor, but addCompositor returns 0 as the other user described in this post https://answers.gazebosim.org//question ... -viewport/
- dark_sylinc
- OGRE Team Member
- Posts: 5296
- Joined: Sat Jul 21, 2007 4:55 pm
- Location: Buenos Aires, Argentina
- x 1278
- Contact:
Re: Depth buffer for camera
Hi!
The compositor needs to be defined either via C++ code or script.
The definition tells Ogre how to apply the effect (i.e. what to do)
Look where it's defined (it's either in the C++ sample or in a .compositor script file) and copy it so you can apply it
The compositor needs to be defined either via C++ code or script.
The definition tells Ogre how to apply the effect (i.e. what to do)
Look where it's defined (it's either in the C++ sample or in a .compositor script file) and copy it so you can apply it