Laser Beam End Points Problems (XNA)
Posted
by
user36159
on Game Development
See other posts from Game Development
or by user36159
Published on 2013-10-25T15:59:21Z
Indexed on
2013/10/25
16:12 UTC
Read the original article
Hit count: 479
I am building a game in XNA that features colored laser beams in 3D space.
The beams are defined as:
- Segment start position
- Segment end position
- Line width
For rendering, I am using 3 quads:
- Start point billboard
- End point billboard
- Middle section quad whose forward vector is the slope of the line and whose normal points to the camera
The problem is that using additive blending, the end points and middle section overlap, which looks quite jarring. However, I need the endpoints in case the laser is pointing towards the camera!
See the blue laser in particular:
© Game Development or respective owner