Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   AVS Presets (http://forums.winamp.com/forumdisplay.php?f=137)
-   -   Another way to make a SSC torus (http://forums.winamp.com/showthread.php?t=144070)

anubis2003 30th July 2003 02:39

Another way to make a SSC torus
 
1 Attachment(s)
Got bored at work today and penciled down a way to make a torus. It's slightly faster than Jheriko's Space Torus(I deleted his colorcoding and made n the same), and is kinda neat.

What I did was use 2D polar to make a "side view" of the torus on the x-y plane, and then make z oscillate back and forth. Sure, that's a cheap way of doing it, but it works.:p

Akuso 30th July 2003 03:17

no clue what you said but that looks really cool and I can appreciate the work involved

Kagnar 30th July 2003 04:00

Good work Anubis. You make it sound so easy.....:D

anubis2003 30th July 2003 04:06

It really wasn't that difficult. I don't understand the way that jheriko did it.

Kagnar 30th July 2003 04:13

I knew you were gonna say that. :D

Unfortunately, I'm a n00b, so you can understand my comments and appreciation. :)

dirkdeftly 30th July 2003 06:01

wow. that is pretty cheapass :p ;) i think the wrapping wireframe works perfectly but to each his own...

jheriko 30th July 2003 08:02

Very nice. In case you are interested the way in which mine works is pretty simple, I just swept a circle around a point. If you look closely at the code you should be able to see the 2x2 rotation matrix at work in there, along with the shifted parametric equation of a circle. The circle uses one parameter and the rotation uses the other.

Your method is basically the reverse of mine, you took a ring in xy then alter the distance from the centre and the z values to place circles around it.

Jaak 30th July 2003 08:54

Hah, really cool...

anubis2003 30th July 2003 13:16

Yeah, I got that much from your code jheriko, I was just having difficulties figuring out how to do the code to rotate the circle right - I couldn't get myself to think in that way.

Tuggummi 30th July 2003 17:14

Lol, i think you make it sound really fucking complicated, but when i look at the code i see that it's really incredible simple... You guys just love to talk technical, don't you? :p

anubis2003 30th July 2003 18:56

I am bad at explaining these things sometimes - technical is the only way I can get my point across. Maybe I should just post the code and let it do the talking.:p

Tuggummi 1st August 2003 09:22

Maybe so that technical way is the one way that everybody understands it, but for me who just type to code and have learned these things by experimenting have no idea what you are talking about when you talk your tech talk :D Anyway, carry on ;)

jheriko 1st August 2003 12:23

The 'technical' way is simply the logical process that leads to the final code, sometimes something really complex will lead to a fairly simple looking result that hides the underlying complexity of the methods used to get there.


All times are GMT. The time now is 21:38.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.