Update to Planet Texturing Technique?

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
Cmd. Cheyd
---- E L I T E ----
---- E L I T E ----
Posts: 934
Joined: Tue Dec 16, 2008 2:52 pm
Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...

Update to Planet Texturing Technique?

Post by Cmd. Cheyd »

With a lot of the recent focus on the OXP's and even a fair bit of the core development going into improving the appearance of the overall game (new models/textures ala Simon & Griff, upping the Poly count limit and soon-to-be-removing-it, etc), would it be possible to also upgrade the mechanism for texturing planets?

I'm helping another OXP'er with a rather "Famous" project, and am continually disappointed after spending time developing my texture, that when it's applied in-game, it always has such obvious polar distortion. It always looks like the planet has a butt-pucker. Also, would it be possible to make the planets actually rotate on ONE axis like normal?

Lastly, I've not tried yet, but will planets / moons accept bump maps and the more advance image stuff beyond basic singular textures?
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Re: Update to Planet Texturing Technique?

Post by Commander McLane »

Cmd. Cheyd Vlos'Olplyn wrote:
Also, would it be possible to make the planets actually rotate on ONE axis like normal?
Oh, they do rotate around any axis you tell them. That's what the orientation-key in planetinfo is good for.

The real problem is that the texture is not applied along the rotational axis. There is only ONE very specific value for orientation which leads to the north pole of your texture actually being placed over the non-rotating spot of the planet, and the equator of your texture being parallel to the equator of the rotation.

The closest I ever got to it (by trial and error) was with

Code: Select all

orientation = "0.9659 0.2588 0 0"
for scripted planets. I don't suppose, though, that you could apply that to all main planets (which are not scripted in planetinfo). Also this was some Oolite-versions ago, and I don't know whether it's still good. But I don't think the planet orientation was worked with in the code since.

Something is clearly broken with the orientation of the planets. But it seems to be complicated, and is of minor interest for the coders at this point.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

I know this is not exactly what is being requested here, but as of version 1.73 onwards, the procedurally textured planets are coming back as a game option menu item. For those who don't know what this is, basically planet textures will be generated realtime on universe creation or F7 screen access, using a specific procedural algorithm. It is all done in such a way that each of the 2048 planets in the game has its own unique texture. This code has been long dormant since 1.69, but we think that it is possible to bring it back to life now and a couple of small optimizations have been already done on it.
Just to have an idea of what we are talking about:

Image Image Image Image Image Image
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

And for even more clarifying some benefits of the in game texture planets via the oxp texture techniques (that until now was the only alternative) we have:
1.No distortion in the poles
2.Every planet is unique
3.No texture wrap problems
4.Independent movement of the clouds (for the simple reason that the clouds are not a part of the texture anymore)
5.You can see the same planet in the F7 screen and in space (bare in mind that the F7 screen uses always white light for the illumination before stat complaining that the miniature planets have a little bit different colors)

On the other hand there is a small delay when you press the F7 screen

A big thanks to Aegidian for creating this feature (yes as you can see is a rather old inactive feature) and especially to Ahruman, A_C and the rest of the dev team for optimazing it and make this feature active again.
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

...

Post by Lestradae »

Would it be possible to have the System Redux texture in-flight and the generated ones on the F7 screen simultanously?
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Post by another_commander »

Yes, it would be possible, but obviously the texture appearing in flight will be completely different to the one you will see on F7.

Note that this will still remain by default off. You will have to activate it through the game options screen if you want it
Last edited by another_commander on Thu Jan 22, 2009 10:42 am, edited 1 time in total.
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

IMHO What we are going to need is a light version of system redux that will only add the additional planets, moons, nebulas ect without changing the texture of the main planet
User avatar
CaptKev
---- E L I T E ----
---- E L I T E ----
Posts: 519
Joined: Fri Jan 26, 2007 3:21 pm
Location: Shropshire, UK

Post by CaptKev »

Ark wrote:
IMHO What we are going to need is a light version of system redux that will only add the additional planets, moons, nebulas ect without changing the texture of the main planet
Comment out the line calling the homePlanet function.

