Sign in to follow this  
zacaj

Billboarding Laser Beams

Recommended Posts

I was wondering what youd have to do different to do a billboard of a laser beam, so it looks like a laser from all angles but is positioned in two points intead of one.

Share this post


Link to post
Share on other sites
Extrude a quad in direction of cross product of laser beam direction and camera to beam direction. Should work fine unless I'm forgetting something. I implemented this for gunshot tracers for one of the artists a while back.

Share this post


Link to post
Share on other sites
Ahhh, that reminds me of G-Police on the PlayStation back in the 90's, which also had Laser Beams.

But in G-Police, if you looked from above, you could see that those where not really billboards, but rather something like:

|   |   |   |   |   |   <(---


With each | being a quad, so when looking though the canopy, they would be projected near together on the screen.

But maybe look at G-Police?

Share this post


Link to post
Share on other sites
One other possibility, and was how the lightsabers were done in the Jedi Knight series, is to make a line made up of small circles.

[][][][][][][][]

The saber blade was made up of a line of billboarded quads like the above, and on each was an alpha'd circle, the circle center white, and the outer edge the colour of the laser. With them all facing the camera all the time and blended together, they always had really nice looking saber blades in those games, which looked good from any angle. If you keep the quads overlapped enough, then you will always get a smooth beam too.

Personally I agree with Knarkles approach though for simplicity and have also found it works fairly well in msot cases.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this