View Full Version : Texture that always faces to the viewer?
05-03-2001, 05:50 AM
I´m talking about these 2D textures, that spin with, if you move arround them, so that you allways see the front of it.
Many games use it and I want to use it for a particle system ... but I dunno how this technique is called and how I can code this in OpenGL?
05-03-2001, 06:00 AM
That method is called billboarding. Search the forum for billboards and you should find what you are looking for.
[This message has been edited by DFrey (edited 05-03-2001).]
05-03-2001, 08:29 AM
Your "Up" vector (mat,mat,mat)
Your "Right" vector (mat,mat,mat)
Use those to compase a quad and you're done. http://www.opengl.org/discussion_boards/ubb/smile.gif
Look also on NAte Miller's web site for some implementation sample.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.