max6: glu in jit.gl.lua?

jochemn's icon

Dear Maxers,

Just installed Max 6 and was wondering if I still can use the utility library routines. In Max 5 I always used glu.Perspective and glu.LookAt for example, but now it seems they don't work. I could use gl.Frustum instead, but it's not so intuitive as perspective. Should I change my habit or did I miss something obvious? Regards, Jochem

Wesley Smith's icon

It's there. I need to update the gl.lua documentation to explain how to get at it. It's now setup as a sub-module of the opengl module. Here's the code to get it:

local gl = require("opengl")
local glu = require("opengl.glu")
print("glu", glu)
print("glu.LookAt", glu.LookAt)

jochemn's icon

ah, wonderful!
many thanks for the fast reply.