Can't wait until the procedurally textured planets are back in-game again. :D
Download Fighter HUD, Stingray and System Redux from the EliteWiki
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

Well look who is here!!!!!!!
long time no see CaptKev
User avatar
CaptKev
---- E L I T E ----
---- E L I T E ----
Posts: 519
Joined: Fri Jan 26, 2007 3:21 pm
Location: Shropshire, UK

Post by CaptKev »

Hi Ark, I've been experiencing Oolite withdrawal symptoms so I thought I'd better get a quick fix.

Oolite has moved forward in leaps and bounds since I was last here, I suppose I shouldn't be surprised considering the talent (old and new) frequenting these boards.

You probably don't need an old bogger like me around anymore? :D
Download Fighter HUD, Stingray and System Redux from the EliteWiki
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

..

Post by Lestradae »

CaptKev wrote:
You probably don't need an old bogger like me around anymore? :D
No, by all means, stay!

More Oolite withdrawal to you, there's only one cure for that :wink:
User avatar
pagroove
---- E L I T E ----
---- E L I T E ----
Posts: 3035
Joined: Wed Feb 21, 2007 11:52 pm
Location: On a famous planet

Post by pagroove »

Hi Capt Kev! Welcome back man! Of course we need you on the board 8) Still using your System Redux because it has excellent textures.

:D

A question to the procedural devs. Is the Famous Planets OXP still usable?
because otherwise I made all the textures for nothing. The looks of the new planets are very good (out of the box) but I wish for better cloud generation

EDIT

I mean a stronger visible cloud layer. But I looked better at the pictures now and it looks real good for generated planets 8)
For P.A. Groove's music check
https://soundcloud.com/p-a-groove
Famous Planets v 2.7. (for Povray)
Image
https://bb.oolite.space/viewtopic.php?f=4&t=13709
User avatar
wackyman465
---- E L I T E ----
---- E L I T E ----
Posts: 831
Joined: Thu Nov 06, 2008 10:15 pm
Location: Currently hunting you down in an Imperial Courier

Post by wackyman465 »

New textures for planets would be great. With Simon B and Griff, everything looks great, but the planets just look out of place.
I want something like this:
http://www.desktopextreme.com/photos/Ea ... 0PM202.jpg

Moderator: link to giant picture instead of breaking forum
I shot him back first. That is to say, I read his mind and fired before he would have fired on me. No, sir, he wasn't a fugitive.
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 »

wackyman465 wrote:
New textures for planets would be great. With Simon B and Griff, everything looks great, but the planets just look out of place.
I want something like this:
http://www.desktopextreme.com/photos/Ea ... 0PM202.jpg
Frankly, that looks awful. We can do far better.

However, the amount of time and energy I can muster to work on Oolite is frustratingly limited, and I need to prioritize. The priorities at the moment are the modelling and material system for ship entities (most importantly, getting lighting fully working), the JS scripting system (pretty much done) and bug fixing (lots). After that we’ll see.
User avatar
Ark
---- E L I T E ----
---- E L I T E ----
Posts: 664
Joined: Sun Dec 09, 2007 8:22 am
Location: Athens Greece

Post by Ark »

pagroove wrote:
A question to the procedural devs. Is the Famous Planets OXP still usable?
because otherwise I made all the textures for nothing.
Theoretically it will not have any problem at all. Whoever wants to install them in 1.73 would not have any problem.

From my point of view oxps like system redux and famous planets are not dead due to the new oolite feature. They just have to adapt to the new reality. That means that maybe the replacement of the texture on the main planet would not be their main feature anymore.

Just see the recommendation I made about the system redux.

In the case of famous planets oxp if you have a closer look at lave oxp you will see an alternative approach of how you can customize a specific system (it even changes the color of the planet without wrap to it a new texture)

I repeat that as far as I can see there will be no compatibility problems if you want to change the texture of the main planet. It is not a matter of compatibility it is a matter of choice. It would work in the same way as now but also with the same drawbacks that we have today (distortion in the poles ech) and moreover I can not see any possible solution to those drawbacks via a deferent oxp technique.
Post Reply