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

Home » Public Forums » archive » Updating a texure map in object graphics
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
Updating a texure map in object graphics [message #40211] Tue, 27 July 2004 10:46
Clay Blankenship is currently offline  Clay Blankenship
Messages: 4
Registered: September 2003
Junior Member
Can someone briefly tell me how to update a texture map on an object? I
am trying to modify Rick Towler's rotating sphere program, posted earlier
on this group (search for "Object Grahpics Roting Sphere" to view the
thread):

http://www.acoustics.washington.edu/~towler/programs/camera_ _define.zip


Here's the initial setup of the globe with an image overlaying it:

;load the texture map
read_jpeg,'earth.jpg' ,texture, /true, /order
help,texture
texmap = obj_new('idlgrimage', texture)
container -> add, texmap

;create the "globe" -
globe = obj_new('orb', radius=1, pos=[0,0,0], color=[255,255,255], $
density=3.0, texture_map=texmap, /tex_coords)
container -> add, globe

How can I change the image after it has been created? I am loading in
new geophysical datasets that I want to use to replace the current map.
I tried destroying and recreating both the texmap and globe objects, but
nothing changes.

Thanks,
Clay
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Arnold Schwarzenegger Commits Suicide
Next Topic: Re: Updating a texure map in object graphics

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

Current Time: Fri Oct 10 09:24:37 PDT 2025

Total time taken to generate the page: 0.48214 seconds