Depth of Field?

View previous topic View next topic Go down

Depth of Field?

Post  jj on 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

View user profile

Back to top Go down

Re: Depth of Field?

Post  meteors on 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
avatar
meteors

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

View user profile

Back to top Go down

Re: Depth of Field?

Post  jj on 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

View user profile

Back to top Go down

Re: Depth of Field?

Post  meteors on 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
avatar
meteors

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

View user profile

Back to top Go down

Re: Depth of Field?

Post  sio2interactive on 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
avatar
sio2interactive

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

View user profile http://sio2interactive.com

Back to top Go down

Re: Depth of Field?

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

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