Results 1 to 3 of 3

Thread: Point sprites Vs Vertices

  1. #1

    Thread Starter
    Hyperactive Member singularis's Avatar
    Join Date
    Nov 2006
    Location
    Over There!
    Posts
    372

    Point sprites Vs Vertices

    All the objects in my game are a collection of six vertices, I have had them it the format so I can quicky render them as a TRIANGLELIST.

    Alternatively since all objects have textures and are represented as textures would it not be easier to use a point sprite per object or stick with the style I am doing. The only trouble with point sprites is that I will have to resize them for different sized objects and they would not have any solid form.

    Which would be easier, Point Sprites or Vertices?
    If what I said was helpful, give me rep!

    My Complete Games: -- 2D Zone (Space Shooter game) || _2D Zone 2_ || Ninja Blob (2D platformer) || Dren (Co-op up to 4 player base defence game)

    My Projects: -- The Dread Engine (2D VB game Engine) || A* Path Finding


    An excellent site for learning DirectX7, 8 & 9 (for VB6, C# & VB.net) would be: directx4vb.vbgamer.com --- For my projects and games see: pieper.freehostia.com

  2. #2
    Junior Member Spodi's Avatar
    Join Date
    Jul 2003
    Location
    Washington, USA
    Posts
    18

    Re: Point sprites Vs Vertices

    Woah woah woah, wait a second, are you saying you are drawing 2d objects with 6 verticies? First off, you should probably do that with a TRIANGLESTRIP so you only have to define 4 points.

    http://directx4vb.vbgamer.com/

    Have you used Point Sprites before? I personally find them a huge pain in the butt - correct me if I am wrong, but from what I have found, you have to use the whole texture, sizing can be a bit of a hassle, can't do rotations, can only specify a single light value. I only really like them for particle engines. Using a triangle strip should suffice just fine, though.

  3. #3

    Thread Starter
    Hyperactive Member singularis's Avatar
    Join Date
    Nov 2006
    Location
    Over There!
    Posts
    372

    Re: Point sprites Vs Vertices

    Ah, funky

    I guess you could use triangle strips with Vertexbuffers. Believe or not I have visited the site you quoted. In fact that is the very same site I learned about directx from. I always assummed that triangle strips were used similarly to triangle fans and therefore useless when combined with vertexbuffers.
    If what I said was helpful, give me rep!

    My Complete Games: -- 2D Zone (Space Shooter game) || _2D Zone 2_ || Ninja Blob (2D platformer) || Dren (Co-op up to 4 player base defence game)

    My Projects: -- The Dread Engine (2D VB game Engine) || A* Path Finding


    An excellent site for learning DirectX7, 8 & 9 (for VB6, C# & VB.net) would be: directx4vb.vbgamer.com --- For my projects and games see: pieper.freehostia.com

Posting Permissions

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



Click Here to Expand Forum to Full Width