www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: orkshaman on April 29, 2011, 12:46:15 am

Title: How to make flare zoom?
Post by: orkshaman on April 29, 2011, 12:46:15 am
I want to make flare effect for cars. Right now flare is plane object with texture and billboarding. Now I need that flare become smaller when it come closer to camera and larger if go from camera. I have only one idea - to set scale flares every frame, depending on its position.
Maybe JPCT have some feature for invert Zaxis zoom or to make it more easy for phone?
Sorry if I miss something in documentation.
Title: Re: How to make flare zoom?
Post by: EgonOlsen on April 29, 2011, 09:12:57 pm
Your idea is fine. There's no magic included that does this, you have to do this yourself.
Title: Re: How to make flare zoom?
Post by: orkshaman on April 29, 2011, 10:05:31 pm
Thank you, it work already. And not so slow as I thought.