7d64dd745d
got Shape::IntersectionList::merge() to sort the result with IntersectionComparator successfully
Josh Holtrop2009-02-24 00:38:09 +00:00
25d6432dbd
trying to get a custom comparator to sort my IntersectionList after a merge()
Josh Holtrop2009-02-23 22:26:46 +00:00
56278a8337
changed IntersectionList into a class so i could add merge()
Josh Holtrop2009-02-23 21:39:56 +00:00
5f18370846
merged /branches/2009-02-23_Shape_IntersectList_Update into trunk
Josh Holtrop2009-02-23 20:37:57 +00:00
ab2832a660
fixed compile issues with switch to new Shape::IntersectionList
Josh Holtrop2009-02-23 20:26:45 +00:00
0c7f85db96
updating IntersectList to new Shape::IntersectionList format
Josh Holtrop2009-02-23 20:24:30 +00:00
3b3a153559
created 2009-02-23_Shape_IntersectList_Update branch for changing Shape::IntersectList into a vector of Intersections, which contain both a pointer to the actual underlying Shape object and the vector for the intersection point. This will be necessary to support boolean objects.
Josh Holtrop2009-02-23 19:09:36 +00:00
e23d5cdca4
added shapes/Intersect, need to rework IntersectList
Josh Holtrop2009-02-23 05:51:51 +00:00
29b60f346e
added process*() functions in Scene-load.cc for various shape types
Josh Holtrop2009-02-21 14:36:18 +00:00
b0014e34d1
made parsed_scene_node static to parser, parse() returns refptr<Node> now
Josh Holtrop2009-02-17 23:31:19 +00:00
f3e522262b
removed knowledge of domain types from parser, removed process() from Node, added a global refptr<Node> object, took parse(fileName) out of Scene class
Josh Holtrop2009-02-17 22:59:53 +00:00
a8e898e445
changed DEC_NUMBER from generating a NumberNode to an IntegerNode in parser.lex
Josh Holtrop2009-02-17 14:15:34 +00:00
4b0f506522
added Color::yellow, finished shapes/Box, added a couple boxes to sample scene
Josh Holtrop2009-02-17 05:36:48 +00:00
13fedccf4c
updated svn:ignore on parser directory for C++ version of flex output file
Josh Holtrop2009-02-17 05:21:06 +00:00
6e67597dc7
commit before attempting to compile flex scanner with C++ instead of C
Josh Holtrop2009-02-17 01:29:25 +00:00
3aed1c21ca
filled out tree-building code for all parser nodes
Josh Holtrop2009-02-17 00:58:08 +00:00
5d7a230ee3
using -O2 which avoids "might be used uninitialized" compiler warnings, added *.dep to svn:ignore for parser directory
Josh Holtrop2009-02-16 21:51:45 +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 Holtrop2009-02-10 01:09:07 +00:00
2e82f9e2ea
adding required arguments to shape constructors in scene description language
Josh Holtrop2009-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 Holtrop2009-02-10 00:37:49 +00:00
c6e1a2c7e4
added refptr<T>::operator=(const T * ptr) method, including refptr in parser
Josh Holtrop2009-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 Holtrop2009-02-10 00:10:04 +00:00
fc8a46853b
added some setters to Scene, including some modules in parser, ready to do something with the parse results
Josh Holtrop2009-02-09 02:55:02 +00:00
70eeff90fb
added class node to parser to store parsed node types (YYSTYPE is now Node)
Josh Holtrop2009-02-09 00:24:19 +00:00
afd0df3ce4
added LESS and GREATER to parser tokens
Josh Holtrop2009-02-04 20:41:47 +00:00
e758f53a3e
added svn:ignore to parser directory for flex and bison produced files
Josh Holtrop2009-02-04 18:51:18 +00:00
dab2381fba
parser modules now compiling and linking with main build process
Josh Holtrop2009-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 Holtrop2009-02-04 18:45:55 +00:00
d421a652e4
fixed compile warning in util/Color for return value of operator+= and -=
Josh Holtrop2009-02-02 15:29:01 +00:00
78fd509d0f
back up to default ambient of (0.1, 0.1, 0.1), Phong shading working
Josh Holtrop2009-01-31 22:42:14 +00:00
c4509d0594
added an ambient color component to Material, changed Lighting to use it
Josh Holtrop2009-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 Holtrop2009-01-31 18:29:28 +00:00
6fbdf46122
fixed bug in util/Vector::reflect(), Phong shading getting much closer
Josh Holtrop2009-01-31 00:17:09 +00:00
41b4354d52
trying to get Phong shading model working, having very large color values come back though
Josh Holtrop2009-01-30 20:53:13 +00:00
8677680577
added main/Lighting module, added operator-() to util/Vector, added m_shininess to main/Light
Josh Holtrop2009-01-30 20:28:05 +00:00
f087488b39
using Color instead of Vector where appropriate, updated main/Light to use diffuse and specular lights
Josh Holtrop2009-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 Holtrop2009-01-30 00:18:20 +00:00
47dd5a31fe
fixed strange compile warning in fart.cc by making constructor arguments to Scene::Scene() consts
Josh Holtrop2009-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 Holtrop2009-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 Holtrop2009-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 Holtrop2009-01-28 18:51:14 +00:00