Sprite Laser

Blitz3D Forums/Blitz3D Programming/Sprite Laser

Ken Lynch(Posted 2003) [#1]
I'm trying to do a laser using sprites (scaling along the Y axis and pointing it at its destination) and the only problem I'm having is keeping the sprite facing the camera correctly. I've tried changing the view modes, 1 is obviously the wrong choice, 2 doesn't change to face the camera at all, 3 & 4 don't do what I want either.

What I need is for the sprites yaw to change to show as much of the surface of the sprite as is possible without changing the pitch and roll.

Is this possible or do we need another sprite view mode to best handle this situation?


Ross C(Posted 2003) [#2]
i don't think that's possible. i may be wrong tho. a good way i done lasers was to have a very low poly mesh, then have the same mesh but larger and transparent, so it is like a glow around the smaller one. looks quite good to :)

sorry i can't help with you sprites tho :(


Ken Lynch(Posted 2003) [#3]
Ahh, I thought I remember some code to do this in the archive, finally found it.

http://www.blitzbasic.com/codearcs/codearcs.php?code=313

Though I think it would be better having a new SpriteViewMode to do this, so I've posted a feature request.