Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How to achive this morphing sphere

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
2 replies to this topic

#1 ryt   Members   

294
Like
0Likes
Like

Posted 05 January 2014 - 11:17 AM

In these pictures in lower right corner can be seen a sphere that is changing its shape.

 

sphere1.jpgsphere2.jpgsphere3.jpg

 

I wonder how I can build this sphere. Probably it is some kind of sin function or something similar. The direct link for demo is here.



#2 ryt   Members   

294
Like
0Likes
Like

Posted 07 January 2014 - 10:11 AM

Maybe some function with Perlin noise would work or I though I could use some function with sin and some random values like A*sin(a) + A*cos(a) + A*sin(b) where A is some function of random values and interpolated and a and b are angles in spherical coordinates. Would something like this work ?



#3 unbird   Members   

8307
Like
1Likes
Like

Posted 08 January 2014 - 04:14 AM

Well, just play with it, that's what demo programming is about wink.png

I wonder if you need a random source here, let alone perlin. But yes, starting with a Sine wave looks appropriate. E.g. start with a sphere mesh and distort its coordinates like so:


x += amplitude * sin(x * k + time * omega)
Do this for each coordinate separately, using different wavenumbers (k) and frequencies (omega).

Or distort the polar coordinates (including radius).

Don't forget to post screenshots when you got something.

PS: Warning for others: Small demos use tricks to shrink the exe size, my virus scanner coughed. Then again: mea culpa laugh.png




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.