Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / [DBP] - [+SNoise] Seamless spherical texture generation (no pinching)

Author
Message
WLGfx
16
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 13th Jul 2012 23:54 Edited at: 13th Jul 2012 23:55
I've finally cracked it!!!

Using my Simplex Noise Plugin which I done quite some time ago I managed to convert rectangular coordinates to polar coordinates and I'm now able to generate planetary textures which are seamless and without pinching at the poles.

Have a play around with the code and see what you think...





Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!

Attachments

Login to view attachments
JackDawson
12
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 14th Jul 2012 00:00 Edited at: 14th Jul 2012 00:17
Holy Crapolies batman.. That is brilliant my friend. Makes me love DBP again.. GREAT WORK !!!

I'm about to test it out as soon as I can.

UPDATE : Dang she is FAST !!!!! I also had to alter two lines to slow down the planet rotation speed as well.. lol



Attachments

Login to view attachments
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 14th Jul 2012 00:23
nice!

Well done Chef!

JackDawson
12
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 14th Jul 2012 00:33 Edited at: 14th Jul 2012 01:19
I was sitting here Experimenting...

Now the CPU cycles won't ramp up and it rotates on a timer now. On top of this you will get max frame rates.

Again WLGfx, thanks for the hard work my friend.

WLGfx
16
Years of Service
User Offline
Joined: 1st Nov 2007
Location: NW United Kingdom
Posted: 14th Jul 2012 00:51
He he he... With a bit of tweaking you can generate an unlimited number of planets. All you need to do is fiddle with the colour generation and the noise values that are returned by the 3d simplex noise.

I think my next trick up my sleeve will be a geometry shader to do the same thing...

Mental arithmetic? Me? (That's for computers) I can't subtract a fart from a plate of beans!
Warning! May contain Nuts!
JackDawson
12
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 14th Jul 2012 01:03 Edited at: 14th Jul 2012 01:18
Ok I updated the above code. Now it properly displays the black background with text.



Attachments

Login to view attachments
JackDawson
12
Years of Service
User Offline
Joined: 12th Jul 2011
Location:
Posted: 14th Jul 2012 02:54 Edited at: 14th Jul 2012 02:55
Ok, I slapped together a server / Chat client with this if you all are interested. All the details are in the README 1st Text file.


I named it PlanetChat. Source Code obviously included. All you need is a couple plugins if you want to compile it yourself. But both EXE's are included for your convenience. Compiled on my Win7 x64.

Enjoy.

Attachments

Login to view attachments
Todd Riggins
19
Years of Service
User Offline
Joined: 29th Oct 2004
Location: Texas, USA
Posted: 15th Jul 2012 05:27
Awsome WLGfx! Very nice, thanks

ExoDev.Com - A Game Development Tools Website! Featuring: XBOX360 CONTROLLER LIBRARY

Login to post a reply

Server time is: 2024-04-20 08:30:43
Your offset time is: 2024-04-20 08:30:43