Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (580)
games submitted by our members
Games in WIP (500)
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  
  Starfield in jMonkey?  (Read 7898 times)
0 Members and 1 Guest are viewing this topic.
Offline Falken224

Senior Newbie




Ooooooh!  Look at the pretty Stars.


« Posted 2007-02-23 00:58:37 »

Just had a quick question about the best way to do a starfield in jMonkey.  Obviously, I'm planning on making a space combat / "space trader" type of game, and this is going to be an integral part of making the world look good.  I have a pretty good handle on moving the ships around, and dealing with very large, very far off objects, (planets, stars, etc.)  but the background . . . not quite so sure.

I've gone through the very basic tutorials on the site, but haven't really found a good way of doing it yet.  I tried playing with a SkyBox with quite unsatisfactory results, but I may not be using it correctly. 

Basically, I'm thinking that using a texture that's high enough resolution to look good is going to be hideously big, and I'm not really sure quite how to play nice with something like that.  I have SOME ideas, and could probably make it work, and I'm sure there's a "right way" to do this.  I just don't know what it is.

I've been impressed with jMonkey so far, and have a pretty good idea of how to tackle this project.  But this one thing . . . Grr . . . very frustrating.

Can anybody help, or even point me in the right direction?  I'd be greatly appreciative of any advice anybody could offer.

Thanks in advance,

Nate Nelson

-NateBob
 Brother Of Phil
Offline sunsett

Senior Member




ribbit!


« Reply #1 - Posted 2007-02-23 03:14:39 »

I am actually currently developing a space game myself and the way I'm currently handling the space environment is a modified version of this:
http://www.jmonkeyengine.com/wiki/doku.php?id=stardust

and I'm using a stars texture for my skybox and I have it locked to my camera's position so when I fly around the position stays locked but I can rotate around and I get the effect of looking around at stars.

BTW, our combat demo will be released within the next few weeks...you can see our really lacking teaser site here:

http://www.galaxiesbeyond.com
Offline Falken224

Senior Newbie




Ooooooh!  Look at the pretty Stars.


« Reply #2 - Posted 2007-03-01 20:43:35 »

Hmm . . .

I mean star dust is okay.  I'm sure I'll want it when I get around to actually making this thing.

My problem is more the sky box itself.  I mean, I haven't put a TON of effort into it, but I really expected it to look a WEE bit better than what you might see if you hung a ship on a string inside a cardboard box that a donkey vomited into.     Roll Eyes

In any case, the quest continues.  I'm not sure what's wrong . . . too low-res images, I should be using something other than a skybox . . . something like that . . . who knows.
I'll get it figured out, I'm sure, I was just hoping for a bit of help to make it easier.

Thanks for the stardust though.

-NateBob
 Brother Of Phil
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline sunsett

Senior Member




ribbit!


« Reply #3 - Posted 2007-03-01 20:58:23 »

I'm just using the Skybox spatial inside of jME. Here's a screenshot:



You need to remember to turn off lighting effects for the skybox or it won't look very "backgroundish".

If you need more information I'd suggest going to the jME forums as an extremely small number of the users of jME ever visit this forum.

http://www.jmonkeyengine.com/jmeforum/
Offline appel

JGO Wizard


Medals: 49
Projects: 5


I always win!


« Reply #4 - Posted 2007-03-15 14:12:26 »

Interesting. I'm doing a space game myself and I have been wondering about this problem also. Gonna try that StarDust thingy.

Other idea I had was multiple skyboxes...layered. So you have far-distant stars, not-so-far stars and stars that are close. (or more layers). It might give some depth, but I haven't figured out how to make the skyboxes transparent so they don't hide the skybox in behind.

I was also thinking about particle effects... but, hm, there are many many stars Smiley needless to say, I think it's a overkill to have each star as a white triangle or something.

Also, I was thinking about animation.... stars do "blink"... doable with particle effects.... but also with a skybox that gets alternated.

Check out the 4K competition @ www.java4k.com
Check out GAMADU (my own site) @ http://gamadu.com/
Offline Kova

Senior Member





« Reply #5 - Posted 2007-03-26 14:03:37 »

jeez, we'll soon have a bunch of space games Smiley

Also, I was thinking about animation.... stars do "blink"... doable with particle effects.... but also with a skybox that gets alternated.

do they blink? Looking at them from Earth they can seem to blink due to light passing through atmosphere, but does that apply for space also?
Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #6 - Posted 2007-03-26 14:36:26 »

jeez, we'll soon have a bunch of space games Smiley

You can include me in the list too Smiley

Although mine has been on the go for 10 years using various techs, so don't expect anything to get completed Smiley

I went for the static star field to start with, the sorts of things you can never get too, I'm talking background stars rather than dust in space type stars that seem to be the topic here.

Mine is more of the space ship on a string inside a box a donkey vomited on though Smiley

Endolf

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.

xsi3rr4x (46 views)
2014-04-15 18:08:23

BurntPizza (42 views)
2014-04-15 03:46:01

UprightPath (58 views)
2014-04-14 17:39:50

UprightPath (40 views)
2014-04-14 17:35:47

Porlus (56 views)
2014-04-14 15:48:38

tom_mai78101 (79 views)
2014-04-10 04:04:31

BurntPizza (138 views)
2014-04-08 23:06:04

tom_mai78101 (238 views)
2014-04-05 13:34:39

trollwarrior1 (199 views)
2014-04-04 12:06:45

CJLetsGame (207 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!