Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions InputSceneFiles/ex1.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@

material sky_material( diffuse(uniform(<0, 0, 0>)), uniform(<1, 1, 1>) )
material ground_material( diffuse(checkered(<0.3, 0.5, 0.1>, <0.1, 0.2, 0.5>, 4)), uniform(<0, 0, 0>) )
material mirror_material( specular(uniform(<1.5, 0.2, 0.2>)), uniform(<0, 0, 0>) )
material ground_material( diffuse(checkered(<0.3, 0.5, 0.1>, <0.1, 0.1, 0.1>, 4)), uniform(<0, 0, 0>) )
material sphere_material( diffuse(image("../Media/Readme_imgs/pgen_rettGrande.pfm")), uniform(<0, 0, 0>) )

sphere (sky_material, translation([0, 0, 0.4]) * scaling([200, 200, 200]))
plane (ground_material, identity)
sphere (mirror_material, translation([0, 0, 1]))
sphere (sphere_material, translation([0, 1, 3]))

camera(perspective, rotation_y(17)*translation([-5, 0, 4]), 1.0, 1.0)
camera(perspective, translation([-2, 0, 1.5]), 1.33, 1.0)

pointlight([-30, 0, 20], <1, 1, 1>, 0)
Binary file modified Media/imgs_pfm/output.pfm
Binary file not shown.
Binary file modified Media/imgs_png/output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions PGENLib/Cameras.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ public Ray FireRay(float u, float v)
return rayToFire.Transform(this.Transf);
}
}

//public struct StereoscopicCamera : ICamera
//{
//}

//==============================================================================================================
//ImageTracer
Expand Down