Skip to main content
GameDev.net gamedev.net
🔒 Locked

Aligned sprites

Started by Denix Linelli Oct 14, 2000 at 3:47 AM 0 replies 950+ views
Original Post
Denix Linelli
Denix Linelli
I would like to know how I can get a polygon quad like a sprite aligned around a vector? This is for energy beams (from spaceships). I have a start point for the beam, and an end point, and I need to draw a screen-aligned sprite around it. DX docs had a sample on billboarding but it was only alinged around the y-axis, not any vector. Secondly, missile trails. I need segmented beams for missile trails such as in half-life or freespace 2. So this is basically like the above beam except there is a polyline (line strip). How do I place the vertices so that each segment is screen-aligned around its segment line, and the vertices coincide with the vertices from the previous segment?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.