GLC_lib & GLC_Player Forums
http://www.forum.glc-lib.net/

shadow for model
http://www.forum.glc-lib.net/viewtopic.php?f=6&t=810
Page 1 of 1

Author:  ziyoo [ Thu Jan 12, 2012 7:44 am ]
Post subject:  shadow for model

How can I get shodow effect on the bottom of model,like used for EADS presentation at Paris air Show 2011 ? Thanks

Author:  laumaya [ Thu Jan 12, 2012 1:44 pm ]
Post subject:  Re: shadow for model

The software used by EADS for the presentation at Paris air show 2011 don't use shadow effect, it use a mirror effect.
To do that, you just have to render your scene in 2 pass with different point of view. (It's not a GLC_lib built in function).

@+

Author:  ziyoo [ Fri Jan 13, 2012 7:01 am ]
Post subject:  Re: shadow for model

Thanks for your quick reply. Do you know how to do that? Or where could I get some example for that?

Author:  laumaya [ Fri Jan 13, 2012 9:08 pm ]
Post subject:  Re: shadow for model

ziyoo wrote:
Thanks for your quick reply. Do you know how to do that? Or where could I get some example for that?

Just change the current OpenGL view matrix before the call of GLC_World::render(...);
Something like that :
Code:
glScaled(NewPlaneNormal.x, NewPlaneNormal.y, NewPlaneNormal.z);
glTranslated(PointOnTheMirrorPlane.x, PointOnTheMirrorPlane.y, PointOnTheMirrorPlane.z);

To create shadow effect, you can disable lightning before rendering the mirror.

Tips : mirror must be render before normal scene...

Recommended reading : More OpenGL Game Programming.

It's not a GLC_lib built-in function... It's a pure OpenGL.
@+

Author:  ziyoo [ Thu Jan 26, 2012 6:13 pm ]
Post subject:  Re: shadow for model

I mean the following shadow effect
Image

Author:  ziyoo [ Tue May 22, 2012 8:36 pm ]
Post subject:  Re: shadow for model

http://nehe.gamedev.net/tutorial/lessons_26__30/29002/

shadows with the stencil buffer

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/