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

Home » Public Forums » archive » Texture image on a 3d curve: cgsurface and xobjview problems
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
Texture image on a 3d curve: cgsurface and xobjview problems [message #85887] Mon, 16 September 2013 11:02 Go to next message
Steve Daal is currently offline  Steve Daal
Messages: 13
Registered: October 2011
Junior Member
Hi all,

I have a 2D array (mountain elevation) and an image (trees,rocks,...) corresponding ot it. I need to overlap the image on the elevation information, along with the axis information and the capability of moving it around by the mouse in 3D.

Cgsurface (coyote's magic) seems to work well, however, I can't do anything with the mouse, nor rotating the axes from within the code (strange why this is not allowed). I am running a IDL 7.1, XQuarts 7.2.4, and already tried few terminal command remidies with no success fixing the cursor issue.

I see that xobjview works fine for my problem, however: no axis appear on the plot and th eimage is always in grey color!


Is there any know way to fix any of these problems? A third solution would be fine, too.

Please advise-thanks a lot for you help,
Steve
Re: Texture image on a 3d curve: cgsurface and xobjview problems [message #85888 is a reply to message #85887] Mon, 16 September 2013 11:06 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
steve.daal@gmail.com writes:

>
> Hi all,
>
> I have a 2D array (mountain elevation) and an image (trees,rocks,...) corresponding ot it. I need to overlap the image on the elevation information, along with the axis information and the capability of moving it around by the mouse in 3D.
>
> Cgsurface (coyote's magic) seems to work well, however, I can't do anything with the mouse, nor rotating the axes from within the code (strange why this is not allowed). I am running a IDL 7.1, XQuarts 7.2.4, and already tried few terminal command remidies with no success fixing the cursor issue.

Really!? This command certainly rotates around in my IDL 7 version!

cgSurface, cgDemoData(2), ZScale=0.5, Texture_Image=cgDemoData(7), $
CTable=1, /Brewer, /Reverse, Title='2D Image as Texture'

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Texture image on a 3d curve: cgsurface and xobjview problems [message #85889 is a reply to message #85888] Mon, 16 September 2013 11:20 Go to previous messageGo to next message
Steve Daal is currently offline  Steve Daal
Messages: 13
Registered: October 2011
Junior Member
On Monday, September 16, 2013 1:06:15 PM UTC-5, David Fanning wrote:
> steve.daal@gmail.com writes:
>
>
>
>>
>
>> Hi all,
>
>>
>
>> I have a 2D array (mountain elevation) and an image (trees,rocks,...) corresponding ot it. I need to overlap the image on the elevation information, along with the axis information and the capability of moving it around by the mouse in 3D.
>
>>
>
>> Cgsurface (coyote's magic) seems to work well, however, I can't do anything with the mouse, nor rotating the axes from within the code (strange why this is not allowed). I am running a IDL 7.1, XQuarts 7.2.4, and already tried few terminal command remidies with no success fixing the cursor issue.
>
>
>
> Really!? This command certainly rotates around in my IDL 7 version!
>
>
>
> cgSurface, cgDemoData(2), ZScale=0.5, Texture_Image=cgDemoData(7), $
>
> CTable=1, /Brewer, /Reverse, Title='2D Image as Texture'
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Hmmmm, here's an update:

When I run the command line you sent from the terminal window, it works well. We I paste it into the idl interface and run from there, the mouse cursor does not work!
could it be something in the IDL preferences, strange....

Steve
Re: Texture image on a 3d curve: cgsurface and xobjview problems [message #85891 is a reply to message #85889] Mon, 16 September 2013 11:25 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
steve.daal@gmail.com writes:

> When I run the command line you sent from the terminal window, it works well. We I paste it into the idl interface and run from there, the mouse cursor does not work!
> could it be something in the IDL preferences, strange....

What does "paste it into the IDL interface" mean? Maybe you have an
error in the interface you are not aware of. Try doing a "dot reset" in
the interface (are we talking about the Workbench here?) and see if that
helps:

IDL> .reset
IDL> cgSurface, cgDemodata(2)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Texture image on a 3d curve: cgsurface and xobjview problems [message #85892 is a reply to message #85889] Mon, 16 September 2013 11:28 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
steve.daal@gmail.com writes:

> When I run the command line you sent from the terminal window, it works well. We I paste it into the idl interface and run from there, the mouse cursor does not work!
> could it be something in the IDL preferences, strange....

Maybe this is the Mac cursor problem:

http://www.idlcoyote.com/misc_tips/cursor_on_mac.html
http://www.idlcoyote.com/misc_tips/maccursor.html

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Texture image on a 3d curve: cgsurface and xobjview problems [message #85894 is a reply to message #85889] Mon, 16 September 2013 11:31 Go to previous messageGo to next message
Steve Daal is currently offline  Steve Daal
Messages: 13
Registered: October 2011
Junior Member
On Monday, September 16, 2013 1:20:13 PM UTC-5, steve...@gmail.com wrote:
> On Monday, September 16, 2013 1:06:15 PM UTC-5, David Fanning wrote:
>
>> steve.daal@gmail.com writes:
>
>>
>
>>
>
>>
>
>>>
>
>>
>
>>> Hi all,
>
>>
>
>>>
>
>>
>
>>> I have a 2D array (mountain elevation) and an image (trees,rocks,...) corresponding ot it. I need to overlap the image on the elevation information, along with the axis information and the capability of moving it around by the mouse in 3D.
>
>>
>
>>>
>
>>
>
>>> Cgsurface (coyote's magic) seems to work well, however, I can't do anything with the mouse, nor rotating the axes from within the code (strange why this is not allowed). I am running a IDL 7.1, XQuarts 7.2.4, and already tried few terminal command remidies with no success fixing the cursor issue.
>
>>
>
>>
>
>>
>
>> Really!? This command certainly rotates around in my IDL 7 version!
>
>>
>
>>
>
>>
>
>> cgSurface, cgDemoData(2), ZScale=0.5, Texture_Image=cgDemoData(7), $
>
>>
>
>> CTable=1, /Brewer, /Reverse, Title='2D Image as Texture'
>
>>
>
>>
>
>>
>
>> Cheers,
>
>>
>
>>
>
>>
>
>> David
>
>>
>
>>
>
>>
>
>>
>
>>
>
>> --
>
>>
>
>> David Fanning, Ph.D.
>
>>
>
>> Fanning Software Consulting, Inc.
>
>>
>
>> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
>>
>
>> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
>
>
>
> Hmmmm, here's an update:
>
>
>
> When I run the command line you sent from the terminal window, it works well. We I paste it into the idl interface and run from there, the mouse cursor does not work!
>
> could it be something in the IDL preferences, strange....
>
>
>
> Steve






UPDATE:

Very strange, but I found the issue. I have a breakpoint after the cgsurface command. When I remove that, it works. I though IDL works on a line by line basis. Oh man, little confusing...

Steve
Re: Texture image on a 3d curve: cgsurface and xobjview problems [message #85895 is a reply to message #85894] Mon, 16 September 2013 11:35 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
steve.daal@gmail.com writes:

> Very strange, but I found the issue. I have a breakpoint after the cgsurface command. When I remove that, it works. I though IDL works on a line by line basis. Oh man, little confusing...

When you STOP in IDL, everything stops, including widget event
processing. Chris reports that he has changed this behavior for IDL 8.3.
It will be interesting to see what unforeseen consequences that brings,
but it is probably a step in the right direction, since all the function
graphics routines will benefit from this change in behavior.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: Texture image on a 3d curve: cgsurface and xobjview problems [message #85896 is a reply to message #85895] Mon, 16 September 2013 11:40 Go to previous message
Steve Daal is currently offline  Steve Daal
Messages: 13
Registered: October 2011
Junior Member
On Monday, September 16, 2013 1:35:01 PM UTC-5, David Fanning wrote:
> steve.daal@gmail.com writes:
>
>
>
>> Very strange, but I found the issue. I have a breakpoint after the cgsurface command. When I remove that, it works. I though IDL works on a line by line basis. Oh man, little confusing...
>
>
>
> When you STOP in IDL, everything stops, including widget event
>
> processing. Chris reports that he has changed this behavior for IDL 8.3.
>
> It will be interesting to see what unforeseen consequences that brings,
>
> but it is probably a step in the right direction, since all the function
>
> graphics routines will benefit from this change in behavior.
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Thanks for info, this would indeed be an improvement and a change in the right direction.

Steve
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Count duplicate elements in an array but keep their order!
Next Topic: Different charsize for axis title and labels?

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

Current Time: Wed Oct 08 15:06:16 PDT 2025

Total time taken to generate the page: 0.00625 seconds