Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Sky/Space panorama generator  (Read 5712 times)
0 Members and 1 Guest are viewing this topic.
Offline Bonbon-Chan

Sr. Member
**

Posts: 417
Medals: 14



« on: 2009-03-31 05: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

Sr. Member
**

Posts: 417
Medals: 14



« Reply #1 on: 2009-04-02 07: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

JGO Ninja
***

Posts: 671
Medals: 1


Java games rock!


« Reply #2 on: 2009-04-02 18: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! Go get 'em!
Offline PeterB

Full Member
**

Posts: 147



« Reply #3 on: 2009-04-02 18: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

Sr. Member
**

Posts: 417
Medals: 14



« Reply #4 on: 2009-04-03 03: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

JGO Ninja
***

Posts: 671
Medals: 1


Java games rock!


« Reply #5 on: 2009-04-03 15:57:34 »

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

Sr. Member
**

Posts: 417
Medals: 14



« Reply #6 on: 2009-04-03 17: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 Kernel
*****

Posts: 1645
Medals: 4



« Reply #7 on: 2009-04-04 11:59:16 »

Those look pretty real to me Smiley
Offline Bonbon-Chan

Sr. Member
**

Posts: 417
Medals: 14



« Reply #8 on: 2009-04-05 17: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 Strike Force
***

Posts: 775
Medals: 5


Java games rock!


« Reply #9 on: 2009-04-12 20:39:08 »

This is very neat!

Great work!
Games published by our own members! Go get 'em!
Offline teletubo
« League of Dukes »

Sr. Member
*****

Posts: 465
Medals: 17



« Reply #10 on: 2009-04-30 19: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

JGO n00b
*

Posts: 1



« Reply #11 on: 2010-06-18 03: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]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.116 seconds with 21 queries.