web - What is the fastest engine for drawing large numbers of semitransparent trianges? -


i enjoy computer graphics.

i wondering fastest engine following functionality:

draws triangles 4 color channels rgba , allows drawing of point , directional lights.

texturing cool additional feature, again looking fastest engine, not functional. camera animation , object animation imperative.

finally there 2 answers question, 1 general development , 1 web, if can speak 1 or other contributions appreciated!

there quite lot of engines job. 1 of known example unity, have tons of other features in performance.

but think not looking engine api. examples opengl or directx (already mentioned). opengl has specific web content (webgl).

there 1 more problem: triangles should semitransparent. missing in other answer question if triangles ordered. opengl example in rendering objects not matter triangle nearest viewer. "searches" 1 on fly , shows triangle visible. semitransparent triangles possible see different triangles overlapping each other , therefore not necessary know triangle in front, triangle comes directly after , on. opengl offers blending feature, necessary order semitransparent triangles manually before rendering. called painters algorithm. while sorting of objects complex problem, exspecially large number of objects, take quite long time.

for there solution called "depth peeling". idea render triangles multiple times opengl. first time triangles in front. render triangles again, without triangles in front. results in second nearest triangles viewer. after triangles rendered again, without first 2 "peels", results in third nearest triangles , on. expensive because has rendered multiple times, in cases there large number of triangles faster sorting (and more precise due overlapping triangles). in cases 4 peels enough results. further read suggest following paper of everitt: http://gamedevs.org/uploads/interactive-order-independent-transparency.pdf


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -