Archive: 3D rotation


3rd February 2003 16:33 UTC

3D rotation
Hi, I'm new here, so I hope this is the correct forum! :D

anyways, after working out my equation for converting 3D coords into 2D:

x=x1*z1/dst
y=y1*z1/dst

I am looking to implement rotation. I am working with superscopes, and have worked with winamp for quite a while, so most of the jargon you use i should be familiar with!

I have d/led el-vis's 3D t'ing and looked at his .txt file to go with it. I see the xs, xc etc etc and am wondering what it all means!

basically, what is this, along with the equations leading up to x,y,z4 and why are they there?
(It's all very well making scopes, but i like to know how it all works, and then make one myself!)

thankyou in advance, I hope I make sense!


3rd February 2003 21:25 UTC

first of all, don't use the el-vis method of 3D. it's slow and not very dynamic. download avs primer :down: which has an explanation of 3D - a rough and non-precise one, but it works. i'll be updating it soon, and it'll have a better version...


4th February 2003 08:14 UTC

hrrrm...
Thanks! The AVS primer set t'ings out much better, along with other explanations
BUT...
It doesn't explain what:

x2=x1*sin(zt)-y1*cos(zt); y2=x1*cos(zt)+y1*sin(zt);
x3=x2*sin(yt)-z1*cos(yt); z2=x2*cos(yt)+z1*sin(yt);
y3=y2*sin(xt)-z2*cos(xt); z3=y2*cos(xt)+z2*sin(xt);

means, and this is what I want to know. also, exactly what x,y,zt mean would be useful.
Thanks again!


4th February 2003 12:24 UTC

xt, yt, and zt are variables used to rotate the 3-D object. Those three lines are an implementation of a rotation matrix, but since AVS doesn't support matrices, the crossproduct has to be spelled out. Basically, you can modify xt, yt, and zt to make it move. A complete explanation of 3-D will be coming out once Atero updates his primer(which I believe will be soon).


4th February 2003 16:11 UTC

'Kay, i shall wait till then, then!
In the mean time, I will work on non-3D presets, and may well release a pack of them for reviewing.
Oh, and one question: what exactly do d and r mean in DMs?
r seems to be rotation, but d...? :D
anywho, thanks for help so far!


4th February 2003 20:17 UTC

And as I said in the primer...don't just use my code because it's there, use it knowing how it works and why. Again, I'll be updating soon, with a better explanation of all that....


5th February 2003 08:29 UTC

d = distace from 0,0


5th February 2003 15:57 UTC

thanks Jaheck
And don't worry Atero, I generally pick code apart before using it in anyway! (My dad conditioned me well...)


5th February 2003 17:57 UTC

finally, a noob that dosent irritate the hell out of everyone, n1. GL with the avsing, took me ages to figure out 3d rotation. Pretty worthless post really but im exceptionally bored


6th February 2003 07:32 UTC

lol, so's this but hey!
I wouldn't consider myself a n00b, as I have worked on AVS for some time, but there we go!

p.s.
The link for PiMP seems to be broken, should I e-mail someone, and is there another place for me to get it?


6th February 2003 07:41 UTC

Originally posted by Fish-face
Hi, I'm new here, so I hope this is the correct forum!
Originally posted by Fish-face
I wouldn't consider myself a n00b
So which is it?:p

6th February 2003 15:42 UTC

lol, i'm new here, but not to winamp.
basically, I meant I might not know conventions or whatever... but I ramble... *rambles pointlessly*


6th February 2003 17:44 UTC

Originally posted by Fish-face

p.s.
The link for PiMP seems to be broken, should I e-mail someone, and is there another place for me to get it?
I cannot beleive people still use Pimp :) NSIS was the follow up to Pimp and now NSIS is open source and all the info you need is here

http://forums.winamp.com/showthread....hreadid=102650

I am pretty sure that Nullsofts Pimp has been official discontinued now and has been for some time.

I honestly want to reject AVS preset packs that have the old Pimp installer. :)

6th February 2003 19:46 UTC

okey dokey, then!


6th February 2003 22:45 UTC

fish-face, read the forum rules. signatures are restricted to three lines only.


7th February 2003 15:41 UTC

This is what I mean when I say "i'm new here", hope this is better for ya!


14th February 2003 17:19 UTC

From AVS Primer:
This particular preet shows the ability to use one effect, and then
effect the effected effect without effecting the effect effecting the
effect.
It took me 6 times to understand that, although I still don't understand it! :igor:

BTW... You spelt preset wrong.;) :weird:

14th February 2003 18:53 UTC

that's from the effect list preset, isn't it? i can't even figure that out :igor: :p
I'M BUSY UPDATING IT. keep your pants on.


14th February 2003 19:59 UTC

The verb is written as "to affect". That should clear up some confusion.


15th February 2003 00:55 UTC

LOL Atero just wanted to put something in there to rival the old children's book authors.