This website requires JavaScript.
5ff83f6734
Add propane and initial scene grammar
d
Josh Holtrop
2023-11-17 19:22:18 -05:00
6e04286cc2
Default to 800x600 transparent image output
Josh Holtrop
2023-10-11 09:58:21 -04:00
f8fc3518dd
Update write_png() to take a Color array
Josh Holtrop
2023-10-10 19:25:24 -04:00
8c109a741b
Add Vector struct
Josh Holtrop
2023-10-10 17:25:56 -04:00
5b734c315d
Add "test" rscons task
Josh Holtrop
2023-10-10 11:36:46 -04:00
8170593d56
Add Color struct
Josh Holtrop
2023-10-10 10:49:13 -04:00
e6c943aab4
Add fart.png to write RGBA PNG images
Josh Holtrop
2023-10-10 10:29:00 -04:00
5b449506cb
Add fart.hton module
Josh Holtrop
2023-10-09 19:13:11 -04:00
42e2508766
Add crc32()
Josh Holtrop
2023-10-09 19:06:51 -04:00
9f39cddc24
Add BFile struct
Josh Holtrop
2023-10-09 18:55:51 -04:00
4c57df0774
Update Rsconscript and add main.d
Josh Holtrop
2023-09-30 21:05:12 -04:00
c8658e5e00
Remove C sources
Josh Holtrop
2023-09-30 20:45:35 -04:00
deb16eeef7
Update to rscons-3.1.0
master
Josh Holtrop
2022-09-11 10:54:33 -04:00
49660f6835
Fix a couple new bison warnings
Josh Holtrop
2021-05-21 15:13:54 -04:00
3b90da8095
Update to rscons 2.2.0
Josh Holtrop
2021-05-21 15:11:42 -04:00
24b4b48555
move sources to src directory
Josh Holtrop
2019-09-12 20:31:38 -04:00
b5e4655f03
switch build system to rscons v2.0.0
Josh Holtrop
2019-09-12 20:25:48 -04:00
dfd1861d7b
change build system from SCons to Waf
waf
Josh Holtrop
2015-09-23 22:18:00 -04:00
b4d5de0910
squelch compiler warnings about not using bytes_read/bytes_written
Josh Holtrop
2015-09-23 22:21:57 -04:00
df03a38be0
add a Rakefile to build with rscons
Josh Holtrop
2014-03-18 21:59:03 -04:00
cdfcbc7bb7
ignore PNG files also
Josh Holtrop
2011-04-08 13:51:34 -04:00
f63505f35b
add options to scenes/dw.fart
Josh Holtrop
2011-04-06 14:10:20 -04:00
9b8f3290ad
switch build system to SCons
Josh Holtrop
2011-02-10 11:47:49 -05:00
c218c8956f
added dumpNodeTree() for debugging
Josh Holtrop
2011-02-09 23:53:10 -05:00
6715b06b44
fixed nasty parser bug: assign to $$ in empty case
Josh Holtrop
2011-02-09 23:51:17 -05:00
9b28b3ccac
add == and != operator to refptr template
Josh Holtrop
2011-02-09 16:58:15 -05:00
ab63af563f
ignore all .bmp files
Josh Holtrop
2011-02-08 17:53:47 -05:00
1a3ae115be
fix strange bug with a const reference to a Vector
Josh Holtrop
2011-02-08 17:31:47 -05:00
d933a61e9b
added .gitignore
Josh Holtrop
2011-02-08 17:14:14 -05:00
396400c18c
fix strange unfinished coding bug
Josh Holtrop
2011-02-08 17:13:16 -05:00
6caa9c9120
moved todo to wiki
Josh Holtrop
2010-10-15 18:43:26 +00:00
5b6a64cb5f
added texture cleanup to Scene destructor
Josh Holtrop
2010-10-14 14:19:06 +00:00
b4717b7cbc
added Scene::loadTexture(), filename->image map
Josh Holtrop
2010-10-13 21:48:23 +00:00
7472d6c53c
added TEXTURE token, rule, and node type
Josh Holtrop
2010-10-13 20:40:44 +00:00
48e2900e1f
added STRING token type to parser/lexer, removed unused DQUOTE/SQUOTE tokens
Josh Holtrop
2010-10-13 20:36:56 +00:00
b7e2aa1bae
added freeimage library (de)initialization
Josh Holtrop
2010-10-13 20:30:09 +00:00
dca387b78f
updated .todo
Josh Holtrop
2010-10-12 17:28:34 +00:00
49b8afa717
updated for-test.fart
Josh Holtrop
2010-10-12 17:24:09 +00:00
1d5d043928
reworked Scene::traceRayRecurse() to handle backfaces properly for refraction
Josh Holtrop
2010-10-12 16:39:29 +00:00
b24aea4dba
minor Vector::refract() sign changes
Josh Holtrop
2010-10-12 15:50:00 +00:00
22f4a79671
added refraction computations to Scene::traceRay()
Josh Holtrop
2010-10-11 16:14:13 +00:00
931cde802e
moved Material constructor into Material.h, removed Material.cc
Josh Holtrop
2010-10-11 15:56:39 +00:00
e39dbf9279
added refraction parameters to materials
Josh Holtrop
2010-10-11 15:38:10 +00:00
3594dace7f
added "refraction" to parser, added RefractionNode node type
Josh Holtrop
2010-10-11 15:36:02 +00:00
ed58d2ec7a
added Vector::refract()
Josh Holtrop
2010-10-11 15:26:41 +00:00
1eee61002e
reworked Vector::reflect() to reflect an INCOMING ray
Josh Holtrop
2010-10-11 15:21:50 +00:00
15e4aa1dc0
allow parenthesizing boolean expressions as well as normal expressions
Josh Holtrop
2010-10-08 19:26:47 +00:00
4d397e0d49
added scenes/simple.fart
Josh Holtrop
2010-10-08 15:49:33 +00:00
eb7de55ea9
added while() loop... really just creates a ForNode with empty first and third part
Josh Holtrop
2010-10-08 15:09:31 +00:00
4e3ce00056
reworked expressions to implement precedence properly
Josh Holtrop
2010-10-08 01:59:30 +00:00
c77697c39d
updated dw-circle.fart
Josh Holtrop
2010-10-07 21:26:49 +00:00
75638b1b74
added scenes/dw-circle.fart
Josh Holtrop
2010-10-07 21:07:08 +00:00
8e80851423
updated .todo
Josh Holtrop
2010-10-07 21:06:56 +00:00
45a28525a0
added ^, &&, and || operators
Josh Holtrop
2010-10-07 21:05:30 +00:00
78705024e8
changed assignment operator from := to = and equals operator from = to ==
Josh Holtrop
2010-10-07 20:28:21 +00:00
654be9058d
added function calls to scene files
Josh Holtrop
2010-10-07 18:53:42 +00:00
eca2335fb2
if-test.fart update
Josh Holtrop
2010-10-07 17:32:58 +00:00
9fbdb9d84c
added test scenes for "for" and "if" statements
Josh Holtrop
2010-10-07 17:10:59 +00:00
240384569d
added ElseNode, handling elsif and else correctly
Josh Holtrop
2010-10-07 17:10:27 +00:00
8aaeb8d0fa
merged in branch flat-parser
Josh Holtrop
2010-10-07 16:55:43 +00:00
208d0a99ac
handling if elses
Josh Holtrop
2010-10-07 16:37:16 +00:00
e3087bb26c
making parser flat
Josh Holtrop
2010-10-07 16:37:02 +00:00
4410dcfd8b
cut flat-parser branch
Josh Holtrop
2010-10-07 16:16:46 +00:00
9712dab456
added "if" parser rule and IfNode class, "if_more" still in progress... changed ForNode::evaluate() and IfNode::evaluate() to use Node::evaluateChildren()
Josh Holtrop
2010-10-07 15:23:15 +00:00
fc33024b28
added MOD operator, converting operands to ints
Josh Holtrop
2010-10-07 14:43:56 +00:00
c4d8327665
formatting... for()s in for()s still causing problems
Josh Holtrop
2010-10-06 21:32:39 +00:00
ef769f7b4c
fixed ForNode::evaluate() recursing properly
Josh Holtrop
2010-10-06 21:18:05 +00:00
84e4569383
added new control keywords and identifiers to vim syntax file
Josh Holtrop
2010-10-06 21:10:16 +00:00
4f6af31fc0
bool expressions were being evaluated backwards... whoops
Josh Holtrop
2010-10-06 21:05:41 +00:00
5dbe3c6d8f
restored missing GREATER token (whoops), added column tracking to lexer
Josh Holtrop
2010-10-06 20:54:36 +00:00
c4fc36bb5c
added <= and >= operators
Josh Holtrop
2010-10-06 20:36:48 +00:00
700e47901b
merged branch scene-file-parsing into trunk
Josh Holtrop
2010-10-06 20:21:48 +00:00
d84fc2a96f
actually saving off the parsed shapes helps a lot
Josh Holtrop
2010-10-06 20:17:40 +00:00
1dc370c99f
fixed NumberNode and VectorNode "direct" bugs
Josh Holtrop
2010-10-06 19:27:54 +00:00
4d488b9e55
moved Node::evaluateChildren() to nodes.cc, added EvaluatePropagateNode support
Josh Holtrop
2010-10-06 17:54:54 +00:00
18886ef767
reworked ForNode evaluation()
Josh Holtrop
2010-10-06 17:42:37 +00:00
f36c1fa60f
added evaluate() method for all non-scripting nodes, made evaluateChildren() recursive
Josh Holtrop
2010-10-06 16:32:27 +00:00
793c7afb2d
removed DEC_NUMBER parsing token and IntegerNode node, replaced with NumberNode
Josh Holtrop
2010-10-06 15:48:33 +00:00
04022756e5
added NodeRef typedef
Josh Holtrop
2010-10-06 15:41:47 +00:00
b851c3be98
added Node::evaluate(parent)
Josh Holtrop
2010-10-06 15:38:25 +00:00
74f27c2076
removed processNode() and processChildren()
Josh Holtrop
2010-10-04 21:47:07 +00:00
e23b762a01
evaluating stmt_expression's in processGeneralItems()
Josh Holtrop
2010-10-04 21:27:47 +00:00
01a713af98
added Scene::processForNode() to process for nodes
Josh Holtrop
2010-10-04 21:26:12 +00:00
71e40b0277
added stmt_expression rule to parser, added to general_items
Josh Holtrop
2010-10-04 20:54:47 +00:00
91ea5a20e0
added ShapeRef typedef, added Scene::processGeneralItems()
Josh Holtrop
2010-10-04 20:47:39 +00:00
7014605fe3
added parser_scope global, added local assignments and local declarations to parser, reworked Scope class to use get(), putLocal(), and putGlobal() methods
Josh Holtrop
2010-10-04 19:54:43 +00:00
e2569c0a54
added util/Scope.h
Josh Holtrop
2010-10-01 15:49:40 +00:00
cd2f565df3
introduced ScaleScalarNode() node type to avoid evaluating expression multiple times
Josh Holtrop
2010-10-01 15:01:51 +00:00
741ca57e11
added assignment expressions, for loop nodes, boolean expressions, ForNode class, BoolExpressionNode class, AssignmentNode class
Josh Holtrop
2010-09-29 21:33:22 +00:00
442a7bdeda
added VARREF in lexer matching $[a-zA-Z_][a-zA-Z_0-9]*, added VarRefNode class
Josh Holtrop
2010-09-29 20:59:26 +00:00
35d6e536ae
removed optional negative sign preceding number literals in lexer since it was interfering with minus operator with no whitespace
Josh Holtrop
2010-09-29 20:55:02 +00:00
26d8d1a081
fixed NumberNode storing the expression as a child node
Josh Holtrop
2010-09-29 20:33:11 +00:00
f54446bd6a
fixed Ngon using an expression for n_sides and implementing getInteger()
Josh Holtrop
2010-09-29 20:16:33 +00:00
bd60471dfa
fixed VectorNode storing expression nodes as children instead of class members; fixed JitterNode not implementing getInteger()
Josh Holtrop
2010-09-29 20:09:36 +00:00
83fd083af8
removed annoying consts
Josh Holtrop
2010-09-29 19:58:21 +00:00
1afa2b6510
fixed parser/nodes.h node classes not specifying "const" when overriding methods
Josh Holtrop
2010-09-29 19:47:38 +00:00
2f825f29f9
moved computation of numbers and vectors from parser.yy to Scene-load.cc
Josh Holtrop
2010-09-29 19:30:14 +00:00
36d59ba575
changed elapsed time output to "Render time"
Josh Holtrop
2010-09-29 15:32:59 +00:00
106c009731
messing with scenes/dw.fart more
Josh Holtrop
2010-09-28 20:48:19 +00:00
20017370f0
added expression production to grammar, changed grammar refs from number to expression, added BinOpNode class, currently segfaulting :(
Josh Holtrop
2010-09-28 20:39:42 +00:00