May 23, 2012, 01:50:36 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Please report any bugs or issues that you might be encountering with the Beta in the Support System so that we can better keep track of any oustanding issues that may come up.

GameCore Support System
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to do lens flare in bv?  (Read 427 times)
liverol
Newbie
*
Posts: 3


View Profile
« on: July 04, 2009, 09:36:33 PM »

like the titie,how to script a lens flare???
appericate for answer!!
Logged
Ron
Sr. Member
****
Posts: 326


View Profile
« Reply #1 on: July 07, 2009, 01:30:22 PM »

I could see two different ways:

1. If its on a vehicle windshield for example, put a transparent texture on the window with the flare on it. You can script the flare/texture uv to move around according to vehicle rotation in the world.

2. If its for the whole scene, just do a single plane that always stays in front of the player view. Move the uv around the same as above with scripting.

Finally, not sure how this would work, but you could make a light in the world that follows the player around or orbits the player depending upon how he turns. Then you could have the light only reflect on the player.
Logged
Squat
Hero Member
*****
Posts: 592


View Profile
« Reply #2 on: July 07, 2009, 02:13:55 PM »

A simple textured plane set to billboard and 'additive' blend mode will work just fine for the flare. You will probably want to create several shapes and colors and code on some motion parameters for when looking up (assuming this is for the sun). If it's just for a simple light glow, there should be no problems just slapping it in.
Logged
Pages: [1]
  Print  
 
Jump to:  

 
Powered by MySQL Powered by PHP bluBlur Skin © 2006, hbSkins
Powered by SMF 1.1.14 | SMF © 2006-2011, Simple Machines LLC
Valid XHTML 1.0! Valid CSS!