X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=blobdiff_plain;f=doc%2Findex.org;h=761ec822beb84f8dd2d3e12b5b074ffde6d86ba6;hb=4d8ec2cf940099ca17f075effd1c310a99f3c3a6;hp=fd1a8568280fb9535f588a98335de5189444e3a6;hpb=a8f54d698199d45920ad60e40629e52fd8c30340;p=sixth-3d.git diff --git a/doc/index.org b/doc/index.org index fd1a856..761ec82 100644 --- a/doc/index.org +++ b/doc/index.org @@ -11,12 +11,8 @@ #+HTML_HEAD: * General -- This is a subproject of [[https://www3.svjatoslav.eu/projects/sixth/][Sixth]] - -- This program is free software: you can redistribute it and/or modify - it under the terms of the [[https://www.gnu.org/licenses/lgpl.html][GNU Lesser General Public License]] as - published by the Free Software Foundation, either version 3 of the - License, or (at your option) any later version. +- This program is free software: released under Creative Commons Zero + (CC0) license - Program author: - Svjatoslav Agejenko @@ -136,30 +132,29 @@ For API usage examples, see [[https://www3.svjatoslav.eu/projects/sixth-3d-demos + Antialiazing. Would improve text readability. If antialiazing is too expensive for every frame, it could be used only for last frame before animations become still and waiting for user input starts. +** Render only visible polygons ++ This would significantly reduce RAM <-> CPU traffic. -+ Render only visible polygons. - + This would significantly reduce RAM <-> CPU traffic. - - + General algorithm description: - + For each horizontal scanline: - + sort polygon edges from left to right - + while iterating and drawing pixels over screen X axis (left to - right) track next appearing/disappearing polygons. - + For each polygon edge update Z sorted active polygons list. - + Only draw pixel from the top-most polygon. - + Only if polygon area is transparent/half-transparent add - colors from the polygons below. ++ General algorithm description: + + For each horizontal scanline: + + sort polygon edges from left to right + + while iterating and drawing pixels over screen X axis (left to + right) track next appearing/disappearing polygons. + + For each polygon edge update Z sorted active polygons list. + + Only draw pixel from the top-most polygon. + + Only if polygon area is transparent/half-transparent add + colors from the polygons below. - + As a bonus, this would allow to track which polygons are really - visible in the final scene for each frame. ++ As a bonus, this would allow to track which polygons are really + visible in the final scene for each frame. - + Such information allows further optimizations: + + Such information allows further optimizations: - + Dynamic geometry simplification: - + Dynamically detect and replace invisible objects from the - scene with simplified bounding box. + + Dynamic geometry simplification: + + Dynamically detect and replace invisible objects from the + scene with simplified bounding box. - + Dynamically replace boudnig box with actual object once it - becomes visible. + + Dynamically replace boudnig box with actual object once it + becomes visible. - + Dynamically unload unused textures from RAM. + + Dynamically unload unused textures from RAM.