+ Reply to Thread
Results 1 to 10 of 10

Thread: A Complete 2D/3D Vector and Point API?

  1. #1
    Member
    Join Date
    May 2006
    Location
    Slovakia
    Posts
    70

    Default A Complete 2D/3D Vector and Point API?

    Hello,

    Does anybody know a good, stable, rich and working 2D/3D Point and Vector API, that would contain math functionality with properly overloaded operands, and varous vector and point formats as for 2D as for 3D? This API could be ready for matrix operations as well..

    I know I can develop one on my own, but if there is anything finished and tested, I would prefer simply downloading and start working..

    Thank you, with regards,
    Rene.

  2. #2

    Default

    Hello,

    Assuming you are talking about C++, you could take a look at the prohecy SDK. It has 2D, 3D & 4D vectors, matrices, quaternions, ....

    In fact, it is a complete multimedia SDK, but it's quite modular, so you can use/rip out the pieces you like.
    Dominique

  3. #3
    Senior Member
    Join Date
    Aug 2004
    Location
    Dordrecht, The Netherlands
    Posts
    114

    Default

    The D3DX library does what you want. It's an extension library of DirectX Graphics. When available, it uses MMX, 3DNow and that sort of thing.

  4. #4
    Senior Member
    Join Date
    Mar 2004
    Location
    USA
    Posts
    666

    Default

    I'm looking for something similar, but with the additional requirement that it needs to be cross-platform. It seems to be a bit like searching for a good 2d game engine--there isn't one that will be perfect for everyone out of the box.
    Jason McIntosh
    Otherwhere Gameworks

  5. #5
    Senior Member
    Join Date
    Jan 2005
    Location
    Argentina
    Posts
    602

    Default

    If you are going to make one for your own, you can base it on mine's.
    It is not fully tested, each part worked when I first wrote it 3 years ago, but I've changed it several times and actually I'm only using 2d so the 3d part has not been tested since a while.

    If you decide to use it, and you find some bug let me know
    Last edited by Pogacha; 11-10-2008 at 01:37 PM.

  6. #6
    Senior Member
    Join Date
    Dec 2004
    Location
    Quebec, Canada
    Posts
    103

    Default

    Quote Originally Posted by Bunkai View Post
    Hello,

    Does anybody know a good, stable, rich and working 2D/3D Point and Vector API, that would contain math functionality with properly overloaded operands, and varous vector and point formats as for 2D as for 3D? This API could be ready for matrix operations as well..

    I know I can develop one on my own, but if there is anything finished and tested, I would prefer simply downloading and start working..

    Thank you, with regards,
    Rene.
    maybe antigrain could be what you need
    http://www.antigrain.com/

    Anti-Grain Geometry (AGG) is an Open Source, free of charge graphic library, written in industrially standard C++. The terms and conditions of use AGG are described on The License page. AGG doesn't depend on any graphic API or technology. Basically, you can think of AGG as of a rendering engine that produces pixel images in memory from some vectorial data. But of course, AGG can do much more than that. The ideas and the philosophy of AGG are:

    * Anti-Aliasing.
    * Subpixel Accuracy.
    * The highest possible quality.
    * High performance.
    * Platform independence and compatibility.
    * Flexibility and extensibility.
    * Lightweight design.
    * Reliability and stability (including numerical stability).

    Below there are some key features (but not all of them):

    * Rendering of arbitrary polygons with Anti-Aliasing and Subpixel Accuracy.
    * Gradients and Gouraud Shading.
    * Fast filtered image affine transformations, including many interpolation filters (bilinear, bicubic, spline16, spline36, sinc, Blackman).
    * Strokes with different types of line joins and line caps.
    * Dashed line generator.
    * Markers, such as arrowheads/arrowtails.
    * Fast vectorial polygon clipping to a rectangle.
    * Low-level clipping to multiple rectangular regions.
    * Alpha-Masking.
    * A new, fast Anti-Alias line algorithm.
    * Using arbitrary images as line patterns.
    * Rendering in separate color channels.
    * Perspective and bilinear transformations of vector and image data.
    * Boolean polygon operations (and, or, xor, sub) based on Alan Murta's
    General Polygon Clipper.

    free and cross platform

  7. #7
    Senior Member
    Join Date
    Dec 2004
    Location
    SF Bay Area
    Posts
    788

    Default

    Anti-grain, sounds nice. But the license is restrictive if you use it in a commercial application. Also, cross platform means Win32 and X11. Although Macintosh supports X11, it's not casual friendly.
    Keith Nemitz
    Ordinauteur
    http://www.mousechief.com/

  8. #8
    Senior Member
    Join Date
    Dec 2004
    Location
    Quebec, Canada
    Posts
    103

    Post

    Quote Originally Posted by Musenik View Post
    Anti-grain, sounds nice. But the license is restrictive if you use it in a commercial application. Also, cross platform means Win32 and X11. Although Macintosh supports X11, it's not casual friendly.
    I didn't see any restriction related to commercial application. AG is rendering all the graphics into a memory buffer, it doesn't depend on win32 or X11. The supplied demo are win32 or X11 specific but the library is not. Once the AG rendering is done, you only have to blit the result to your screen device and your all set.

  9. #9
    Senior Member
    Join Date
    Dec 2004
    Location
    SF Bay Area
    Posts
    788

    Default

    Okay, I see what you mean about crossplatform. Here's the licence info:

    AGG 2.5 License

    Anti-Grain Geometry is an Open Source, free library released under the terms and conditions of GNU GPL license.

    See the details and full text at http://www.gnu.org/copyleft/gpl.html
    The previous versions have more liberal licences that allow for free use in commercial software.
    Commercial licensing is also available upon request.
    ------------------------------------------------------------

    So, for the latest version, you get something special!
    Keith Nemitz
    Ordinauteur
    http://www.mousechief.com/

  10. #10
    Senior Member
    Join Date
    Aug 2004
    Location
    Dordrecht, The Netherlands
    Posts
    114

    Default

    AGG 2.4 has a much less restrictive license, so you could use that version if the GPL doesn't work for you.

    Anti-Grain Geometry - Version 2.4
    Copyright (C) 2002-2004 Maxim Shemanarev (McSeem)

    Permission to copy, use, modify, sell and distribute this software
    is granted provided this copyright notice appears in all copies.
    This software is provided "as is" without express or implied
    warranty, and with no claim as to its suitability for any purpose.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts