Depth of Field?
3 posters
Depth of Field?
Wondering if the engine includes any capability for depth of field or blur within camera?
jj- Posts : 77
Join date : 2008-09-24
Re: Depth of Field?
What exactly do you mean by depth of field?
I don't think SIO2 has any motion blur functionality, although there are ways of doing this within OpenGL. (Not so sure about OpenGL ES though...)
Best,
-joshua
I don't think SIO2 has any motion blur functionality, although there are ways of doing this within OpenGL. (Not so sure about OpenGL ES though...)
Best,
-joshua
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: Depth of Field?
i basically mean just adding a gaussian/radial blur to the rendering of the 3d camera. to fake the effect of "blurring the background" like a 35mm camera lens.
blender has depth of object and Dof Distance (depth of the focus point), but i didn't know if sio2 supports this...
is there a way to blur the render in openGLES?
blender has depth of object and Dof Distance (depth of the focus point), but i didn't know if sio2 supports this...
is there a way to blur the render in openGLES?
jj- Posts : 77
Join date : 2008-09-24
Re: Depth of Field?
Obviously, be sure to look at:
SIO2_SDK_v1.3.1/docs/html/struct_s_i_o2camera.html
I'm sure there are ways of achieving a blur effect one way or another. It might be expensive. In standard OpenGL this is sometimes done with the accumulation buffer.
-j
SIO2_SDK_v1.3.1/docs/html/struct_s_i_o2camera.html
I'm sure there are ways of achieving a blur effect one way or another. It might be expensive. In standard OpenGL this is sometimes done with the accumulation buffer.
-j
meteors- Posts : 241
Join date : 2008-11-08
Location : Sunny Florida
Re: Depth of Field?
It is possible with OpenGL ES and require the following pass:
1. Render the scene
2. Grab the current color buffer as texture
3. Resize Down the Texture
4. Resize Up the Texture (in order to blur it ~ or use gaussian blur algo.)
5. Apply the texture on a full screen quad with alpha on the current color buffer
Et voila...
But that's expensive processing
1. Render the scene
2. Grab the current color buffer as texture
3. Resize Down the Texture
4. Resize Up the Texture (in order to blur it ~ or use gaussian blur algo.)
5. Apply the texture on a full screen quad with alpha on the current color buffer
Et voila...
But that's expensive processing
Permissions in this forum:
You cannot reply to topics in this forum