|
|
|
|
#1 |
|
Forum King
|
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.
|
|
|
|
|
|
#2 |
|
Member
|
no clue what you said but that looks really cool and I can appreciate the work involved
|
|
|
|
|
|
#3 |
|
Member
Join Date: Nov 2002
Location: Everywhere
Posts: 58
|
Good work Anubis. You make it sound so easy.....
|
|
|
|
|
|
#4 |
|
Forum King
|
It really wasn't that difficult. I don't understand the way that jheriko did it.
|
|
|
|
|
|
#5 |
|
Member
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.
|
|
|
|
|
|
#6 |
|
Forum King
|
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 |
|
|
|
|
|
#7 |
|
Forum King
|
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. |
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Jan 2003
Location: Estonia.
Posts: 851
|
Hah, really cool...
Phi = (1+sqrt(5))/2 |
|
|
|
|
|
#9 |
|
Forum King
|
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.
|
|
|
|
|
|
#10 |
|
Bin King
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?
|
|
|
|
|
|
#11 |
|
Forum King
|
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.
|
|
|
|
|
|
#12 |
|
Bin King
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
|
|
|
|
|
|
#13 |
|
Forum King
|
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.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|