Here's the scene definition file (Lua script):
-- Test script-- Set camera (pos, lookat, up, fov (Degrees))set_camera({0, 0, 0}, {0, 0, 1}, {0, 1, 0}, 60);-- Set output data (filename, width, height)set_output_file("out.bmp", 320, 200)-- Init materials (material name, texture filename, diffuse)init_material("matTest", "test.bmp", {1, 1, 0});-- Create a sphere (pos, radius, material)create_sphere({0, 0, 15}, 5, "matTest");
And here's the first ever image produced by it:
Nothing fancy, but it shows that there were intersections happening.
Then, adding a hard coded directional light with a normal of (-1, 0, 0):
Now I just need to do, uhh, well, everything.
I was going to refactor my raytracer to use Lua to define things as well.. well, at some point anyways [grin]