graphics - Drawing millions of segments on screen -
i draw millions of line segments screen. of time user see area of "universe", user should have ability "zoom" out see line segments @ once.
my understanding primitive "triangle", have express line segments triangles. millions of triangles.
is xna right tool job, or slow?
additional detail:
- this not game, modeling program of processes.
- i not care language use (xna recommended me)
p.s.: please let me know if need additional detail.
my understanding primitive "triangle", have express line segments triangles. millions of triangles.
incorrect, xna can draw lines in following manner:
graphicsdevice.drawindexedprimitives(primitivetype.linelist, vertexoffset, 0, numvertices, startindex, primitivecount);
(or primitivetype.linestrip if end vertex of line1 start vertex of line2).
is xna right tool job, or slow?
xna "a tool", , if you're drawing lot of lines definately going faster gdi+ , easy implement c++ in combo unmannaged d3d. drawing line cheap operation. advice install xna , quick prototype see how many lines can draw @ same time. (my guess @ least 1 million). see if need use advanced techniques described other posters.
also "polyline simplification" technique suggested felice pollano doesn't work individual lines, models made of triangles (you can exchange lot of small triangles few bigger once increase performance decrease visuals, if you're zoomed out pritty far nobody notice) won't work "thickened lines" because consist of 2 triangles. (unless if allow bended lines).
Comments
Post a Comment