PDA

View Full Version : 3D rotation

Fish-face
3rd February 2003, 15:33
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!

dirkdeftly
3rd February 2003, 20:25
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...

Fish-face
4th February 2003, 07:14
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!

anubis2003
4th February 2003, 11:24
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).

Fish-face
4th February 2003, 15:11
'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!

dirkdeftly
4th February 2003, 19:17
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....

Jaheckelsafar
5th February 2003, 07:29
d = distace from 0,0

Fish-face
5th February 2003, 14:57
thanks Jaheck
And don't worry Atero, I generally pick code apart before using it in anyway! (My dad conditioned me well...)

Raz
5th February 2003, 16:57
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

Fish-face
6th February 2003, 06:32
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?

anubis2003
6th February 2003, 06:41
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

Fish-face
6th February 2003, 14:42
lol, i'm new here, but not to winamp.
basically, I meant I might not know conventions or whatever... but I ramble... *rambles pointlessly*

Rovastar
6th February 2003, 16:44
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

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. :)

Fish-face
6th February 2003, 18:46
okey dokey, then!

dirkdeftly
6th February 2003, 21:45
fish-face, read the forum rules. signatures are restricted to three lines only.

Fish-face
7th February 2003, 14:41
This is what I mean when I say "i'm new here", hope this is better for ya!

WHCode RED
14th February 2003, 16:19
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:

dirkdeftly
14th February 2003, 17:53
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.

UnConeD
14th February 2003, 18:59
The verb is written as "to affect". That should clear up some confusion.

Zevensoft
14th February 2003, 23:55
LOL Atero just wanted to put something in there to rival the old children's book authors.