Skip to content

Commit 9a1f2d3

Browse files
authored
Create README.md
1 parent 5715c38 commit 9a1f2d3

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

OpenGL_Fractal_Forest/README.md

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# OpenGL: Fractal Forest
2+
### written in C++ using the OpenGL libraries
3+
4+
- To get the program to read a custom file the make sure that the file has one of
5+
these formats:
6+
7+
- Code does not work if the file has an extra empty line
8+
9+
Len:4
10+
Deg: 22.5
11+
Iter:3
12+
maxDist: 225
13+
maxRad: 0.9
14+
F
15+
F->FF-[-F+F+F]+[+F-F-F]
16+
17+
18+
Stochastic
19+
len: 1
20+
rot: 30.0
21+
iter: 5
22+
F
23+
F(0.33): F[+F]F[-F]F
24+
F(0.33): F[+F]F
25+
F(0.34): F[-F]F
26+
27+
len: 1
28+
rot: 25.7
29+
iter: 5
30+
maxDist: 309
31+
maxRad: 1.2
32+
F
33+
F->F[+F]F[-F]F
34+
35+
- The stochastic tree must have the stochastic string and nothing else on the first line
36+
37+
- There is currently no limit to the number of rules one can add
38+
39+
- For the non stochastic file the rule -> must be found to record the rule
40+
41+
- The stochastic file needs to have the F(): and in parenthesis the percentage values , the value must be out of a toal of 1.00 (e.g. 0.25, 0.25, 0.25, 0.25)
42+
43+
- To compile the code use the correct directory and have all files in the same directory as the .cpp file
44+
45+
- g++ FractalForest.cpp -lGLU -lglut -lGL
46+
47+
- After compilation type in the terminal "./a.out" without the quotation marks
48+
49+
- To close the program press the escape key
50+
51+
- The program does have a moving camera but it will move very slow if openGL is running at a low frame rate
52+

0 commit comments

Comments
 (0)