Commit Graph

  • 69c5fdd1e6 updated parser to compile again, still have non-virtual destructor compiler warnings Josh Holtrop 2009-02-16 20:51:59 +00:00
  • 4d5faf8362 updating parser nodes, introducing conflicts, still not compiling Josh Holtrop 2009-02-16 20:19:01 +00:00
  • 9849ba06b5 adding tree node classes, updated addChild() and added addChildren() to Node Josh Holtrop 2009-02-16 17:29:57 +00:00
  • 3014a39bb0 added parser/nodes.{cc,h}, broke compilation temporarily Josh Holtrop 2009-02-16 13:41:09 +00:00
  • dcbdf4e2ec updated parser Makefile to include dependency information Josh Holtrop 2009-02-16 01:21:28 +00:00
  • 6f2851f279 yyparse() now a friend function to Scene, light constructors not taking position arguments any more Josh Holtrop 2009-02-12 03:56:09 +00:00
  • c136bda827 added the_Color to Node, material gathering AMBIENT, DIFFUSE, SPECULAR color values Josh Holtrop 2009-02-12 03:07:22 +00:00
  • 8a112009a6 converted shapes and lights collection in Scene to be refptrs instead of real pointers Josh Holtrop 2009-02-11 17:23:01 +00:00
  • 7f9b8b913a added Shape::~Shape() to work around compiler warnings Josh Holtrop 2009-02-11 17:11:30 +00:00
  • ee64558db6 made parser/parser.yy:parse() a method of class Scene so no global g_scene is needed Josh Holtrop 2009-02-11 17:08:38 +00:00
  • 8b9b6332cc changed getPtr() to isNull() in util/refptr, filled in parser logic a lot more Josh Holtrop 2009-02-11 04:27:44 +00:00
  • 236cbc7db0 added getPtr() to util/refptr Josh Holtrop 2009-02-10 01:21:54 +00:00
  • 2f16235ed2 updating parser logic Josh Holtrop 2009-02-10 01:20:05 +00:00
  • 0fc1e468fe removed test directory, converted Shape's material handle to a refptr<Material> instead of a Material *, made refptr<T>::operator*() and operator->() const members Josh Holtrop 2009-02-10 01:09:07 +00:00
  • 2e82f9e2ea adding required arguments to shape constructors in scene description language Josh Holtrop 2009-02-10 00:52:38 +00:00
  • 0181e82653 added dereference and indirection operators to util/refptr, converted parser to use refptr<Node> as YYSTYPE Josh Holtrop 2009-02-10 00:37:49 +00:00
  • c6e1a2c7e4 added refptr<T>::operator=(const T * ptr) method, including refptr in parser Josh Holtrop 2009-02-10 00:18:07 +00:00
  • e2424337d6 moved all refptr functions into util/refptr.h since they are templated, deleted util/refptr.cc, updated test/tests.cc to test refptr functionality Josh Holtrop 2009-02-10 00:10:04 +00:00
  • 498d35274d fixed up util/refptr Josh Holtrop 2009-02-09 23:51:00 +00:00
  • d34242252a added util/refptr module Josh Holtrop 2009-02-09 23:31:15 +00:00
  • fc8a46853b added some setters to Scene, including some modules in parser, ready to do something with the parse results Josh Holtrop 2009-02-09 02:55:02 +00:00
  • 70eeff90fb added class node to parser to store parsed node types (YYSTYPE is now Node) Josh Holtrop 2009-02-09 00:24:19 +00:00
  • 3da5e6d569 added scenes and scenes/infinity.fart Josh Holtrop 2009-02-09 00:08:36 +00:00
  • c3e31eab4a added boolean shapes to parser Josh Holtrop 2009-02-08 23:57:57 +00:00
  • f5dc4c7f93 updated parser rules a bit Josh Holtrop 2009-02-08 23:24:11 +00:00
  • ba7190d7d8 working on parser Josh Holtrop 2009-02-08 19:42:55 +00:00
  • 80004438be added parser/preparser.cc Josh Holtrop 2009-02-05 03:13:28 +00:00
  • afd0df3ce4 added LESS and GREATER to parser tokens Josh Holtrop 2009-02-04 20:41:47 +00:00
  • e758f53a3e added svn:ignore to parser directory for flex and bison produced files Josh Holtrop 2009-02-04 18:51:18 +00:00
  • dab2381fba parser modules now compiling and linking with main build process Josh Holtrop 2009-02-04 18:50:15 +00:00
  • 1fe251f27d added -lfl to LDFLAGS in main Makefile, added parser/parser.{lex,yy} and parser/Makefile (for real this time) Josh Holtrop 2009-02-04 18:45:55 +00:00
  • 31a7f0fedf updated subdir Makefiles, added parser directory and parser/Makefile Josh Holtrop 2009-02-04 18:35:32 +00:00
  • d421a652e4 fixed compile warning in util/Color for return value of operator+= and -= Josh Holtrop 2009-02-02 15:29:01 +00:00
  • 78fd509d0f back up to default ambient of (0.1, 0.1, 0.1), Phong shading working Josh Holtrop 2009-01-31 22:42:14 +00:00
  • c4509d0594 added an ambient color component to Material, changed Lighting to use it Josh Holtrop 2009-01-31 22:34:36 +00:00
  • 7181a894a4 capping colors in main/Lighting; colors are maxing out too easily, might need a better reduction method Josh Holtrop 2009-01-31 18:29:28 +00:00
  • 6fbdf46122 fixed bug in util/Vector::reflect(), Phong shading getting much closer Josh Holtrop 2009-01-31 00:17:09 +00:00
  • 41b4354d52 trying to get Phong shading model working, having very large color values come back though Josh Holtrop 2009-01-30 20:53:13 +00:00
  • 8677680577 added main/Lighting module, added operator-() to util/Vector, added m_shininess to main/Light Josh Holtrop 2009-01-30 20:28:05 +00:00
  • 434064c03c updated main/Material setters & getters for diffuse & specular colors Josh Holtrop 2009-01-30 04:31:18 +00:00
  • 18c0c8d45f added diffuse and specular colors to Material, switched all "private:" to "protected:" Josh Holtrop 2009-01-30 02:26:46 +00:00
  • 04b8ea5f9e added main/Material module Josh Holtrop 2009-01-30 02:20:29 +00:00
  • f087488b39 using Color instead of Vector where appropriate, updated main/Light to use diffuse and specular lights Josh Holtrop 2009-01-30 01:25:57 +00:00
  • 08a0047ba8 added proj() and reflect() to util/Vector, changed util/Transform to use Vector::proj() in lookAt() Josh Holtrop 2009-01-30 00:18:20 +00:00
  • c5ac957dff updated BMP.cc to avoid compiler warnings Josh Holtrop 2009-01-29 23:16:51 +00:00
  • 47dd5a31fe fixed strange compile warning in fart.cc by making constructor arguments to Scene::Scene() consts Josh Holtrop 2009-01-29 14:49:41 +00:00
  • 866f22a637 added operator*(Vector,double) and operator/(Vector,double) to util/Vector; added lookAt() to util/Transform (needs testing) Josh Holtrop 2009-01-28 23:47:46 +00:00
  • 9041ec6a1c shapes/Shape.h now including specific shape headers (after base class definition), test/tests.cc fixed compiler warning, main/Scene drawing demo Plane, util/Transform not needlessly re-initializing m_matrix Josh Holtrop 2009-01-28 21:41:19 +00:00
  • a52b456bfa updated Makefile to use -O1 in CXXFLAGS instead of -O3; -O2 and above currently break the app Josh Holtrop 2009-01-28 18:51:14 +00:00
  • ca3087eac5 shapes returning transformed normals Josh Holtrop 2009-01-28 15:06:48 +00:00
  • 7a4bb7dbc2 added LinearSolver to util/Solver module; added shapes/Plane module Josh Holtrop 2009-01-28 15:02:05 +00:00
  • e34bdf0d71 fixed test/tests.cc Josh Holtrop 2009-01-28 01:15:20 +00:00
  • fa353392c6 updating main/Scene to accept points back instead of distances from intersect() Josh Holtrop 2009-01-27 23:03:24 +00:00
  • 83bb409ef9 added Shape::IntersectList for returning a list of intersection points instead of intersections distances; build currently broken; need to update Scene to take into effect this change Josh Holtrop 2009-01-27 18:48:04 +00:00
  • 47cf177a15 removed svn:executable for some files Josh Holtrop 2009-01-27 18:28:38 +00:00
  • 5213df1af3 added shapes/Shape.cc Josh Holtrop 2009-01-27 18:15:06 +00:00
  • f4781e2889 updated getRayHits(), fixed bug in Scene::ShapeDistance(Shape *, double) Josh Holtrop 2009-01-27 01:34:00 +00:00
  • ecace9f5e8 added Scene::ShapeDistance construct Josh Holtrop 2009-01-27 00:47:21 +00:00
  • e8fd42f81f broke traceRay() out into getRayHits() Josh Holtrop 2009-01-27 00:11:14 +00:00
  • 38b2304641 added Color m_color instance variable to Light base class Josh Holtrop 2009-01-26 20:59:46 +00:00
  • e0d545a6b7 added util/Color module, updated Light and PointLight Josh Holtrop 2009-01-26 20:08:42 +00:00
  • 072bf75c04 added main/{Light,PointLight} modules Josh Holtrop 2009-01-26 16:05:23 +00:00
  • 7d7ec130e0 added operators +, - to Vector, added inverse transform instance variable to shapes/Shape, changed Sphere to use its inverse transform when calculating intersections and normals, removed simplistic lighting from main/Scene Josh Holtrop 2009-01-26 14:02:15 +00:00
  • dad8497bf4 multisampling working Josh Holtrop 2009-01-25 23:01:46 +00:00
  • d88f1ab5fd fixed bug in QuadraticSolver, cheap lighting working Josh Holtrop 2009-01-23 23:56:39 +00:00
  • 761925220b added getNormalAt() to Shape & Sphere, trying to get basic lighting Josh Holtrop 2009-01-23 18:09:27 +00:00
  • 801f61f48c Ray-Sphere intersections are working, no lighting/shading/materials/reflectance Josh Holtrop 2009-01-23 17:20:23 +00:00
  • bd12e9798f Transform::rotate() using radians instead of degrees in sin(), cos() calls Josh Holtrop 2009-01-23 16:47:08 +00:00
  • 20eafaf9f4 fixed view plane distance calculation to use tan() and convert degrees to radians Josh Holtrop 2009-01-23 16:44:39 +00:00
  • a1c81e5adc sphere drawing, but stretched horizontally... have to figure that out yet Josh Holtrop 2009-01-23 16:00:43 +00:00
  • 97b9fa9eab added getInverse() to util/Transform, fixed transform_*() functions Josh Holtrop 2009-01-23 15:28:53 +00:00
  • 7d461477b3 added operator<<(ostream, Ray) to util/Ray, main/Scene now calculating rays Josh Holtrop 2009-01-23 15:15:35 +00:00
  • f03b19a022 added messages to main/Scene, util/Matrix constructor sets matrix to identity Josh Holtrop 2009-01-23 14:57:47 +00:00
  • c32e826ee3 added --field-of-view and m_vfov to Scene Josh Holtrop 2009-01-23 14:43:49 +00:00
  • 73cdd1a5a1 improving Ray, Sphere, Solver, Scene a bit Josh Holtrop 2009-01-23 14:37:18 +00:00
  • bdb648b84f added transform_normal() to util/Transform Josh Holtrop 2009-01-23 04:15:25 +00:00
  • af0afe1631 added CXXFLAGS with -O3 to main Makefile Josh Holtrop 2009-01-23 02:14:45 +00:00
  • 63d56c5e43 renamed transformation operations in util/Transform for clarity Josh Holtrop 2009-01-23 02:13:17 +00:00
  • 277252ef77 added transformation operations to util/Transform Josh Holtrop 2009-01-23 00:27:29 +00:00
  • 2deee25004 added operator%() to util/Matrix Josh Holtrop 2009-01-23 00:14:22 +00:00
  • 0044dbb544 added Vector(double,double,double) constructor, filled in rotate() in Transform Josh Holtrop 2009-01-22 21:30:35 +00:00
  • cd9530d21b filled in scale() transformation in util/Transform Josh Holtrop 2009-01-22 20:36:05 +00:00
  • 13d7d90b87 added operator*=() to util/Matrix Josh Holtrop 2009-01-22 20:31:13 +00:00
  • 1454fe8c2e added --help option, updated util/Transform Josh Holtrop 2009-01-22 03:28:51 +00:00
  • 5692558733 main/Scene applying command-line options after loading input file Josh Holtrop 2009-01-22 03:07:14 +00:00
  • b6008116cf Scene now writing blank BMP file, accepting settings parameters Josh Holtrop 2009-01-22 02:51:43 +00:00
  • 959219ffb8 updated main/Scene to accept std::map of parameters Josh Holtrop 2009-01-22 02:26:32 +00:00
  • 5c9857e9a1 added a few scene options to the scene_options map for Scene to deal with Josh Holtrop 2009-01-22 01:29:35 +00:00
  • f143245c53 updated main/Scene module a tad Josh Holtrop 2009-01-20 22:35:44 +00:00
  • a52733c996 updated main/fart.cc a tad Josh Holtrop 2009-01-20 21:51:03 +00:00
  • c06255abff added main/Scene module; updated main/fart.cc to use getopt_long() Josh Holtrop 2009-01-20 21:39:44 +00:00
  • 0c8597f31b slight format changes to util/Matrix Josh Holtrop 2009-01-20 14:22:22 +00:00
  • 6283577b42 updated main Makefile Josh Holtrop 2009-01-20 04:31:42 +00:00
  • 2adb782b24 updated Makefile, tests.cc, util/Matrix Josh Holtrop 2009-01-20 04:02:10 +00:00
  • 746b17227c added operator<<(std::ostream, Matrix) to util/Matrix Josh Holtrop 2009-01-20 03:46:11 +00:00
  • 160d6998d6 filled out operator==(Matrix, Matrix) using FP_EQ() Josh Holtrop 2009-01-20 03:37:17 +00:00
  • 151a8895a8 updated Josh Holtrop 2009-01-20 01:42:05 +00:00
  • 739f1f4fac updated Makefile Josh Holtrop 2009-01-20 01:37:04 +00:00
  • f2e9f5293a added calculateInverse() to util/Matrix module Josh Holtrop 2009-01-20 01:29:18 +00:00
  • aec4a17e45 added determinant() to util/Matrix module Josh Holtrop 2009-01-20 00:12:06 +00:00