What exactly is OpenGL for anyway?

Started by
13 comments, last by kaiel090x 22 years, 8 months ago
Just my 2 cents I think Opengl does a great job of doing 2d its really easy to do and you can get some nice sfxs going on too and its portable like ya guys said .
Advertisement
quote:Original post by Derilect101
Just my 2 cents I think Opengl does a great job of doing 2d its really easy to do and you can get some nice sfxs going on too and its portable like ya guys said .

Agreed



[Resist Windows XP''s Invasive Production Activation Technology!]
al right, all right... Ok. I KNOW (cleaer to say printf or cout in front for some of ya? lol) that i CAN(see C_A_N- Can- being able to) do 2d, and I know its WORKS just as welll as Direct Draw, but I dont know HOW to put 2D into the game. But, a very great person, the best guy in the world, lol, ShiningKnight told me hes makin a tutorial SO i dcided just to wait till than. Thank for trying to help me

"He who fights monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you."~Friedrich Nietzsche
"He who fights monsters should look to it that he himself does not become a monster... when you gaze long into the abyss, the abyss also gazes into you."~Friedrich Nietzsche
Z=0
(http://www.ironfroggy.com/)(http://www.ironfroggy.com/pinch)
Hmm Im a bit bored so I''ll put in some info here.

OK, now assume you have some sprites that you want to animate in 2D [your characters/fighters/backgrounds/weapons/etc]. Your graphics are already drawn.

You have these drawn out already in something like photoshop and they are bitmaps [or JPEGS or whatever.. they''re images in some form]

Now you have to have something that puts it all together. Your program in C++ calls OpenGL in order to draw the pixels to the screen.

In the case of 3D, OpenGL is actually calculating the position, lighting, texturing/etc for each triangle. It is converting from the XYZ coordinates you specify into actual pixels that are to be displayed on the screen.

In the case of 2D, OpenGL allows you to draw and animate your existing 2D sprites. It will load in the images you have made and move them around the screen based on the instructions you give it. It can layer images [like putting a character on top of a background] or blend images together [using transparancy/etc]. You can rotate/scale the images, and tons of other stuff.

OpenGL is not what you use to create the images, it is what you use to display the final result.

The graphics artist will make the content that OpenGL uses to display on the screen, but the programmer must tell OpenGL how to use that content.

Anyway, hope this helps.
~Dom C.
binary1230
Draw your own conlcusions.~Dom C.

This topic is closed to new replies.

Advertisement