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

Home » Public Forums » archive » Using trackball to rotate an image
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
Using trackball to rotate an image [message #33116] Mon, 02 December 2002 20:59 Go to next message
pushyar is currently offline  pushyar
Messages: 9
Registered: October 2002
Junior Member
HI..
I could rotate a cube using trackball in all directions. I want to
rotate a 3D image inside a cube. When i rotate the cube, the image
inside the cube should also rotate. I want to do this using trackball
object.
Can anybody tell me if there's a way to set the cube as transparent
and the 3D image inside the cube to rotate along with the cube?

Please help me.

Cheers,
Akhila.
Re: Using trackball to rotate an image [message #33186 is a reply to message #33116] Thu, 12 December 2002 17:12 Go to previous messageGo to next message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
When you first posted this question I responded with a few methods using
object graphics. If you want true 3d rotation of an image object graphics
is your only option. Why don't you revisit my first reply and go from
there?

-Rick


"Pushya" <pushyar@yahoo.com> wrote in message
news:39e6dba3.0212111209.45916d4e@posting.google.com...
> HI.
> I tried to rotate the 3D image instead of enclosing it in a cube and
> rotating the cube. I manage to rotate only the 2D surface. The steps i
> followed are:
> 1. Opened a file with Matrix - ixjxk
> 2. Displayed the 3D image with the Shade_volume and Scale3 function.
> 3. This 3D image obtained after step 2 (i.e. display purpose image)
> is used as an image for the trackball operation.
> 4. i used my mouse to move over that image and as a result i see the
> 2D displayed version rotating. i.e, it is a flat rotation not a 3D
> rotation where i can see the other side of the image.
> Can anybody tell me where i am wrong. I am not able to figure out
> where i am wrong. Please help me ASAP.
>
> Cheers,
> Pushya
>
>
>
> pushyar@yahoo.com (Pushya) wrote in message
news:<39e6dba3.0212022059.73dfe3ee@posting.google.com>...
>> HI..
>> I could rotate a cube using trackball in all directions. I want to
>> rotate a 3D image inside a cube. When i rotate the cube, the image
>> inside the cube should also rotate. I want to do this using trackball
>> object.
>> Can anybody tell me if there's a way to set the cube as transparent
>> and the 3D image inside the cube to rotate along with the cube?
>>
>> Please help me.
>>
>> Cheers,
>> Akhila.
Re: Using trackball to rotate an image [message #33212 is a reply to message #33116] Wed, 11 December 2002 12:09 Go to previous messageGo to next message
pushyar is currently offline  pushyar
Messages: 9
Registered: October 2002
Junior Member
HI.
I tried to rotate the 3D image instead of enclosing it in a cube and
rotating the cube. I manage to rotate only the 2D surface. The steps i
followed are:
1. Opened a file with Matrix - ixjxk
2. Displayed the 3D image with the Shade_volume and Scale3 function.
3. This 3D image obtained after step 2 (i.e. display purpose image)
is used as an image for the trackball operation.
4. i used my mouse to move over that image and as a result i see the
2D displayed version rotating. i.e, it is a flat rotation not a 3D
rotation where i can see the other side of the image.
Can anybody tell me where i am wrong. I am not able to figure out
where i am wrong. Please help me ASAP.

Cheers,
Pushya



pushyar@yahoo.com (Pushya) wrote in message news:<39e6dba3.0212022059.73dfe3ee@posting.google.com>...
> HI..
> I could rotate a cube using trackball in all directions. I want to
> rotate a 3D image inside a cube. When i rotate the cube, the image
> inside the cube should also rotate. I want to do this using trackball
> object.
> Can anybody tell me if there's a way to set the cube as transparent
> and the 3D image inside the cube to rotate along with the cube?
>
> Please help me.
>
> Cheers,
> Akhila.
Re: Using trackball to rotate an image [message #33325 is a reply to message #33186] Thu, 19 December 2002 07:52 Go to previous message
pushyar is currently offline  pushyar
Messages: 9
Registered: October 2002
Junior Member
Hi..
I finally did it. Thanks a lot for ur help Rick.

-Pushya

"Rick Towler" <rtowler@u.washington.edu> wrote in message news:<atbcbp$lca$1@nntp6.u.washington.edu>...
> When you first posted this question I responded with a few methods using
> object graphics. If you want true 3d rotation of an image object graphics
> is your only option. Why don't you revisit my first reply and go from
> there?
>
> -Rick
>
>
> "Pushya" <pushyar@yahoo.com> wrote in message
> news:39e6dba3.0212111209.45916d4e@posting.google.com...
>> HI.
>> I tried to rotate the 3D image instead of enclosing it in a cube and
>> rotating the cube. I manage to rotate only the 2D surface. The steps i
>> followed are:
>> 1. Opened a file with Matrix - ixjxk
>> 2. Displayed the 3D image with the Shade_volume and Scale3 function.
>> 3. This 3D image obtained after step 2 (i.e. display purpose image)
>> is used as an image for the trackball operation.
>> 4. i used my mouse to move over that image and as a result i see the
>> 2D displayed version rotating. i.e, it is a flat rotation not a 3D
>> rotation where i can see the other side of the image.
>> Can anybody tell me where i am wrong. I am not able to figure out
>> where i am wrong. Please help me ASAP.
>>
>> Cheers,
>> Pushya
>>
>>
>>
>> pushyar@yahoo.com (Pushya) wrote in message
> news:<39e6dba3.0212022059.73dfe3ee@posting.google.com>...
>>> HI..
>>> I could rotate a cube using trackball in all directions. I want to
>>> rotate a 3D image inside a cube. When i rotate the cube, the image
>>> inside the cube should also rotate. I want to do this using trackball
>>> object.
>>> Can anybody tell me if there's a way to set the cube as transparent
>>> and the 3D image inside the cube to rotate along with the cube?
>>>
>>> Please help me.
>>>
>>> Cheers,
>>> Akhila.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: System command with SPAWN procedure
Next Topic: Re: Another Windows Question Related to IDL

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

Current Time: Wed Oct 08 13:39:24 PDT 2025

Total time taken to generate the page: 0.00696 seconds