Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Sky/Space panorama generator  (Read 9328 times)
0 Members and 1 Guest are viewing this topic.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Posted 2009-03-31 09:34:44 »

Does anyone know a Sky/Space panorama generator ?

I have found this one. It generates quite good panorama image. But when I apply it to a background sphere, the result is poor.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #1 - Posted 2009-04-02 11:29:40 »

No one likes me !!!!  Cry Cry Cry Cry Cry

Then I will make you all pay  for this Angry I will make my own one !... hooo wait, I allready done one  Tongue

So my first version of my sky generator, really raw version, the code is a mess (not that mush  Roll Eyes). But it works as I want.
Offline zingbat

Senior Devvie




Java games rock!


« Reply #2 - Posted 2009-04-02 22:13:14 »

I'm looking for a space sky generator too. Yours even works right in my MacBook. Are you sharing your source?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline PeterB

Junior Devvie





« Reply #3 - Posted 2009-04-02 22:23:03 »

Not bad - I'd love to see you do a normal sky version or have an option for that.

Vault101 / Mace The Game
There are 10 kinds of people in the world. Those who understand binary and those who don't.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #4 - Posted 2009-04-03 07:14:28 »

I'm looking for a space sky generator too. Yours even works right in my MacBook. Are you sharing your source?

I hope so it work under Mac  Wink. It is java 1.5 "only".
There is the source. As I said, the code is "a few" dirty.
Basically, I generate all object (stars, planette, gaz) and then I do raycasting for each pixel :
- Stars are spheres
- Gaz are done with a 3D perlin noise.
- Planettes are perpendiculary bitmaps to the view.

For normal sky, I will take a look later. It should not be too mush different from this one. Several suns with bitmap or sphere. Moon with bitmaps. Clouds with a 3D perlin noise (but it need a varation on the final function I think).

By the way, if you have planet bitmap or extra other bitmap (galaxie, black hole,...) that can be add, I will gladly to (there are png file with transparency)
Offline zingbat

Senior Devvie




Java games rock!


« Reply #5 - Posted 2009-04-03 19:57:34 »

Thanks for the source. Your tool is already very useful.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #6 - Posted 2009-04-03 21:34:14 »





First tries for the normal sky. It is not simple to get the right parameters and formula. But I have made the code far more cleaner now  Grin
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #7 - Posted 2009-04-04 15:59:16 »

Those look pretty real to me Smiley
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #8 - Posted 2009-04-05 21:26:16 »

A little more work on it  Grin

I had difficulties to create a sphere with several textures without having big problem betwen part of different textures.

So... why not generating textures from an ".obj" file Wink ?
- 8 part sphere added
- 6 part spherified cube added (far better than sphere)

There is still some glitch betwen textures but it is better than before.  Tongue
Offline moogie

JGO Knight


Medals: 13
Projects: 6
Exp: 10 years


Java games rock!


« Reply #9 - Posted 2009-04-13 00:39:08 »

This is very neat!

Great work!
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #10 - Posted 2009-04-30 23:37:36 »

wow that's pretty nice .

I'll take a look in the source code to see if I can make it a little faster so I can use in my game .

good job

edit :I just added  it to my game (with slight modifications) and I am using it now.  If you think that's not okay, just tell me and I'll remove it.
Thanks anyway for the sourcecode  Smiley

Offline christina110

Innocent Bystander





« Reply #11 - Posted 2010-06-18 07:28:17 »

For normal sky, I will take a look later. It should not be too mush different from this one. Several suns with bitmap or sphere. Moon with bitmaps. Clouds with a 3D perlin noise (but it need a varation on the final function I think).
By the way, if you have planet bitmap or extra other bitmap (galaxie, black hole,...) that can be add, I will gladly to (there are png file with transparency)




charms
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

trollwarrior1 (33 views)
2014-11-22 12:13:56

xFryIx (73 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (40 views)
2014-11-12 21:09:33

kovacsa (65 views)
2014-11-07 19:57:14

TehJavaDev (69 views)
2014-11-03 22:04:50

BurntPizza (68 views)
2014-11-03 18:54:52

moogie (82 views)
2014-11-03 06:22:04

CopyableCougar4 (82 views)
2014-11-01 23:36:41
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!