   rendering 2d polys using 3d hardware
  Hi im trying to make a 2D vector format, which will be run using 3D hardware through D3D.Ive got a few questions:1. I was wondering how I would do the stroke for 2D polygons(the outline)? The way I am currently thinking is to create a slightly larger replica of the polygon, then draw over it. But this would not be the fastest way ( I will rendering alot of polys).2. For filling in polys, it''s simple for doing just a flat fill. But for gradient fills, is there any way to go about doing these. The way im currently thinking of doing it is creating a texture and blting to it. Then texturing the polygon with that texture. But these may cause stretching problems etc.3. Not really a 3D question. But ive noticed other vector graphics have things called "paths". Ive looked at code for how there done but it seems a little odd. So could someone clarify (or tell me im wrong) are paths just a list of line segments/curves which can be used to make polygons which can be filled.If you can answer any of these questions. It would be much appriciated. Thanks in advanceIain 
quote:Original post by WizHarDx  So could someone clarify (or tell me im wrong) are paths just a list of line segments/curves which can be used to make polygons which can be filled.Exactly. ;  1. I''m not entirely sure what you mean here, do you mean like a filled polygon with an outline?  If so then just drawing the polygon and then it''s outline on top will be plenty fast enough.  Roughly how many polygons are we talking here? 2. You can assign colours to each polygon vertex individually and have the hardware linearly interpolate between them.  You can also setup skewed gradients by using the perspective correction capabilities.  If you want stranger gradients then textures might be the way to go, depends entirely on exactly the gradients you want.;  cheers for the help so far guys.JNC, by stroke I mean the outline of 2D polygons. It programs like flash you can make it a diffrent colour, a diffrent width, etc. I was wondering how you could pull this off.Well for polygons im hoping the engine will pull of 20,000 + polys.thanx in advanceIain 