NXT Simple 3D Graphics Library
 Software and Programming Related   Started by Rick Warner   2017-11-04 12:30:33 -04:00   Comments: 1    Viewed: 60

  1. Rick Warner
    Rick Warner Member
    Hello everyone,

    Earlier this week I was able to get some of the NXT 3D grahics capabilites working.
    It will run on the lego provided firmware.
    Please also note there is no wait states, this programs really taxes the NXT.
    Enjoy,
    Rick




    ; glbox.0036.nbc
    ; Rick Warner Novemer 4 2017
    dseg segment
    r1          sword
    r2          sword
    r3          long
    r21         word
    dseg ends

    thread main
    ;SetSleepTimeout(0)
    so:
      set r1,1
      set r2,2
      set r21,3
      set r3,0
      glInit()
      glBox(1,14,46,20,r21)
      glSetAngleX(45)

    loop1:
      glAddToAngleY(1)
      glAddToAngleX(1)
      glAddToAngleZ(1)
      glBeginRender()
      glSet(2,4)
      glCallObject(r21)
      glObjectAction(r21,25,8)
      glFinishRender()
      add r3,r3,1
      brcmp LTEQ,loop1,r3,65535
      jmp so
     endt

    Rick Warner, 2017-11-04 12:30:33 -04:00
  2. (You must log in or sign up to post here)

Log in | Sign up
Tems & Conditions!
Help!