XML Feeds

.

[javascript-dev] gl orientation and "moving forward"

jLubow JLubow at alumnae.mills.edu
Tue Jan 8 23:38:55 MST 2008


hello,

i'm sure this is obvious... apologies if so.

i'm testing something out for a project (after a while from jsui) and just trying to 
rotate + 'move forward', 
but can't figure out what's going wrong...  

do i have to use jitter-js and import the jitter-utils?


so far, i've got:
_______________________________________
_______________________________________

sketch.default3d();

var origin = [0,0,0];
var length = 0.5;

with(sketch){
	glclearcolor(0,0,0);
	glclear();
	glcolor(1,1,1);

	moveto(origin);       
	line(0,length,0);     //draw a line up w/ reg orient
	moveto(0,length,0);   //move to line's end loc
	glrotate(90,0,0,1);   //rotate 90 cw
	line(0,length,0);     //draw another line w/ new orient???
}
refresh();

_______________________________________
_______________________________________

thanks so much,
jl


More information about the javascript-dev mailing list