Cube mapping

General discussion for players of Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Cube mapping

Post by JensAyton »

Moderator: split from here.

Nasty deprecated lat/long texture maps make me sad. :-(
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Screenshots

Post by DaddyHoggy »

Ahruman wrote:
Nasty deprecated lat/long texture maps make me sad. :-(
Which is why I asked to see the poles...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Screenshots

Post by Smivs »

Ahruman wrote:
Nasty deprecated lat/long texture maps make me sad. :-(
Having something which is obviously very useful downloaded and sitting on my desktop with no instructions or user-guide makes me sad.
Please tell me how to use it!
Commander Smivs, the friendliest Gourd this side of Riedquat.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Re: Screenshots

Post by another_commander »

Use the Force, Smivs, use the Cube Maps.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Screenshots

Post by JensAyton »

Smivs wrote:
Having something which is obviously very useful downloaded and sitting on my desktop with no instructions or user-guide makes me sad.
Please tell me how to use it!
The thread I linked to quotes the tool’s built-in documentation, and links to the longer documentation on the wiki. How does this constitute “no instructions”?

In the example from the first post of that thread:
planettool --input latlong [i]my-latlong-map.png[/i] --output cube [i]my-cube-map.png[/i] --flip --size [i]512[/i]
the lat/long texture map my-latlong-map.png is converted to a cube map my-cube-map.png of size 512 (meaning each of the six sides is 512 × 512 pixels). The game will recognise it as a cube map based on its shape.

This glosses over the issue of putting the tool where the command line can find it. How to do this varies by platform. An alternative is to specify the path to the tool; for Mac OS X and most Linuxes, that would be ~/Desktop/planettool if the tool itself is on the desktop. I don’t know the equivalent for Linux.

If you have any other issues with the documentation, please be specific.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Screenshots

Post by JensAyton »

DaddyHoggy wrote:
Which is why I asked to see the poles...
It’s not just the poles. If you look closely at the rings, you’ll see that they form smoothed pentagons:
Image

A similar deformation exists along all six vertex axes of the underlying icosahedron.
User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Cube mapping

Post by DaddyHoggy »

So they do. Never really noticed, or perhaps I did, and it just wasn't as obvious as the neat pentagon in the centre...
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Screenshots

Post by Smivs »

Ahruman wrote:
The thread I linked to quotes the tool’s built-in documentation, and links to the longer documentation on the wiki. How does this constitute “no instructions”?
OK, thanks. The 'in-built documentation' is starting to make sense after my fifth read of it, so I'll probably understand it eventually. The first read through left me baffled, so much so I didn't even realise this was the 'instructions'.
I hadn't read down to the second post on the second page, so I missed the link to the Wiki altogether.
I'll see how I get on. I expect I'll be back.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Cube mapping

Post by JensAyton »

User avatar
DaddyHoggy
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 8515
Joined: Tue Dec 05, 2006 9:43 pm
Location: Newbury, UK
Contact:

Re: Cube mapping

Post by DaddyHoggy »

I saw this effect on a programme about 20 or 30 years ago (Horizon, QED or something similar) - they also recreated Jupiter's Red Spot in the same show.
Selezen wrote:
Apparently I was having a DaddyHoggy moment.
Oolite Life is now revealed here
Post Reply