Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Blah!

OpenGL OpenGL

This topic is 6830 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Can you draw 2d sprites and images onscreen with OpenGL or is it just 3d? Ive always used DirectDraw for sprites and images.

Share this post


Link to post
Share on other sites
Advertisement
On unaccelerated machine OpenGL are terribly slow.

Draw a sprite in DDraw is equal to copy an image from system/video memory to system/video memory.To draw a sprite in OpenGL we must define a quad, transform it and then apply texture...if we have not a 3D card it''s a disaster!

If we have a 3D card that is capable to render hundreds of polygons per frame, we are able to blit hundreds of sprites!
And we are able to use lights, rotations, scaling, transparency (alpha and/or blend); there are a lot of video card with a 3D speed greater than 2D and there are not many ''special FX'' in 2D.

The only drawback is that 3D works only with texture allocated on video-memory and a modern 2D game has several MB of bitmaps stored on system memory.

Of course it seems incredible to use expensive 3D approach to resolve 2D problems but it will be the future.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!