Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

Textured planets experiment - discussion here

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

dajt
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 364
Joined: Tue Aug 17, 2004 7:05 am
Location: Orange, NSW, Australia

Textured planets experiment - discussion here

Post by dajt »

So discussion of this thing doesn't spread all over the board, please post comments, bug reports, etc in this thread. I'll also post notices of new exe uploads here, and links to work in progress screen shots.

If you're running it on *NIX of any flavour, please also use this thread to discuss your findings and ask questions.

I've been trying to come up with a different style of planet and have this Mars-like one going now. I think it looks pretty good.

I don't yet have a good way of deciding how to make planets Earth-like or Mars-like, and each of the algorithms I've tried on the 6-part pseudo-random seed value for the systems lays the two planet types out in bands across the galaxy. The guys who know the galaxy seeding algorithm well might have some ideas here.

Right now the only criteria for weeding an algorithm out is that Lave, Zaonce, and Tionisla should be Earth-likes. Well, at least Lave, as it has rainforests! Perhaps I could do an algorithm based on the description numbers and look for planets that must have trees or something.

For this new type of planet I think variations in colour will be easier... I'm going to try using HSL values to keep the general range of the colours the same, but give slightly different hues to each planet while maintaining a basic rock-like colour for all of them. Greys, browns, and yellows pretty much.

I'm also trying to find a way to make the poles of the Earth-like planets fade to white to represent ice and snow. I thought I knew how to do it in libnoise using a technique similar to how I get the cloud layer transparent, but it didn't work... more tinkering required here.
Regards,
David Taylor.
User avatar
aegidian
Master and Commander
Master and Commander
Posts: 1160
Joined: Thu May 20, 2004 10:46 pm
Location: London UK
Contact:

Re: Textured planets experiment - discussion here

Post by aegidian »

dajt wrote:
I don't yet have a good way of deciding how to make planets Earth-like or Mars-like, and each of the algorithms I've tried on the 6-part pseudo-random seed value for the systems lays the two planet types out in bands across the galaxy. The guys who know the galaxy seeding algorithm well might have some ideas here.
AFAICS you're just xor-ing the 6 values together, a better route would be to use one for the 'seed RNG from planet seed' routines then use a random number as the seed to the noise generators.
"The planet Rear is scourged by well-intentioned OXZs."

Oolite models and gear? click here!
User avatar
Rxke
Retired Assassin
Retired Assassin
Posts: 1757
Joined: Thu Aug 12, 2004 4:54 pm
Location: Belgium

Post by Rxke »

8) 'Mars' looks very nice...
User avatar
LittleBear
---- E L I T E ----
---- E L I T E ----
Posts: 2868
Joined: Tue Apr 04, 2006 7:02 pm
Location: On a survey mission for GalCop. Ship: Cobra Corvette: Hidden Dragon Rated: Deadly.

Post by LittleBear »

Tried the new version. Even better with the Clouds. Like the mars idea!

I have no programing skill, but just an idea:

Perhaps to weed out planets, could you use the code that generates the planet descriptions in some way? Eg if the description included "plantations" or "forests" your code makes it very green, "mountains" your code add mountain ranges etc. Then the planet would match its description as well. Or use the description of the inhabitants. "Human colonists" would generate a earth-type planet, but "slimy frogs" could generate a very watery planet etc.

This would be really cool in making the Ooniverse more "realistic" as humans would colonise an earth type world and sentient frogs would need a lot of water!

Could I be very greedy and ask if it would be possible to do a similar thing with texturing the sun? Then we could have red-giants, g-type stars, white dwarfs etc and have moving sun-spots and plasma instead of clouds.
Last edited by LittleBear on Fri Aug 04, 2006 11:18 pm, edited 4 times in total.
OXPS : The Assassins Guild, Asteroid Storm, The Bank of the Black Monks, Random Hits, The Galactic Almanac, Renegade Pirates can be downloaded from the Elite Wiki here.
User avatar
ramon
---- E L I T E ----
---- E L I T E ----
Posts: 346
Joined: Thu Jun 01, 2006 2:38 pm
Location: Tavistock
Contact:

Post by ramon »

This is an idea I put in the other thread but it's better off here:

Is there a way of having a gradient for the land mass and a block colour for liquid, and then maybe having a liquid height for the water (so for a dry planet have the water level at 0% and for a water planet have the level at 100%).

So for earth the land mass gradient could be green-brown say (or if you could have three colours in the gradient green-brown-white). The sea would be blue and set the sea level to about 70% maybe, to give big expanses of water with land contenients.

This way there would be a definate difference between land and sea.
User avatar
Wolfwood
---- E L I T E ----
---- E L I T E ----
Posts: 735
Joined: Wed Mar 29, 2006 9:53 am
Location: Finland
Contact:

Post by Wolfwood »

The "Mars" looks very good, indeed! Unfortunately, I don't have time to try the new exe out until after the weekend, but I'm dying to do so! :)
Author of Tales from the Frontier - official Elite 4 anthology.
Author of Marcan Rayger adventures - unofficial fan-fic novellas set in the Frontier universe.
dajt
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 364
Joined: Tue Aug 17, 2004 7:05 am
Location: Orange, NSW, Australia

Post by dajt »

LittleBear wrote:
Could I be very greedy and ask if it would be possible to do a similar thing with texturing the sun? Then we could have red-giants, g-type stars, white dwarfs etc and have moving sun-spots and plasma instead of clouds.
I think that would be cool too, but it's beyond my GFX abilities. I think the suns would need an "animated" texture to show their churning surface, plus some hazing and glowing and stuff. This is Giles/Ahruman territory.
Last edited by dajt on Sat Aug 05, 2006 7:23 am, edited 1 time in total.
Regards,
David Taylor.
dajt
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 364
Joined: Tue Aug 17, 2004 7:05 am
Location: Orange, NSW, Australia

Post by dajt »

ramon wrote:
This is an idea I put in the other thread but it's better off here:

Is there a way of having a gradient for the land mass and a block colour for liquid, and then maybe having a liquid height for the water (so for a dry planet have the water level at 0% and for a water planet have the level at 100%).

So for earth the land mass gradient could be green-brown say (or if you could have three colours in the gradient green-brown-white). The sea would be blue and set the sea level to about 70% maybe, to give big expanses of water with land contenients.

This way there would be a definate difference between land and sea.
That is extactly the way it works now, aside from the block colour for the water. I don't think that would look as good as the seas would be dead flat with no variation in "blue" colour.
Regards,
David Taylor.
snarkism
Mostly Harmless
Mostly Harmless
Posts: 3
Joined: Fri May 13, 2005 7:28 pm

Post by snarkism »

I downloaded the exe (I think) and had a go. First up - Great job! - I know you're doing this in your spare time because it's something you enjoy. Below are some suggestions I had on first look. (It's always easier to criticise!)

1) Can the resolution of the textures be increased? Now that you have decernable features on the planet's surface the textures look a bit naff when you leave the station. Great from a distance though.

2) Sea colour. You could probably vary the sea colour more from planet to planet - lighter or darker blue (Cyan to Black) - not every planet will have seas of pure water.

3) Land colour. The base rock of a planet might vary. You could also vary the underlying colour (like you were trying to do with the "rock" planets)

4) Plant colour. Our land plants are green (although some are a lot darker green than others). However our seaweeds are red below a certain depth because this best captures the filtered light. There may be more variation you could apply in the plant colour. (Although I'm not sure how good it would look)

5) Mix of properties. Again there's probably room for more variation on the amount of plant/land. I didn't see that much in a (breif) look. Some planets might be deserts with very few plants - whereas some might be completely forrested.

6) Cities. You could add areas of grey or brown that might represent cities. Again allowing for variation from none at all to some totally industrialised planets. - Of course you'd then have to add lights to the night side ;-)

7) ICE Planets. Some planets might be covered in ice - possibly colonised for mining?

8) Random seed. The planet's properties are surley the right way to go about this. As I recollect the BBC version of elite used one of the bits of the second to last letter of the planet name to determine how it was drawn - There's some milage in simiar techniques. You've also got the industrial/agricultural mix that might be used to make rocky/planty planets.

Hmm. This has turned into quite a list. Hope that some suggestions inspire ideas.

