Hi,
I've made a button which, when pressed, rotates the panorama 360 degrees around. But there is a issue with it. The screen goes blanc when I press it and I don't know why.
Code
oninterrupt(stopall());
trace(view.hlookat);
inc(view.hlookat, -360);
trace(view.hlookat);
lookto(view.hlookat, 0, 90, smooth(80,20,20));
The traces show the correct numbers when i press the button (0 and minus 360), but it doesn't get parsed well in the lookto I think.
First I thought It was because the view.lookat isn't in the range of -360 to 360 that lookto requires. but even subtracting 10 degrees results in the same. (I got the latest Beta).
then I tried a differentapproach
Results in the same, blank screen, compass dissapears.