Advertisement

(Newbie) Sprites

Started by November 11, 2000 05:21 PM
5 comments, last by The Kid 24 years ago
Does anyone know if it is possible to use sprites in OpenGL ? (I know it probably is, but I thought I''d ask just to be sure) If so, how ? Thanks a bunch If you have any info plz email me at galwyn@hotmail.com The Kid I don''''t know what the future holds, but I know who holds the future.
I don''t know what the future holds, but I know who holds the future.
I believe that the closest thing to a sprite is 2 texturemapped triangles in the form of a quad. I don''t think OpenGL can do it any other way. (Except maybe by using copypixels, but that''s probably WAY to slow)
Prosser: But the plans were on display.Arthur Dent: On display? I eventually had to go down to the cellar.Prosser: That's the display department.Arthur Dent: With a torch.Prosser: The lights had probably gone.Arthur Dent: So had the stairs.Prosser: But you did see the notice, didn't you?Arthur Dent: Oh, yes. It was on display in the bottom of a locked filing cabinet stuck in a disused lavatory with a sign outside the door saying "Beware of the Leopard." Ever thought of going into advertising?
Advertisement
Well, I thought there was a way. Boy do I feel stupid now.
I don''t know what the future holds, but I know who holds the future.
Dont feel stupid, there is a way.

It''s called raster graphics.

You should check out the gl command...

glBitmap

You can aloso use bitmap fonts as simple sprites...

glCallLists/glGenLists
glListBase/ wglUseFontBitmaps

or for color images...

glDrawPixels
glReadPixels/glCopyPixels

Theese are the ones you should study closer to make simple
sprites. Some of them are limited to only 2 colors such as
glBitmap and others not. They are not menant for that purpose,
but you can easy use them to simulate sprites.

Good Luck. Allmight
-------------------------------------------------Founder and DirectorAllSoft Studios
Did you see the tutorials? What do you mean by sprites? There''s a tutorial on making those quads that always face the camera... Aren''t those sprites?
Yes, those quads that always face camera are actually sprites but they are often called as billboards.
Advertisement
Isn''t there a tutorial about displaying a bmp in 3D space ( the star demo thing) Im a newbie but ist that like a sprite

I maybe wrong!

Alan

IF YA SMELL... WHAT THE BEZZ IS COOKIN''''

This topic is closed to new replies.

Advertisement