[jitter] Evaluators/mapgrids in LUA?
liubo
liubo at music.columbia.edu
Sat Nov 17 08:40:49 MST 2007
- Previous message: [jitter] Re: How to do a grid of videos?
- Next message: [jitter] Re: Capturing Video From a USB camera - Please Help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
does jit.gl.lua support 1- or 2-d evaluators or mapgrids for building splines and nurbs from scratch. if so what is the translation from redbook opengl?
for example i tried this redbook example, but it did not work
ctrlpoints = {
{ -4.0, -4.0, 0.0}, { -2.0, 4.0, 0.0},
{2.0, -4.0, 0.0}, {4.0, 4.0, 0.0}}
gl.ClearColor(0.0, 0.0, 0.0, 1.0)
gl.Map1("MAP1_VERTEX_3", 0.0, 1.0, 3, 4,ctrlpoints)
gl.Enable("MAP1_VERTEX_3")
gl.ShadeModel("FLAT")
gl.Color(1.0, 1.0, 1.0)
gl.Begin("LINE_STRIP")
for i = 0,30 do
gl.EvalCoord(i/30.0)
end
gl.End()
thanks
- Previous message: [jitter] Re: How to do a grid of videos?
- Next message: [jitter] Re: Capturing Video From a USB camera - Please Help
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
