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  
  Rendering a sun.  (Read 1026 times)
0 Members and 2 Guests are viewing this topic.
Offline NiHal

JGO n00b
*

Posts: 1



« on: 2011-08-01 20:30:08 »

Hi,

I am trying to render a sun ( star ) in space. But the results I am getting using a particle system are a bit disapointing.. The sun appears transparent and quite fake - I can make it look slightly more realistic by adding a few hundred particles, but that is not really an option..

Does anyone know a good method to render a sun? I think I am approaching this wrong...

NiHal
Offline Eli Delventhal
« League of Dukes »

JGO Kernel
*****

Posts: 3575
Medals: 44


Game Engineer


« Reply #1 on: 2011-08-01 20:49:36 »

Get a sun image from Nasa and put it on the screen. Smiley

Google Image Search

Images from NASA are royalty free and public domain.

See my work:
OTC Software
<br />
Currently Working On:
Secret project...
Quote from: _Riven
I edit JGO in production, because I simply don't waste time writing bugs
Offline lhkbob

JGO Neuromancer
****

Posts: 1174
Medals: 35



« Reply #2 on: 2011-08-02 11:40:56 »

To do bright suns well you need to use HDR rendering, or fake it and render a big glow or halo around it so it looks blindingly bright.

Games published by our own members! Go get 'em!
Offline ra4king

JGO Kernel
*****

Posts: 3160
Medals: 196


I'm the King!


« Reply #3 on: 2011-08-02 17:38:14 »

Get a sun image from Nasa and put it on the screen. Smiley

http://www.google.com/search?client=safari&rls=en&q=NASA+images+sun&oe=UTF-8&um=1&ie=UTF-8&tbm=isch&source=og&sa=N&hl=en&tab=wi&biw=1588&bih=934

Images from NASA are royalty free and public domain.
wrong link Wink

Online Riven
« League of Dukes »

JGO Kernel
*****

Posts: 5871
Medals: 255


Hand over your head.


« Reply #4 on: 2011-08-02 17:40:26 »

He just flipped the HREF and the label. Easy enough.

Hi, appreciate more people! Σ ♥ = ¾

Learn how to award medals... and work your way up the social rankings
Offline Skarion

Jr. Member
**

Posts: 82
Medals: 2



« Reply #5 on: 2011-08-16 05:41:23 »

Would love to know this as well.

Currently the stars I do are created by a general algorithm of calculating the distance from the center of the star (creating a ball which get darker the farer out you go) and then considering the distance less considerable if near any 90 degrees or 45 degrees * n of circle considering from center.
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.103 seconds with 19 queries.