Old 30th July 2003, 02:39   #1
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
Another way to make a SSC torus

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.
Attached Files
File Type: zip torus.zip (438 Bytes, 151 views)
anubis2003 is offline   Reply With Quote
Old 30th July 2003, 03:17   #2
Akuso
Member
 
Join Date: Jun 2003
Location: North Carolina
Posts: 83
Send a message via AIM to Akuso
no clue what you said but that looks really cool and I can appreciate the work involved
Akuso is offline   Reply With Quote
Old 30th July 2003, 04:00   #3
Kagnar
Member
 
Kagnar's Avatar
 
Join Date: Nov 2002
Location: Everywhere
Posts: 58
Good work Anubis. You make it sound so easy.....
Kagnar is offline   Reply With Quote
Old 30th July 2003, 04:06   #4
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
It really wasn't that difficult. I don't understand the way that jheriko did it.
anubis2003 is offline   Reply With Quote
Old 30th July 2003, 04:13   #5
Kagnar
Member
 
Kagnar's Avatar
 
Join Date: Nov 2002
Location: Everywhere
Posts: 58
I knew you were gonna say that.

Unfortunately, I'm a n00b, so you can understand my comments and appreciation.
Kagnar is offline   Reply With Quote
Old 30th July 2003, 06:01   #6
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
wow. that is pretty cheapass i think the wrapping wireframe works perfectly but to each his own...

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 30th July 2003, 08:02   #7
jheriko
Forum King
 
jheriko's Avatar
 
Join Date: Aug 2002
Location: a twist in the fabric of space
Posts: 2,150
Send a message via ICQ to jheriko
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.

-- Jheriko

'Everything around us can be represented and understood through numbers'
jheriko is offline   Reply With Quote
Old 30th July 2003, 08:54   #8
Jaak
Major Dude
 
Jaak's Avatar
 
Join Date: Jan 2003
Location: Estonia.
Posts: 851
Hah, really cool...

Phi = (1+sqrt(5))/2
Jaak is offline   Reply With Quote
Old 30th July 2003, 13:16   #9
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
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.
anubis2003 is offline   Reply With Quote
Old 30th July 2003, 17:14   #10
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,179
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?

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Old 30th July 2003, 18:56   #11
anubis2003
Forum King
 
anubis2003's Avatar
 
Join Date: Dec 2002
Location: middle of somewhere
Posts: 5,564
Send a message via AIM to anubis2003
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.
anubis2003 is offline   Reply With Quote
Old 1st August 2003, 09:22   #12
Tuggummi
Bin King
 
Tuggummi's Avatar
 
Join Date: Mar 2001
Location: Finland
Posts: 2,179
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 Anyway, carry on

Texer Resources

Im retarded... err i mean retired!
Probably both...
Tuggummi is offline   Reply With Quote
Old 1st August 2003, 12:23   #13
jheriko
Forum King
 
jheriko's Avatar
 
Join Date: Aug 2002
Location: a twist in the fabric of space
Posts: 2,150
Send a message via ICQ to jheriko
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.

-- Jheriko

'Everything around us can be represented and understood through numbers'
jheriko is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Visualizations > AVS > AVS Presets

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump