0 Members and 1 Guest are viewing this topic.
I have no usb cable anymore, and I'm trying to do lines; just before vertical rotation.If someone can say me how to convert xyz point + xy rotation to a xy point ... It'll be great better for the project.
If someone can say me how to convert xyz point + xy rotation to a xy point ... It'll be great better for the project.
global.d3dto2d_xfrom = argument0;global.d3dto2d_yfrom = argument1;global.d3dto2d_zfrom = argument2;global.d3dto2d_xto = argument3-global.d3dto2d_xfrom;global.d3dto2d_yto = argument4-global.d3dto2d_yfrom;global.d3dto2d_zto = argument5-global.d3dto2d_zfrom;d = sqrt(global.d3dto2d_xto*global.d3dto2d_xto+global.d3dto2d_yto*global.d3dto2d_yto+global.d3dto2d_zto*global.d3dto2d_zto);global.d3dto2d_xto /= d;global.d3dto2d_yto /= d;global.d3dto2d_zto /= d;global.d3dto2d_xup = argument6;global.d3dto2d_yup = argument7;global.d3dto2d_zup = argument8;d = global.d3dto2d_xup*global.d3dto2d_xto+global.d3dto2d_yup*global.d3dto2d_yto+global.d3dto2d_zup*global.d3dto2d_zto;global.d3dto2d_xup -= d*global.d3dto2d_xto;global.d3dto2d_yup -= d*global.d3dto2d_yto;global.d3dto2d_zup -= d*global.d3dto2d_zto;d = tan(degtorad(argument9)/2)*sqrt(global.d3dto2d_xup*global.d3dto2d_xup+global.d3dto2d_yup*global.d3dto2d_yup+global.d3dto2d_zup*global.d3dto2d_zup);global.d3dto2d_xup /= d;global.d3dto2d_yup /= d;global.d3dto2d_zup /= d;global.d3dto2d_xcross = (global.d3dto2d_yup*global.d3dto2d_zto-global.d3dto2d_zup*global.d3dto2d_yto)/argument10;global.d3dto2d_ycross = (global.d3dto2d_zup*global.d3dto2d_xto-global.d3dto2d_xup*global.d3dto2d_zto)/argument10;global.d3dto2d_zcross = (global.d3dto2d_xup*global.d3dto2d_yto-global.d3dto2d_yup*global.d3dto2d_xto)/argument10;global.d3dto2d_znear = argument11;global.d3dto2d_zfar = argument12;
var xx,yy,zz,d;xx = argument0-global.d3dto2d_xfrom;yy = argument1-global.d3dto2d_yfrom;zz = argument2-global.d3dto2d_zfrom;d= xx*global.d3dto2d_xto+yy*global.d3dto2d_yto+zz*global.d3dto2d_zto;if (d<global.d3dto2d_znear or d>global.d3dto2d_zfar){ return 0}else{global.xx = (xx*global.d3dto2d_xcross+yy*global.d3dto2d_ycross+zz*global.d3dto2d_zcross)/d;global.yy = (xx*global.d3dto2d_xup+yy*global.d3dto2d_yup+zz*global.d3dto2d_zup)/d;}return 1;
I've just tested it on my calc, AND NOW MAH SCREEN DISPLAYS UPSIDE-DOWN (and it also turned the contrast all the way up)