Commit Graph

  • e4dc0f4d36 error loading object file when "usemtl" references an undefined material master Josh Holtrop 2011-05-27 15:39:53 -04:00
  • e6b8c17345 initialize WFObj::Buffer parameters Josh Holtrop 2011-05-21 23:32:39 -04:00
  • 1ecc6d749b specify GL_GLEXT_PROTOTYPES in build environment Josh Holtrop 2011-05-16 15:54:35 -04:00
  • 08e558482f add resolvePath() to find files rel to .obj path Josh Holtrop 2011-05-16 15:32:11 -04:00
  • 1918cc89bf changed loadfile and loadtexture to load() params Josh Holtrop 2011-05-16 15:24:00 -04:00
  • e999bf67b7 add texture support Josh Holtrop 2011-05-16 15:16:40 -04:00
  • 01a90fdef7 change VertexRef elements to unsigned values to fix compile warnings Josh Holtrop 2011-05-16 15:01:36 -04:00
  • c5c76f0033 compile with -Wall, fix a warning Josh Holtrop 2011-05-16 15:00:43 -04:00
  • 1c17d3b398 Merge branch 'master' of ssh://holtrop.homelinux.com/wfobj Josh Holtrop 2011-05-04 20:38:53 -04:00
  • 6bdaecd9f7 add GL_INCLUDE_FILE capability Josh Holtrop 2011-05-04 20:38:38 -04:00
  • 2fcba86aad add doTextures() Josh Holtrop 2011-05-04 19:44:09 -04:00
  • 2ffcdfb3dc remove draw(); add get*() methods for client access Josh Holtrop 2011-05-04 16:12:00 -04:00
  • 4e76817336 make Material a public subclass, remove renderMaterial() Josh Holtrop 2011-05-04 15:50:18 -04:00
  • 933c4b457a update README for version info v2.0 Josh Holtrop 2011-04-25 17:22:32 -04:00
  • 2e599ab86b bugfix in index calculation for material group > 0 Josh Holtrop 2011-04-25 17:20:10 -04:00
  • e1f2d5a04a remove unnecessary 'num' variable Josh Holtrop 2011-04-25 17:17:13 -04:00
  • ce0a8e608d fix populating buffer data Josh Holtrop 2011-04-25 16:38:17 -04:00
  • a12c4ec42d fill out draw() Josh Holtrop 2011-04-25 14:48:47 -04:00
  • e07ed46297 bind buffers Josh Holtrop 2011-04-24 23:31:08 -04:00
  • 53d4bebbc2 add draw() and renderMaterial() Josh Holtrop 2011-04-24 23:28:53 -04:00
  • fea2100741 fill indices VBO Josh Holtrop 2011-04-24 23:16:13 -04:00
  • 02a3f85fc1 use two VBOs, filling in data VBO Josh Holtrop 2011-04-24 22:46:56 -04:00
  • 0bdfff50e7 store face indices per material for drawing Josh Holtrop 2011-04-24 22:35:58 -04:00
  • d13e3a60b2 fill in client-side data Josh Holtrop 2011-04-24 22:19:24 -04:00
  • 5eed1256ef allocate client-side data for VBO Josh Holtrop 2011-04-24 21:03:14 -04:00
  • 0f816ded34 bugfix with readFaces() Josh Holtrop 2011-04-24 20:52:45 -04:00
  • e980b60044 use atof() instead of sscanf() Josh Holtrop 2011-04-24 20:46:29 -04:00
  • 40c37dacb2 working on buildVBO() Josh Holtrop 2011-04-24 19:54:51 -04:00
  • 6dab4e48a6 build flat_vertices collection for VBO Josh Holtrop 2011-04-24 19:14:07 -04:00
  • 67ef0c4009 add initial buildVBO() Josh Holtrop 2011-04-20 16:29:59 -04:00
  • 66d4bb50e4 fix basePath(); load .mtl relative to .obj path Josh Holtrop 2011-04-20 15:46:30 -04:00
  • d78d956826 fix readFaces() segfault Josh Holtrop 2011-04-20 15:37:00 -04:00
  • a6eca59683 build driver program as well Josh Holtrop 2011-04-20 15:32:26 -04:00
  • 806f7890f3 call updateAABB() Josh Holtrop 2011-04-20 15:25:58 -04:00
  • 0daac5781e loadfile_t takes Buffer ref instead of ptr Josh Holtrop 2011-04-20 15:22:35 -04:00
  • a46b5baa05 fill WFObj::loadfile(), add Buffer allocation Josh Holtrop 2011-04-20 15:20:10 -04:00
  • ffe2fe1d92 load materials into Material objects Josh Holtrop 2011-04-20 15:08:42 -04:00
  • 874be25658 update trimString(), add tokenize() Josh Holtrop 2011-04-20 14:45:55 -04:00
  • cf4e09814f add valid flag, expand clear() Josh Holtrop 2011-04-20 12:22:59 -04:00
  • d33b4826e2 add WFObj::VertexRef::operator<() Josh Holtrop 2011-04-20 12:19:55 -04:00
  • 3506ad6b57 update updateAABB() Josh Holtrop 2011-04-20 11:34:02 -04:00
  • 8e6cd37dc9 use scons to build Josh Holtrop 2011-04-20 11:30:00 -04:00
  • 51c0ded005 fix compilation errors; compiling! Josh Holtrop 2011-04-19 17:05:17 -04:00
  • 18c4be6a42 remove WFMtl, I didn't like it Josh Holtrop 2011-04-19 16:58:07 -04:00
  • a9ad715e4b finish readFaces() Josh Holtrop 2011-04-19 16:51:25 -04:00
  • 96737a0386 finish processInputLine() Josh Holtrop 2011-04-19 16:43:08 -04:00
  • dffa5a98a5 add readFaces() and readVertexRef() Josh Holtrop 2011-04-19 16:26:59 -04:00
  • 476f4cde66 remove render(), gut processInputLine(), add m_faces map Josh Holtrop 2011-04-19 16:16:41 -04:00
  • 3f78016e26 coding style update Josh Holtrop 2011-04-19 16:00:25 -04:00
  • e7f7ca4b3f add VertexRef Josh Holtrop 2011-04-19 15:59:55 -04:00
  • f46f887472 replace m_data with m_vertices Josh Holtrop 2011-04-19 15:58:18 -04:00
  • 594642f489 finish load() Josh Holtrop 2011-04-18 12:40:59 -04:00
  • 28722f4c94 add WFObj::getLine() Josh Holtrop 2011-04-18 12:35:09 -04:00
  • d59eb2ffe5 break compile; begin to modify for v2.0 Josh Holtrop 2011-04-18 12:21:13 -04:00
  • ebb39c8750 update README for v2.0 Josh Holtrop 2011-04-18 10:56:34 -04:00
  • 7bc9afea4b add README v1.0 Josh Holtrop 2011-04-18 09:16:24 -04:00
  • d06888128c fix full path bug with loading texture files for materials Josh Holtrop 2011-03-08 13:44:34 -05:00
  • b714c0b08f use CPPFLAGS in Makefile josh 2010-10-26 20:08:50 +00:00
  • 8edddaf396 setting texture mode when blending josh 2010-09-17 16:42:06 +00:00
  • 9920ba04b8 added enableBlending flag to WFObj rendering josh 2010-09-17 16:18:19 +00:00
  • 11033c5876 fixed checkGLError() josh 2010-02-25 16:45:50 +00:00
  • b2ab1fc98b added DEBUG_GL_ERROR debug functionality josh 2009-11-18 00:20:14 +00:00
  • 3a42a0cb47 pushing attributes before binding textures josh 2009-11-16 22:30:39 +00:00
  • d69b65e95f pushing attributes for GL_ENABLE_BIT josh 2009-11-16 03:23:57 +00:00
  • 4a11b8f621 updated Makefile josh 2009-10-18 16:33:59 +00:00
  • 663669a407 rename WFObj.hh to WFObj.h due to massive interface change; changed loader to use FileLoader and TextureLoader objects, accepting path via a FileLoader::Path argument instead of a raw string josh 2009-10-17 21:25:22 +00:00
  • 81e6d24374 added header #ifndef josh 2009-09-27 21:00:52 +00:00
  • 59f7e83a3f use spaces not tabs! josh 2009-09-14 03:15:35 +00:00
  • 049cb20c7c fixed warning about const qualifier josh 2009-09-14 00:26:48 +00:00
  • e642818e4a added doTextureInfo option to WFObj::render() and WFMtl class methods josh 2008-11-13 23:21:22 +00:00
  • 9a1902b1cb actually call updateAABB() when read vertex data... josh 2008-03-03 02:08:28 +00:00
  • 95bd26e1f2 do not call m_loadTexture if it is null, retabbed josh 2008-03-01 20:58:27 +00:00
  • 64fea9c370 added support for a file-loading function, possibly to load objects/materials from data in memory josh 2008-02-20 03:41:37 +00:00
  • 9c3944c98e added axis-aligned bounding box computation and retrieval function josh 2008-02-20 02:46:32 +00:00
  • 85c451e8c2 added Ns material support josh 2008-02-15 01:30:06 +00:00
  • 125b2e0863 after glPopAttrib() set m_attributesPushed = false josh 2008-01-31 04:17:19 +00:00
  • 7e63501f47 split Makefile for driver version and object-only version (default) josh 2008-01-29 04:34:14 +00:00
  • 26e2833f82 merged WFMtl code into WFObj files, added loadTexture callback josh 2008-01-29 03:04:22 +00:00
  • 0ba39b3669 materials rendering colors, still need texture support josh 2008-01-28 01:30:29 +00:00
  • 8772342fdb closer to rendering materials with WFMtl josh 2008-01-27 14:18:41 +00:00
  • 2fe1763b74 getting ready to call materials josh 2008-01-27 14:05:42 +00:00
  • 5b34c54c96 added (in progress) WFMtl class, clear() method josh 2008-01-27 14:00:34 +00:00
  • 14aca0a2e8 initial import josh 2008-01-26 21:34:35 +00:00
  • 877696c605 made directory for Wavefront object parser josh 2008-01-26 21:32:34 +00:00