Results 1 to 3 of 3

Thread: Any tips on making a nice light saber effect?...

  1. #1
    Guest

    Any tips on making a nice light saber effect?...

    The subject explains it all. I was going to use some texture mapping and blending, but if anyone has some good tips they are much appreciated.

    Thanks.

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jun 2000
    Location
    Shreveport, LA, USA
    Posts
    1,502

    Re: Any tips on making a nice light saber effect?...

    Well as far as the graphics are concerned, I would choose a suitable white, alpha blended texture, and use the primary color to set the color of the saber. To achieve the effect of a saber I would draw a single quad with the texture and rotate it along its long (primary) axis so that it is always facing towards the viewer. Also as the saber's primary axis and the viewers line of sight become increasing parallel, i.e. the viewer is look down the saber rather than across it, I would blend an end-cap with a texture that is a cross section of the saber rather than profile. I would also tie the blending factor of the end-cap to the angle between the line of sight and the saber's primary axis, so that the end-cap doesn't appear to pop into existance.

  3. #3

    Re: Any tips on making a nice light saber effect?...

    You might try a simple line, use glLineWidth to make it bigger, and then modulate the color a little, you might even do 2 passes on it for a little antialasion, and get a decent effect at a much less strain on the system.
    Waiting gives the devil time.

Similar Threads

  1. making the light stationary
    By badass in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 05-31-2010, 07:50 AM
  2. Nice looking fog effect
    By FlayedOne in forum OpenGL: Basic Coding
    Replies: 22
    Last Post: 07-17-2009, 07:11 AM
  3. Light effect
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-25-2003, 10:01 AM
  4. Black light effect
    By nexusone in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 03-12-2002, 10:55 AM
  5. Any tips on making water "look" good?
    By Ace_Man in forum OpenGL: Advanced Coding
    Replies: 7
    Last Post: 03-14-2001, 09:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean