render.git
2 years agoAdd Z-buffer, fixes issue with pyramidal studs master
Nick Downing [Wed, 20 Apr 2022 09:46:19 +0000 (19:46 +1000)]
Add Z-buffer, fixes issue with pyramidal studs

2 years agoSome effort to fix a bug where pyramidal studs of chest are shown inside out
Nick Downing [Wed, 20 Apr 2022 09:38:59 +0000 (19:38 +1000)]
Some effort to fix a bug where pyramidal studs of chest are shown inside out

2 years agoImprove performance by drawing into CPU framebuffer and then blitting to screen
Nick Downing [Wed, 20 Apr 2022 09:01:46 +0000 (19:01 +1000)]
Improve performance by drawing into CPU framebuffer and then blitting to screen

2 years agoAdd rough texturization, driven by barycentric rather than screen coordinates
Nick Downing [Wed, 20 Apr 2022 07:25:00 +0000 (17:25 +1000)]
Add rough texturization, driven by barycentric rather than screen coordinates

2 years agoTranspose the qug array, remove pug array in favour of individual columns
Nick Downing [Wed, 20 Apr 2022 06:34:53 +0000 (16:34 +1000)]
Transpose the qug array, remove pug array in favour of individual columns

2 years agoMake calling program use direct access to obj internals rather than getters
Nick Downing [Wed, 20 Apr 2022 06:13:17 +0000 (16:13 +1000)]
Make calling program use direct access to obj internals rather than getters

2 years agoAdd ability to load material maps into struct tga/struct array without OpenGL
Nick Downing [Wed, 20 Apr 2022 05:58:37 +0000 (15:58 +1000)]
Add ability to load material maps into struct tga/struct array without OpenGL

2 years agoIn obj.[ch] remove obj typedef in favour of struct obj directly, change index_t defin...
Nick Downing [Wed, 20 Apr 2022 05:09:07 +0000 (15:09 +1000)]
In obj.[ch] remove obj typedef in favour of struct obj directly, change index_t define to obj_index_t typedef and similarly GL_INDEX_T (both controlled by new OBJ_INDEX_IS_INT define), move definitions between obj.c and obj.h to rationalize what is visible to caller

2 years agoImplement hidden face removal, although there are some artifacts I need to fix
Nick Downing [Tue, 19 Apr 2022 13:06:17 +0000 (23:06 +1000)]
Implement hidden face removal, although there are some artifacts I need to fix

2 years agoSimplify the code for gathering the vertices of a face
Nick Downing [Tue, 19 Apr 2022 12:37:35 +0000 (22:37 +1000)]
Simplify the code for gathering the vertices of a face

2 years agoAdd obj support from https://github.com/rlk/obj.git commit 48a69165 and sample *...
Nick Downing [Tue, 19 Apr 2022 10:22:04 +0000 (20:22 +1000)]
Add obj support from https://github.com/rlk/obj.git commit 48a69165 and sample *.obj and *.mtl files, fix array bugs

2 years agoImprove navigation to use new dynamically allocated mul_mat_mat() result
Nick Downing [Tue, 19 Apr 2022 06:30:28 +0000 (16:30 +1000)]
Improve navigation to use new dynamically allocated mul_mat_mat() result

2 years agoImplement generic printing and matrix/vector routines using new array->dim[]
Nick Downing [Tue, 19 Apr 2022 06:17:03 +0000 (16:17 +1000)]
Implement generic printing and matrix/vector routines using new array->dim[]

2 years agoAdd extra constructors for initialized and zeroed arrays
Nick Downing [Tue, 19 Apr 2022 06:03:57 +0000 (16:03 +1000)]
Add extra constructors for initialized and zeroed arrays

2 years agoImprove array package so that dimensions are stored separately to strides
Nick Downing [Tue, 19 Apr 2022 05:22:28 +0000 (15:22 +1000)]
Improve array package so that dimensions are stored separately to strides

2 years agoAllow to spin the cube
Nick Downing [Mon, 18 Apr 2022 14:46:17 +0000 (00:46 +1000)]
Allow to spin the cube

2 years agoDraw a cube
Nick Downing [Mon, 18 Apr 2022 14:20:35 +0000 (00:20 +1000)]
Draw a cube

2 years agoEmpty SDL2 example with my array package
Nick Downing [Mon, 18 Apr 2022 12:38:08 +0000 (22:38 +1000)]
Empty SDL2 example with my array package