
And here is the code:
size = 50
moveto 0, 0, 0
yaw 90
modifier = 1.1
repeat 3
move size
yaw 90
end
repeat 4
move size/10
yaw 90
size = size/modifier
move size
size = size/modifier
yaw -90
move size
yaw -90
size = size * modifier
move size
yaw -90
move size/10
yaw -90
modifier = modifier + 0.1
repeat 2
size = size/modifier
move size
yaw 90
end
size = size * modifier
move size
yaw 90
end
fracture = 0.1
nsides = 30
tube
I ran into a few significant snags in the project, the largest of which was probably getting the two different magnets to move individually. After figuring that out the next problem was actually caused by a simple error with the unbinding of the shader, after solving that and a few other smaller problems the assignment came together fairly quickly.
]]>
I had a few minor issues setting the ppm file up, however the largest problem that I encountered was visual studio. For some reason it was not recognizing the string datatype or any math functions. After trying to fix these problems in VS someone suggested I try compiling it in putty. It compiled and ran without any errors.
]]>
]]>