0fc1e468feremoved 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
2e82f9e2eaadding required arguments to shape constructors in scene description language
Josh Holtrop
2009-02-10 00:52:38 +00:00
0181e82653added 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
c6e1a2c7e4added refptr<T>::operator=(const T * ptr) method, including refptr in parser
Josh Holtrop
2009-02-10 00:18:07 +00:00
e2424337d6moved 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
498d35274dfixed up util/refptr
Josh Holtrop
2009-02-09 23:51:00 +00:00
fc8a46853badded 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
70eeff90fbadded class node to parser to store parsed node types (YYSTYPE is now Node)
Josh Holtrop
2009-02-09 00:24:19 +00:00
3da5e6d569added scenes and scenes/infinity.fart
Josh Holtrop
2009-02-09 00:08:36 +00:00
c3e31eab4aadded boolean shapes to parser
Josh Holtrop
2009-02-08 23:57:57 +00:00
f5dc4c7f93updated parser rules a bit
Josh Holtrop
2009-02-08 23:24:11 +00:00
ba7190d7d8working on parser
Josh Holtrop
2009-02-08 19:42:55 +00:00
afd0df3ce4added LESS and GREATER to parser tokens
Josh Holtrop
2009-02-04 20:41:47 +00:00
e758f53a3eadded svn:ignore to parser directory for flex and bison produced files
Josh Holtrop
2009-02-04 18:51:18 +00:00
dab2381fbaparser modules now compiling and linking with main build process
Josh Holtrop
2009-02-04 18:50:15 +00:00
1fe251f27dadded -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
d421a652e4fixed compile warning in util/Color for return value of operator+= and -=
Josh Holtrop
2009-02-02 15:29:01 +00:00
78fd509d0fback up to default ambient of (0.1, 0.1, 0.1), Phong shading working
Josh Holtrop
2009-01-31 22:42:14 +00:00
c4509d0594added an ambient color component to Material, changed Lighting to use it
Josh Holtrop
2009-01-31 22:34:36 +00:00
7181a894a4capping 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
6fbdf46122fixed bug in util/Vector::reflect(), Phong shading getting much closer
Josh Holtrop
2009-01-31 00:17:09 +00:00
41b4354d52trying to get Phong shading model working, having very large color values come back though
Josh Holtrop
2009-01-30 20:53:13 +00:00
8677680577added main/Lighting module, added operator-() to util/Vector, added m_shininess to main/Light
Josh Holtrop
2009-01-30 20:28:05 +00:00
f087488b39using 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
08a0047ba8added 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
47dd5a31fefixed strange compile warning in fart.cc by making constructor arguments to Scene::Scene() consts
Josh Holtrop
2009-01-29 14:49:41 +00:00
866f22a637added 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
9041ec6a1cshapes/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
a52b456bfaupdated 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
fa353392c6updating main/Scene to accept points back instead of distances from intersect()
Josh Holtrop
2009-01-27 23:03:24 +00:00
83bb409ef9added 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
47cf177a15removed svn:executable for some files
Josh Holtrop
2009-01-27 18:28:38 +00:00
7d7ec130e0added 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
dad8497bf4multisampling working
Josh Holtrop
2009-01-25 23:01:46 +00:00
d88f1ab5fdfixed bug in QuadraticSolver, cheap lighting working
Josh Holtrop
2009-01-23 23:56:39 +00:00
761925220badded getNormalAt() to Shape & Sphere, trying to get basic lighting
Josh Holtrop
2009-01-23 18:09:27 +00:00
801f61f48cRay-Sphere intersections are working, no lighting/shading/materials/reflectance
Josh Holtrop
2009-01-23 17:20:23 +00:00
bd12e9798fTransform::rotate() using radians instead of degrees in sin(), cos() calls
Josh Holtrop
2009-01-23 16:47:08 +00:00
20eafaf9f4fixed view plane distance calculation to use tan() and convert degrees to radians
Josh Holtrop
2009-01-23 16:44:39 +00:00
a1c81e5adcsphere drawing, but stretched horizontally... have to figure that out yet
Josh Holtrop
2009-01-23 16:00:43 +00:00