View unanswered posts | View active topics It is currently Thu Nov 23, 2017 5:28 am



Reply to topic  [ 6 posts ] 
 shadow for model 
Author Message

Joined: Fri Dec 30, 2011 1:02 am
Posts: 4
Post 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


Thu Jan 12, 2012 7:44 am
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post 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).

@+


Thu Jan 12, 2012 1:44 pm
Profile

Joined: Fri Dec 30, 2011 1:02 am
Posts: 4
Post 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?


Fri Jan 13, 2012 7:01 am
Profile
Site Admin

Joined: Sun Jan 03, 2010 4:27 pm
Posts: 390
Post 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.
@+


Fri Jan 13, 2012 9:08 pm
Profile

Joined: Fri Dec 30, 2011 1:02 am
Posts: 4
Post Re: shadow for model
I mean the following shadow effect
Image


Thu Jan 26, 2012 6:13 pm
Profile

Joined: Fri Dec 30, 2011 1:02 am
Posts: 4
Post Re: shadow for model
http://nehe.gamedev.net/tutorial/lessons_26__30/29002/

shadows with the stencil buffer


Tue May 22, 2012 8:36 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.