playform icon indicating copy to clipboard operation
playform copied to clipboard

use triangle strips and vertex indices

Open bfops opened this issue 11 years ago • 3 comments

since 603d3f28504993439f409a92e716641572951f51, cube vertices only contain positions again. Send the 8 vertices to VRAM, and use indices to construct a triangle strip.

https://www.cs.umd.edu/gvil/papers/av_ts.pdf - using 14 indices to construct a cube with a triangle strip. Note the triangles are constructed clockwise - we need to use the indices in reverse order.

https://www.opengl.org/discussion_boards/showthread.php/184752-triangle-strip-which-triangle-am-I-in - passing triangle-specific information (e.g. normal vectors) in a triangle strip.

bfops avatar Sep 06 '14 18:09 bfops

we can actually get the savings from the geometry shader back by using a uniform array! http://www.reddit.com/r/rust_gamedev/comments/2fmfkz/playform_gets_a_little_more_voxely_and_saves_a/cke2m98

bfops avatar Sep 10 '14 05:09 bfops

https://www.opengl.org/discussion_boards/showthread.php/184768-unknown-sized-uniform-struct-arrays?p=1261576

bfops avatar Sep 10 '14 06:09 bfops

will tie in with isosurface extraction https://github.com/bfops/playform/issues/55

bfops avatar Sep 20 '14 08:09 bfops