Jump to content
  • Advertisement
Sign in to follow this  
Trapper Zoid

OpenGL Fast Vector Graphics for Games?

This topic is 4839 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

Hopefully I've got the right forum for this question... I'm interesting in playing around with vector graphics for my games to give them a cartoonish paper cut-out look; ideally I'd like to be able to take an image defined in a vector graphics format (like SVG) and be able to display it with scaling and rotation. I guess this is similar to what is done in Flash, but I'd be wanting a system that is compatible with OpenGL, DirectX, SDL or something similar for fast non-web game graphics (I'm not that fussed as to which, although cross platform capability is a big plus). Does anyone know of any libraries or other methods that are out there to help with fast game vector graphics? I've been thinking about this after a conversation on another thread with SiCrane about graphics tools; from this I'm presently looking at importing some vector to raster functions from the ImageMagick libraries. But I was wondering if anyone knew of anything better out there, or had some suggestions on better techniques. C or C++ is prefered, although I'm rather rusty in my programming (I prefer algorithm design to actually coding these days.) If hard pressed for solutions I'll might have to write my own bezier curve engine. I'd be grateful for any tips on how to do this too. Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
Perhaps OpenVG is for you: http://www.khronos.org/openvg/

I don't know how good support there is for it though.

Share this post


Link to post
Share on other sites
The SVG parser that the AGG library uses (in the above link) doesn't render all SVG properly. In particular, it fails on detecting windings correctly for doing fills. (One of the reasons I'm using ImageMagick now.)

Share this post


Link to post
Share on other sites
I found OpenVG when I did my initial Google search, but it seems to only at the specification stage yet, and aimed for hand-held devices.

If the AGG library fails on the windings for fills, I might just stick to ImageMagick for now and see what I can do with it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!