comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: ...and planet textures ...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: ...and planet textures ... [message #40306] Tue, 03 August 2004 10:39 Go to next message
David Fanning is currently offline  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 Go to previous message
Ralf Schaa is currently offline  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 Go to previous message
Rick Towler is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Object Graphics: Combine 2d with 3d
Next Topic: tvrd(true = 1) Odd behavior in Windows versus Linux

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 16:52:29 PDT 2025

Total time taken to generate the page: 0.00648 seconds