This code causes an error "3D Memory Error", some kind of memory access violation, when the command "Set Shadow Shading On" is used with a model file loaded with "load object".
This function seems to work fine with a model created with one of the "make" commands.
The bug occurred sometime between U72 (works fine) and U74 (crashes).
The model file is attached.
sync on
backdrop off
` Create floor
make object plane 3,300,300
rotate object 3,90,0,0
position object 3,0,-50,0
` Setup camera
autocam off
position camera 0,0,-200
point camera 0,0,0
` Setup lighting
set point light 0,0,300,0
`load object "models/asteroid.x",2 ` <-- Crashes with loaded model
make object sphere 2,35,12,12
set object specular 2,0
scale object 2,5,5,5
scale object 2,150,150,150
` Shadow effect
set shadow shading on 2,-1,1000,1
do
sync
loop