Chris.
dajt
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 364
Joined: Tue Aug 17, 2004 7:05 am
Location: Orange, NSW, Australia

Post by dajt »

I have started a change so you can specify the size of texture you want in planetinfo.plist, but it isn't working yet. It should be a simple change but something has gone wrong... I tried it with 1024x768 textures earlier today and the desert planet looked great. It didn't make that much difference for the earth-like one.

I like the idea of ice planets, but they might require more GFX nous than I have to get them shiny.

I have changed the way the seed is calcuated based on Giles' suggestion above. Not sure what the distribution of the two types of planet is like yet.

As for the other ideas - I don't disagree with any of them, but I can't see them happening any time soon either - particularly the cities. Nice idea, but too hard for me right now.

I have held off posting an exe with the desert planets until I get the texture size property problem sorted out.
Regards,
David Taylor.
User avatar
Murgh
---- E L I T E ----
---- E L I T E ----
Posts: 454
Joined: Fri Sep 03, 2004 6:19 am
Location: Terra Firma

Post by Murgh »

the pics shown so far have been impressively hot-looking. well done so far.

to throw something into the suggestion pot, how about having the very largest planets be gas giants?
The man next to you is your lunch
User avatar
Arexack_Heretic
Dangerous Subversive Element
Dangerous Subversive Element
Posts: 1876
Joined: Tue Jun 07, 2005 7:32 pm
Location: [%H] = Earth surface, Lattitude 52°10'58.19"N, longtitude 4°30'0.25"E.
Contact:

Post by Arexack_Heretic »

Oo!

cities. they shine in the dark! :lol:
would like to see you tackly that one.
Prolly have to wait for gile's glow/bumpmepping experiments to pan out.
:D

Great stuff guys.
Riding the Rocket!
User avatar
Draco_Caeles
Dangerous
Dangerous
Posts: 105
Joined: Sat Apr 15, 2006 11:40 pm
Location: North-west England

Post by Draco_Caeles »

dajt wrote:
I like the idea of ice planets, but they might require more GFX nous than I have to get them shiny.
Isn't there a value you can set which determines the reflectivity of a surface? In BlitzBASIC 3D, my standard devkit, there's an Entity Shininess command which does that.

I'm also dying to see the new build... alas, so little time... :(
Space Corps Directive #7214
To perserve morale during long-haul missions, all male officers above the rank of First Technician must, during panto season, be ready to put on a dress and a pair of false breasts.
User avatar
ramon
---- E L I T E ----
---- E L I T E ----
Posts: 346
Joined: Thu Jun 01, 2006 2:38 pm
Location: Tavistock
Contact:

Post by ramon »

dajt wrote:
ramon wrote:
This is an idea I put in the other thread but it's better off here:

Is there a way of having a gradient for the land mass and a block colour for liquid, and then maybe having a liquid height for the water (so for a dry planet have the water level at 0% and for a water planet have the level at 100%).

So for earth the land mass gradient could be green-brown say (or if you could have three colours in the gradient green-brown-white). The sea would be blue and set the sea level to about 70% maybe, to give big expanses of water with land contenients.

This way there would be a definate difference between land and sea.
That is extactly the way it works now, aside from the block colour for the water. I don't think that would look as good as the seas would be dead flat with no variation in "blue" colour.
Yup, I said all that before downloading tp4. Must be more up to date before posting replies!!

I like the idea of being able to use our own textures in a planetinfo.plist
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

dajt wrote:
I have started a change so you can specify the size of texture you want in planetinfo.plist, but it isn't working yet. It should be a simple change but something has gone wrong... I tried it with 1024x768 textures earlier today and the desert planet looked great. It didn't make that much difference for the earth-like one.
1024x768? I’m assuming you meant 1024x512?

Have you considered detail textures? Just a bit of noise mapped over the main textures to hide the pixelation.
Arexack_Heretic wrote:
cities. they shine in the dark!
Sensible positioning of the cities is probably the hardest bit there. (Incidentally, Giles mentioned implementing glow maps with shaders, but they can be done without.)

As for the sun, I think the current look is pretty good for the main disc. You can’t pick out sunspots on the sun. :-) (A more realistic corona is possible, though. And maybe full-screen bloom effects…)
Post Reply