How do I rotate a texture from 180 degrees ?

Tips for creating and manipulating planet textures for Celestia.
Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

How do I rotate a texture from 180 degrees ?

Post #1by Cham » 19.02.2004, 04:20

I want to use a 8k mars texture which is 180 degrees rotated. In my alt texture code :

AltSurface "Mars 5" "Sol/Mars"
{
Texture "redmars8k-bmp-um-redcorr.dds"
}

what line should I add to rotate it of 180 degrees ?
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #2by JackHiggins » 19.02.2004, 21:01

Add the line

Code: Select all

Orientation [ 180 0 1 0 ]

under texture, and above the final "}" :)
- Jack Higgins
Jack's Celestia Add-ons
And visit my Celestia Gallery too!

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #3by Cham » 19.02.2004, 22:54

It didn't worked !

I wrote this code :

AltSurface "Mars 5" "Sol/Mars"
{
Texture "redmars8k-bmp-um-redcorr.dds"
Orientation [ 180 0 1 0 ]
}

Well, the texture is still in a wrong orientation.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #4by JackHiggins » 19.02.2004, 23:09

Hm...

Not sure so.. Perhaps Grant can see what's wrong?
- Jack Higgins

Jack's Celestia Add-ons

And visit my Celestia Gallery too!

granthutchison
Developer
Posts: 1863
Joined: 21.11.2002
With us: 22 years

Post #5by granthutchison » 19.02.2004, 23:23

Orientation affects the model, not the texture, so I would have been surprised to see it work in AltSurface.
If you can open the dds in an image editor, Cham, you need to offset it sideways by half its own width.

Grant

Avatar
Topic author
Cham M
Posts: 4324
Joined: 14.01.2004
Age: 60
With us: 20 years 10 months
Location: Montreal

Post #6by Cham » 19.02.2004, 23:27

How can I open a dds file on a Mac ?

I didn't found any plugin for Photoshop, Mac version.
"Well! I've often seen a cat without a grin", thought Alice; "but a grin without a cat! It's the most curious thing I ever saw in all my life!"

JackHiggins
Posts: 1034
Joined: 16.12.2002
With us: 21 years 11 months
Location: People's Republic Of Cork, Ireland

Post #7by JackHiggins » 20.02.2004, 00:10

grant wrote:Orientation affects the model, not the texture, so I would have been surprised to see it work in AltSurface.

Whoops... :oops: Sorry about that Cham!
- Jack Higgins

Jack's Celestia Add-ons

And visit my Celestia Gallery too!


Return to “Textures”