mikm
21st September 2002 00:23 UTC
A couple questions
1. What is the easiest way to create a solid superscope
2. What is the easiest way to write code to do 3d movement in dynamic movement. I want to be able to "zoom" with adding 1 to z, and pan by adjusting x and y. The final result can be in either d or x/y coordinates.
Karnov
21st September 2002 01:20 UTC
Well, I can help you with your first question
the very best example ive seen on how to do this came from someone asking about how to make a good square. (see attachment)
(I AM REALLY SORRY, BUT FOR THE LIFE OF ME, I CANNOT REMEMBER WHO MADE THIS(it was posted recently)
see, they just made a ziggy(?) line and set it the "n" var to 800 so you couldnt tell
try setting it to 30
also, the line width func on the misc->set render mode is very helpful
im sorry i cant help you on your second question :(
(remember, just waste your life with superscopes and you might (i havent yet)understand them)
Jaheckelsafar
21st September 2002 02:07 UTC
Zooming isn't that hard. Just multply x and y by the inverse of your zoom factor.
eg.
frame:
zoom = 1.5;
zf = 1/zoom;
pixel:
x=x*zf;
y=y*zf;
To move around, just do it the way you would normally. (x=x+whatever)
I made a preset once that did something like that. Feel free to dissect and stuff.
jheriko
21st September 2002 02:10 UTC
Re: A couple questions
Originally posted by Michaelthecat
2. What is the easiest way to write code to do 3d movement in dynamic movement. I want to be able to "zoom" with adding 1 to z, and pan by adjusting x and y. The final result can be in either d or x/y coordinates.
That one is actually quite simple since you don't have to do any rotaions (so it will be pretty fast too)
just put something like this in the last box
x1=x;
y1=y;
z1=z;
x=x1/(k+s*z1);
y=y1/(k+s*z1);
where k and s are constants you choose to alter the strength and scale of the perspective calculation. that is the based of doing a 3d projection onto a 2d plane.