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

Home » Public Forums » archive » Re: How to change the 3D visual angel?
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: How to change the 3D visual angel? [message #59709 is a reply to message #59707] Sat, 05 April 2008 09:54 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
FOX writes:

> sorry about the mistake~~english is really a problem,but to find the
> chinese IDL resource even worse
> i mean the visual angle. i'm not using iTools,just the IDLgrVolume
> object
> i want to overlook the cube, but the view point always be the center
> of the view

Well, yes, object graphics can be pretty low-level and
setting up the viewport and the rotation necessary to
see something can be a problem. We have the same problem
with surfaces, for example. Perhaps you can learn something
about how it is done by examining the code in a program
like Simple_Surface:

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

There the surface rotations for the surface model look
like this:

; Rotate the surface model to the standard surface view.
thisModel->Rotate,[1,0,0], -90 ; To get the Z-axis vertical.
thisModel->Rotate,[0,1,0], 30 ; Rotate it slightly to the right.
thisModel->Rotate,[1,0,0], 30 ; Rotate it down slightly.

Note that the viewport has been previously set-up to put
the center of rotation in the center of the window. If it
is somewhere else, you will have to translate the object to the center,
perform the rotation, and translate it back to where you want it.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Pleasant Workbench Surprise
Next Topic: interpolation problem

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

Current Time: Sun Oct 12 05:39:30 PDT 2025

Total time taken to generate the page: 1.52035 seconds