Page 1 of 1

Parallax effect

Posted: Fri Dec 13, 2013 3:31 am
by jonaspm
Hello everybody! long time since my last visit... sorry :S school!

Well, i come now to ask you if anyone know how to create a parallax effect in ZGE?

I think it's easy right? just place the 2D or 3D elements i want in their right position and change the Z value... right?

Thanks in advance to everyone!

Re: Parallax effect

Posted: Fri Dec 13, 2013 11:54 am
by Kjell
Hi jonaspm,
jonaspm wrote:just place the 2D or 3D elements i want in their right position and change the Z value... right?
Correct. As long as you use a perspective camera, you automatically get a parallax effect between elements that are placed at varying depths.

However, in case you want to use a orthographic camera you need to calculate / control the parallax effect yourself. Attached is a simple ( but clumsy ) example of that principle.

K

Posted: Fri Dec 13, 2013 11:56 pm
by jonaspm
thanks Kjell! nice example!!!

thanks for your valuable help :)