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

Home » Public Forums » archive » Re: Object Graphics Roting Sphere
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Object Graphics Roting Sphere [message #37965 is a reply to message #37964] Wed, 04 February 2004 17:59 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jamie writes:

> Does anyone have an example of how to make a rotating sphere using object
> graphics? An example that shows a rotating planet with a topographic map
> would be ideal ;)

Well, here is something really simple and easy. Download
SIMPLE_SURFACE:

http://www.dfanning.com/programs/simple_surface.pro

Find these two lines on line 434:

thisSurface = OBJ_NEW('IDLgrSurface', data, x, y, $
Color=[255,255,0], _Extra=extra, Hidden_Lines=hidden_lines)

Replace the two lines above with this one:

thisSurface = OBJ_NEW('ORB',Color=[255,255,0])

Walla! Behold, a rotating sphere!!

I'll leave the topographic map part to you. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Countour plot of function zeros
Next Topic: Adding a plot to an itool Image

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

Current Time: Fri Oct 10 18:01:26 PDT 2025

Total time taken to generate the page: 0.72064 seconds