rweyrauch / PBrtJ

Port of PBRT v3 to Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash with simple scene

jimbok8 opened this issue · comments

I have got PBrtJ to compile, but cannot get it to run.
I have found and tried this simple scene, see below, but it fails.

LookAt 3 4 1.5 # eye
.5 .5 0 # look at point
0 0 1 # up vector
Camera "perspective" "float fov" 45

Sampler "halton" "integer pixelsamples" 128
Integrator "path"
Film "image" "string filename" "simple.png"
"integer xresolution" [400] "integer yresolution" [400]

WorldBegin

LightSource "infinite" "rgb L" [.4 .45 .5]

LightSource "distant" "point from" [ -30 40 100 ]
"blackbody L" [3000 1.5]

AttributeBegin
Material "glass"
Shape "sphere" "float radius" 1
AttributeEnd

AttributeBegin
Texture "checks" "spectrum" "checkerboard"
"float uscale" [8] "float vscale" [8]
"rgb tex1" [.1 .1 .1] "rgb tex2" [.8 .8 .8]
Material "matte" "texture Kd" "checks"
Translate 0 0 -1
Shape "trianglemesh"
"integer indices" [0 1 2 0 2 3]
"point P" [ -20 -20 0 20 -20 0 20 20 0 -20 20 0 ]
"float st" [ 0 0 1 0 1 1 0 1 ]
AttributeEnd

WorldEnd

This from https://www.pbrt.org/fileformat-v3.html

Can you get this file to load and run?
Do you think that there is anything wrong with my compilation?