Re: ...and planet textures ... [message #40306] |
Tue, 03 August 2004 10:39  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ralf Schaa writes:
> the rotating would have to be on the fly, and for this your link was
> very helpfull.
> Actually, since it is a sphere , i only rotate that, and not the texture:
>
> model -> rotate, [0,0,1], 30.
>
> et voila ... :-)
Oh, don't you just *love* object graphics ... well, after
you figure them out. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: ...and planet textures ... [message #40307 is a reply to message #40306] |
Tue, 03 August 2004 10:39  |
Ralf Schaa
Messages: 37 Registered: June 2001
|
Member |
|
|
Rick Towler wrote:
> Ralf Schaa wrote:
>
>> Yet another question:
>>
>> I found that one can add a jpeg as a texture for a sphere, so i added
>> an image from Mars (http://maps.jpl.nasa.gov/mars.html) as a texture,
>> which is beautiful ...
>>
>> But how can I rotate that texture, so that the 'planet' is showing the
>> right front/up/down to me ? ( when looking from Earth at a specific
>> epoch...)
>
>
> Easiest is to rotate your texture in an image editing program.
>
> If you want to rotate it an arbitrary amount "on the fly" then you can
> modify the Texture_Coords. I posted about this a while back:
>
> http://tinyurl.com/3nkw2
>
> -Rick
Thanks Rick,
the rotating would have to be on the fly, and for this your link was
very helpfull.
Actually, since it is a sphere , i only rotate that, and not the texture:
model -> rotate, [0,0,1], 30.
et voila ... :-)
-Ralf
|
|
|
Re: ...and planet textures ... [message #40308 is a reply to message #40306] |
Tue, 03 August 2004 09:02  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
Ralf Schaa wrote:
> Yet another question:
>
> I found that one can add a jpeg as a texture for a sphere, so i added an
> image from Mars (http://maps.jpl.nasa.gov/mars.html) as a texture, which
> is beautiful ...
>
> But how can I rotate that texture, so that the 'planet' is showing the
> right front/up/down to me ? ( when looking from Earth at a specific
> epoch...)
Easiest is to rotate your texture in an image editing program.
If you want to rotate it an arbitrary amount "on the fly" then you can
modify the Texture_Coords. I posted about this a while back:
http://tinyurl.com/3nkw2
-Rick
|
|
|