BASIC

Author Topic: RPi 3D X_ROTATION crashes  (Read 1983 times)

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
RPi 3D X_ROTATION crashes
« on: 2015-Dec-11 »
Although I've attempted unsuccessfully many times to, I decided to try out 3D carefully on the Raspberry Pi 2 again and gladly discovered that it works very well this time. The problems that I encountered was X_ROTATION only caused the crash (segmentation fault or sometimes bus error). Also, SIN and COS are not working so I easily replaced that with QSIN/QCOS, to rotate the camera around the object. Ambient light work 95% but some flickering from scene rotation but spotlights don't work. Test file attached.

 ;) 8)


Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: RPi 3D X_ROTATION crashes
« Reply #1 on: 2015-Dec-13 »
Just discovered there is no way to convert a string to float = -nan (RPi).  :sick: :noggin:

Offline bigsofty

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 2612
    • View Profile
Re: RPi 3D X_ROTATION crashes
« Reply #2 on: 2015-Dec-13 »
Sound like a math.h problem or an endian mix-up. This is only guesswork though as I don't have a Pi at the moment to mess around with.  :sick:
Cheers,

Ian.

“It is practically impossible to teach good programming style to students that have had prior exposure to BASIC.  As potential programmers, they are mentally mutilated beyond hope of regeneration.”
(E. W. Dijkstra)