in reply to Re: Re: 3D Point Plotting
in thread 3D Point Plotting
X=(R-0.5)/(B+1)*IMAGE_WIDTH + IMAGE_WIDTH/2 Y=(G-0.5)/(B+1)*IMAGE_HEIGHT + IMAGE_HEIGHT/2You can change the 1 to 'dolly' the camera back and forth. Just swap the variables to view along a different color axis.
R'= R*cos(theta)+G*sin(theta) G'=-R*sin(theta)+G*cos(theta) B'= Bto rotate about the B axis
R'= R G'= G*cos(theta)+B*sin(theta) B'=-G*sin(theta)+B*cos(theta)to rotate about the R axis, and
R'=R*cos(theta)-B*sin(theta) G'=G B'=R*sin(theta)+B*cos(theta)to rotate about the G axis
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: 3D Point Plotting
by ayanami-chan (Initiate) on May 31, 2002 at 02:16 UTC |