Show differencesHistory of post edits
#ActualBitMaster
Posted 07 November 2012 - 10:25 AM
Well, that will largely depend on exactly which transformations are needed. In the pure 2D case you can get away with a mat2x3 and still be completely general. For translation with rotation you can get away with a single vec3 (2D translation and angle) or maybe a vec4 (2D translation and precalculated sin(angle) and cos(angle)). I guess the 'best' solution to this problem will be extremely domain-specific, so the more ideas Cornstalks has lying around, the better.
#2BitMaster
Posted 07 November 2012 - 10:25 AM
Well, that will largely depend on exactly which transformations are needed. In the pure 2D case you can get away with a mat2x3 and still be completely general. For translation with rotation you can get away with a single vec3 (2D translation and angle) or maybe a vec4 (2D translation and precalculated sin(angle) and cos(angle)). I guess the 'best' solution to this problem will be extremely domain-specific, so the more ideas Cornstalks has lying around, the better.
#1BitMaster
Posted 07 November 2012 - 10:24 AM
Well, that will largely depend on exactly which transformations are needed. In the pure 2D case you can get away with a mat2x3 and still be completely general. For translation with rotation you can get away with a single vec3 (2d translation and angle). I guess the 'best' solution to this problem will be extremely domain-specific, so the more ideas Cornstalks has lying around, the better.