28 Commits

Author SHA1 Message Date
Josh Holtrop
e53e626a63 build mipmaps with GLU for texture shader 2011-05-16 16:26:07 -04:00
Josh Holtrop
ab56320889 pass uniforms to texture program correctly 2011-05-16 16:12:41 -04:00
Josh Holtrop
10b945dd6b only two texture coordinates 2011-05-16 16:05:34 -04:00
Josh Holtrop
1c5b95a9fd build and use texture program/shaders 2011-05-16 16:04:22 -04:00
Josh Holtrop
1a1bdf64ce import glslUtil; use for creating shaders/program 2011-05-16 15:55:22 -04:00
Josh Holtrop
f672782921 preparing for textures 2011-05-16 15:43:54 -04:00
Josh Holtrop
5f55756a08 inlined renderMaterial() 2011-05-16 15:37:14 -04:00
Josh Holtrop
f0e4bbd3b1 loading textures properly, not rendering yet 2011-05-16 15:33:23 -04:00
Josh Holtrop
913e8f6287 build with loadTexture(), not rendering textures yet 2011-05-16 15:25:03 -04:00
Josh Holtrop
2e2b8225be glUniform4fv() wants a count of 1 for a vec4 update 2011-05-05 13:45:20 -04:00
Josh Holtrop
0d70153bf9 update correct uniforms 2011-05-05 13:39:03 -04:00
Josh Holtrop
b2fdaedf70 set shader uniform variables for material properties 2011-05-05 13:33:48 -04:00
Josh Holtrop
fb1d90e168 add initial shaders, draw using vertex attributes 2011-05-05 13:07:14 -04:00
Josh Holtrop
f3d9a3b437 add renderMaterial(), call glDrawElements() 2011-05-04 20:05:06 -04:00
Josh Holtrop
aafacfb3f9 set up vertex array pointers 2011-05-04 19:49:21 -04:00
Josh Holtrop
66c58b1f9a update wfobj to new version, remove draw() call 2011-05-04 16:26:38 -04:00
Josh Holtrop
54e3970362 retabbed 2011-04-25 16:32:41 -04:00
Josh Holtrop
bead7f9690 display error on failure to load .obj file 2011-04-25 16:29:55 -04:00
Josh Holtrop
698c7e99b7 build with scons; update to v2.0 interface 2011-04-25 15:28:04 -04:00
Josh Holtrop
4d873b1296 add TextureLoader, FileLoader submodules; update to compile again 2011-03-08 13:40:29 -05:00
josh
f04947830e updated to build on Windows
git-svn-id: svn://anubis/misc/wfobj-view@165 bd8a9e45-a331-0410-811e-c64571078777
2009-10-09 19:59:08 +00:00
josh
34604c03ac wfobj-view now displays the object size on the console
git-svn-id: svn://anubis/misc/wfobj-view@57 bd8a9e45-a331-0410-811e-c64571078777
2008-06-20 01:12:53 +00:00
josh
4f5ab0b6a3 added Ns support to WFObj, updated viewing method
git-svn-id: svn://anubis/misc/wfobj-view@36 bd8a9e45-a331-0410-811e-c64571078777
2008-02-15 01:28:33 +00:00
josh
d476dd822f removed DEBUGGL output, Q key quits, set svn:ignore
git-svn-id: svn://anubis/misc/wfobj-view@35 bd8a9e45-a331-0410-811e-c64571078777
2008-02-13 02:32:29 +00:00
josh
681dbf4ab6 loaded a textured .obj!
git-svn-id: svn://anubis/misc/wfobj-view@32 bd8a9e45-a331-0410-811e-c64571078777
2008-01-30 04:14:50 +00:00
josh
9db9725187 zoom support
git-svn-id: svn://anubis/misc/wfobj-view@31 bd8a9e45-a331-0410-811e-c64571078777
2008-01-30 03:59:59 +00:00
josh
dd1f9a834d trackball working with rectangle
git-svn-id: svn://anubis/misc/wfobj-view@30 bd8a9e45-a331-0410-811e-c64571078777
2008-01-30 03:51:23 +00:00
josh
3abb848fac initial import, wfobj-view.cc from basic trackball program
git-svn-id: svn://anubis/misc/wfobj-view@29 bd8a9e45-a331-0410-811e-c64571078777
2008-01-30 03:26:38 +00:00