FORUM CLOSED, PLEASE REGISTER AT FORUM.SIO2INTERACTIVE.COM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Depth of Field?

3 posters

Go down

Depth of Field? Empty Depth of Field?

Post  jj Mon Dec 22, 2008 6:44 am

Wondering if the engine includes any capability for depth of field or blur within camera?

jj

Posts : 77
Join date : 2008-09-24

Back to top Go down

Depth of Field? Empty Re: Depth of Field?

Post  meteors Mon Dec 22, 2008 7:01 am

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
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

Depth of Field? Empty Re: Depth of Field?

Post  jj Mon Dec 22, 2008 7:05 am

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... confused

is there a way to blur the render in openGLES?

jj

Posts : 77
Join date : 2008-09-24

Back to top Go down

Depth of Field? Empty Re: Depth of Field?

Post  meteors Mon Dec 22, 2008 7:09 am

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
meteors
meteors

Posts : 241
Join date : 2008-11-08
Location : Sunny Florida

Back to top Go down

Depth of Field? Empty Re: Depth of Field?

Post  sio2interactive Mon Dec 22, 2008 3:00 pm

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 Wink
sio2interactive
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 45
Location : Shanghai

http://sio2interactive.com

Back to top Go down

Depth of Field? Empty Re: Depth of Field?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum