View unanswered posts | View active topics It is currently Fri Mar 29, 2024 2:33 am



Reply to topic  [ 10 posts ] 
 Random Starfield with Nebula 
Author Message
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Random Starfield with Nebula
I have been playing around with procedural generation of a random starfield with nebula using Perlin noise. I have come up with something that looks almost, but not quite, entirely unlike this:

Image

Each new image I create looks entirely different. There are 7 layers to that image.

Red, Green, and Blue gradients (Perlin noise with different seeds).
Background and Foreground Stars (Also Perlin noise).
Coverage and Billow Masks (You guessed it.. Perlin noise).

Each layer has different frequencies, amplitudes, brightness, etc... that can be adjusted. You could also use different colors to get a more realistic result.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Mon Mar 14, 2016 3:24 pm
Profile ICQ YIM WWW
Commander
User avatar

Joined: Mon Oct 29, 2001 3:00 am
Posts: 1096
Location: Tucson, AZ
Unread post Re: Random Starfield with Nebula
Sweet.

_________________
Suddenly you're Busted!


Mon Mar 14, 2016 11:39 pm
Profile WWW
Commander
User avatar

Joined: Wed May 01, 2013 11:28 pm
Posts: 1318
Location: Rural Indiana
Unread post Re: Random Starfield with Nebula
cool you should use that as the back ground to my website..Oh BTW can you build me a website? heh

sk

_________________
Star Killer
USA(RETIRED)
Loyalty Above All Else Except Honor
Playing with integrity is more important than winning
HHT 2015 Champs: Cloud09
2015 Lottery Tournament Winning Team Member
2016 Big Game Draft Tournament Winning Team Member
HHT 2016 Champs: Cloud09
HHT 2021 Champs(Just For Showing Up)
HHT 2022 Champs(For 90mins of Play)

Star Killer's Ice9 TWGS
Viper's Pit V1 TWGS
Website: http://sk-twgs.com
Email: starkillerstwgs@yahoo.com
Discord: Star Killer#0358
Ice 9 V2 TWGS: SK-TWGS.COM PORT 2002
Viper's Pit V1 TWGS: V1.SK-TWGS.COM PORT 2002
Now The Fastest TWGS in the West
https://www.facebook.com/StarKillersTradeWars/
To help offset the server(s) hosting bill donate via PayPal to: starkillerstwgs@yahoo.com


Tue Mar 15, 2016 4:18 am
Profile WWW
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Random Starfield with Nebula
Star Killer wrote:
cool you should use that as the back ground to my website..Oh BTW can you build me a website? heh

sk

Yeah, I can do that. I'll message you when I get home this evening.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Tue Mar 15, 2016 9:39 am
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Random Starfield with Nebula
As I continue to work on a procedural generated universe, I ran across a real one:

https://www.chromeexperiments.com/exper ... 0000-stars

"100,000 Stars is an interactive visualization of the stellar neighborhood created for the Google Chrome web browser. It shows the real location of over 100,000 nearby stars. Zooming in reveals 87 major named stars and our solar system. The galaxy view is an artist's rendition."

The star data comes from he HYG star database archive:
https://github.com/astronexus/HYG-Database

All major browsers now support WebGL, so maybe it is the future of gaming.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Thu Mar 17, 2016 8:48 am
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Random Starfield with Nebula
Every wonder where those stunning images of the milky way galaxy come from?

Some of them are artists renditions or 3D animations based on Spiral Galaxy NGC 1232, modified to look more like what we know about our galaxy.
http://www.eso.org/public/images/ngc1232b/

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Thu Mar 17, 2016 9:16 am
Profile ICQ YIM WWW
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Random Starfield with Nebula
Now with planets:

Image

Adding the Sun and Earth to this scene was a lot harder than I though it would be. The only geometry WPF knows is MeshGeometry3D, so modeling a sphere is a lot harder than it should be. You have to actually calculate coordinates for a mesh of triangles to form the shape of a sphere. I found dozens of samples for creating 3D primitives (i.e. spheres), but they didn't support texturing. Then I found one with texturing, but it didn't draw a sphere (oops). Eventually I found one that worked. Lighting and rotating the textured sphere turned out to be quite easy though. Yes, it rotates and it is fun to watch :)

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Fri Mar 18, 2016 3:41 pm
Profile ICQ YIM WWW
Commander
User avatar

Joined: Wed May 01, 2013 11:28 pm
Posts: 1318
Location: Rural Indiana
Unread post Re: Random Starfield with Nebula
"My God...Its Full of Stars"

sk

_________________
Star Killer
USA(RETIRED)
Loyalty Above All Else Except Honor
Playing with integrity is more important than winning
HHT 2015 Champs: Cloud09
2015 Lottery Tournament Winning Team Member
2016 Big Game Draft Tournament Winning Team Member
HHT 2016 Champs: Cloud09
HHT 2021 Champs(Just For Showing Up)
HHT 2022 Champs(For 90mins of Play)

Star Killer's Ice9 TWGS
Viper's Pit V1 TWGS
Website: http://sk-twgs.com
Email: starkillerstwgs@yahoo.com
Discord: Star Killer#0358
Ice 9 V2 TWGS: SK-TWGS.COM PORT 2002
Viper's Pit V1 TWGS: V1.SK-TWGS.COM PORT 2002
Now The Fastest TWGS in the West
https://www.facebook.com/StarKillersTradeWars/
To help offset the server(s) hosting bill donate via PayPal to: starkillerstwgs@yahoo.com


Fri Mar 18, 2016 5:23 pm
Profile WWW
Ambassador
User avatar

Joined: Fri Feb 23, 2001 3:00 am
Posts: 4016
Location: USA
Unread post Re: Random Starfield with Nebula
Micro wrote:
Now with planets:
Lighting and rotating the textured sphere turned out to be quite easy though. Yes, it rotates and it is fun to watch :)


Way cool! Can you put that up on a website so we can all watch it rotate?

_________________

BOTE 1998 Champs: Team Fament
HHT 2015 Champs: Cloud09
Big Game 2016 Champs: Draft team
HHT 2018 Champs: Rock Stars
Big Game 2019 Champs: Draft Team


Classic Style Games Here:
telnet://crunchers-twgs.com:2002

Web page from 1990's: https://web.archive.org/web/20170103155645/http://tradewars.fament.com/Cruncher/tradewar.htm
Blog with current server info: http://cruncherstw.blogspot.com
Discord: https://discord.gg/4dja5Z8
E-mail: Cruncherstw@gmail.com
FaceBook: http://www.facebook.com/CrunchersTW


Fri Mar 18, 2016 10:55 pm
Profile ICQ WWW
Ambassador
User avatar

Joined: Wed Apr 20, 2011 1:19 pm
Posts: 2559
Location: Oklahoma City, OK 73170 US
Unread post Re: Random Starfield with Nebula
Cruncher wrote:
Micro wrote:
Now with planets:
Lighting and rotating the textured sphere turned out to be quite easy though. Yes, it rotates and it is fun to watch :)


Way cool! Can you put that up on a website so we can all watch it rotate?

It is part of a TradeWars helper that I am writing. I will post a video as soon as I get clouds added.

In the mean time, I highly recommend you check out NASA's Eyes:
https://eyes.nasa.gov/

NASA's Eyes is a way for you to learn about your home planet, our solar system, the universe beyond and the spacecraft exploring them. There is an interactive application for desktop and mobile that allows you to visualize the real solar system though the data NSA has collected from various missions.

and Google 100,000 Stars:
https://www.chromeexperiments.com/exper ... 0000-stars

100,000 Stars is an interactive visualization of the stellar neighborhood created for the Google Chrome web browser. It shows the real location of over 100,000 nearby stars. Zooming in reveals 87 major named stars and our solar system. The galaxy view is an artist's rendition.

I ran across both of these really cool sites while searching for code examples.

_________________
Regards,
Micro

Website: http://www.microblaster.net
TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002

ICQ is Dead Jim! Join us on Discord:
https://discord.gg/zvEbArscMN


Sat Mar 19, 2016 2:05 am
Profile ICQ YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware.