Welcome aboard Visitor...

Daily Screenshot

Server Costs Target


9% of target met.

Latest Topics

- Anyone still playing from a decade ago or longer? »
- Game still active. NICE! »
- Password resett »
- Darkspace Idea/Opinion Submission Thread »
- Rank Bug maybe? »
- Next patch .... »
- Nobody will remember me...but. »
- 22 years...asking for help from one community to another »
- DS on Ubuntu? »
- Medal Breakpoints »

Development Blog

- Roadmap »
- Hello strangers, it’s been a while... »
- State of DarkSpace Development »
- Potential planetary interdictor changes! »
- The Silent Cartographer »

Combat Kills

Combat kills in last 24 hours:
No kills today... yet.

Upcoming Events

- Weekly DarkSpace
05/11/24 +6.0 Days

Search

Anniversaries

21th - Sir Oblivion {C?}

Social Media

Why not join us on Discord for a chat, or follow us on Twitter or Facebook for more information and fan updates?

Network

DarkSpace
DarkSpace - Beta
Palestar

[FAQ
Forum Index » » Soap Box » » Math: Order to Chaos
 Author Math: Order to Chaos
Kanman
Grand Admiral
Pitch Black


Joined: August 26, 2005
Posts: 1017
From: Virginia, United States
Posted: 2008-04-05 17:10   
So, I was messing around with more particles. This time, rather than coding them with instructions on how to move based on the other particles, I decided to let math functions (sin, cos, etc) move them around. Also, instead of the usual x,y,z coordinates, I decided to use spherical (roe,phi,theta).

Well, what did I get, but a bunch of spheres (surprise, surprise). Then I wanted to manipulate it. I wanted to bend it and fold it. I added control variables literally randomly, with no idea what would occur or if it would do anything at all.

Now, I behold some really interesting things. See for yourself.

Controls:

Modes: keys 1-4 above the letter keys. There are four different 'modes'. Since they are really just random set ups of the controls, I cannot define that with any names or behavior.

Mode 1 is no interactive. it was the prototype. Mode 2-4 do stuff.

Keys: (not all keys do something in all modes and most you have to hold down to see their influence). The keys are in pairs, each pair assigned to a variable. One key increasing the variable while the other decreases the variable.

Pairs: Q&W, S&D, X&C, V&B. Each pair is written in order of Decreaser&Increaser.

Other Keys: R = reset, T freezes/unfreezes Time.

LMouse and Rmouse rotate camera view.

Spherical Math

[ This Message was edited by: Kanman *FC* on 2008-04-05 17:27 ]
_________________


YIIMM
Grand Admiral

Joined: June 16, 2005
Posts: 851
From: Barcino, Hispania Tarraconensis
Posted: 2008-04-05 18:37   
It does look very pretty, I mean I'm not entirely sure what all the commands do without seeing the equations behind them, but the effects are...well, pretty.

(By the way, are spherical coordinates the same as polar coordinates?)
_________________


codenemesis
Admiral

Joined: June 10, 2007
Posts: 185
Posted: 2008-04-05 20:51   
I guess i really dont understand what all this is, i wouldnt mind trying to learn though, could you point me to where i might find out?
_________________
Times Quoted - Probably 11
00:44:23 Feralwulf: \"I am, therefore I ban\"


Kanman
Grand Admiral
Pitch Black


Joined: August 26, 2005
Posts: 1017
From: Virginia, United States
Posted: 2008-04-05 21:13   
The equations behind the shapes are practically garbage. It is like those days in math class, when you are bored and playing with your graphing calculator. You put things into it just to see what happens, like y = x * cos(ln(x))^e^x.

The equations a like that. If you want to really see what is happening, ill put them here. It will be messy and hard to read, but ill do it.

To understand polar coordinates, see it this way: R is the hypoteneuse of X and Y. Roe is the hypoteneuse of R and Z. So, there is Roe (its the distance from the origin along a straight line). Theta is the angle laying around the XY plane. Phi is the angle with respect to the Z axis. I know that sounds complicated. see wikipedia for visuals and better explanations.

Mostly, I am just trying to make familiar shapes. So far I have made a dolphin fin, a wine glass, a light bulb, various vortices and singularities, and even achieved what appears to be pure formless chaos. I also think I have come up with a bell, a sea shell, and a tuba, a cone with blades sticking out and teeth.


mode equations:

mode 1:

if(ROE[i]>0.9*(A/10000.0) && PHI[i] > 0.05)
PHI[i] -= 0.01;
if(PHI[i] < 0.05 && ROE[i] > 0.001)
ROE[i] -= 0.01;
if(ROE[i] < 0.001 && PHI[i] < 0.05)
PHI[i] += 3.1415-2*PHI[i];
if(PHI[i] > 0.05 && ROE[i] < 0.9*(A/10000.0))
ROE[i] += 0.01;

THETA[i] += 0.025;
if(THETA[i] > 2*3.1415)
THETA[i] -= 2*3.1415;


mode 2:

ROE[i] = pow(sin(PHI[i]),B)*pow(cos(THETA[i]),C)/1.5+0.1*D;
PHI[i] += 0.015;
if(PHI[i] > 3.1415)
PHI[i] -= 3.1415;

THETA[i] += 0.025;
if(THETA[i] > 2*3.1415)
THETA[i] -= 2*3.1415;

mode 3:

PHI[i] = pow(sin((ROE[i]/(0.9*A/(10000.0*W))*3.1415)),B)*pow(cos(THETA[i]),C)/1.5+0.1*D;
ROE[i] += 0.001;
if(ROE[i] > 0.9*(A/10000.0))
ROE[i] -= 0.9*(A/10000.0)-0.001;

THETA[i] += 0.001;
if(THETA[i] > 2*3.1415)
THETA[i] -= 2*3.1415;

mode 4:

PHI[i] = pow(tan((ROE[i]/(0.9*A/10000.0)*3.1415*W)),B)*pow(cos(THETA[i]),C)/1.5+0.1*D;
ROE[i] -= 0.015;
if(ROE[i] < 0.001)
ROE[i] += 0.9*(A/10000.0);
THETA[i] += 0.025;
if(THETA[i] > 2*3.1415)
THETA[i] -= 2*3.1415;

mode 5: *I dont remember if you have mode 5*

PHI[i] = pow(cos((ROE[i]/(0.9*A/10000.0)*3.1415*W)),B)*pow(tan(THETA[i]),C)/1.5+0.1*D;
ROE[i] -= 0.015;
if(ROE[i] < 0.001)
ROE[i] += 0.9*(A/10000.0);
THETA[i] += 0.025;
if(THETA[i] > 2*3.1415)
THETA[i] -= 2*3.1415;

_________________


|Kakashi|
Fleet Admiral

Joined: April 04, 2007
Posts: 448
Posted: 2008-04-05 22:18   
Is this like Mathletics.... Or something?
_________________


Sonlox ~hes that sexy~
Admiral
Sundered Weimeriners


Joined: November 19, 2003
Posts: 76
From: Bedford, Nova Scotia
Posted: 2008-04-05 23:12   
POST COUNT +1

HAHAHAHHAA
_________________


waiting for 1.483 since September 10, 2004

  Goto the website of Sonlox ~hes that sexy~
Page created in 0.019650 seconds.


Copyright © 2000 - 2024 Palestar Inc. All rights reserved worldwide.
Terms of use - DarkSpace is a Registered Trademark of PALESTAR