idl flythru [message #53996] |
Wed, 16 May 2007 01:43  |
prahladvkumar
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
Dear All,
I am planning for a 3dflythru using IDL.
I am having satellite data and the corresponding DEM.
Now, I want to overlay the data on the DEM and have a 3Dflythru.
The controls are to be made using keyboard instead of mouse.
Please do the needful.
Cheers,
Prahlad V
|
|
|
Re: idl flythru [message #54040 is a reply to message #53996] |
Thu, 17 May 2007 21:34   |
prahladvkumar
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
On May 17, 8:22 am, David Fanning <n...@dfanning.com> wrote:
> prahladvku...@gmail.com writes:
>> I had seen this but i dont think that program will work for Keyboard
>> operations. My intension is to use up arrow, down arrow, left and
>> right arrow for direction change instead of mouse. Please help me.
>
> You are going to have to set the draw widget up to return
> keyboard events, rather than button events. Then just
> respond appropriately in your event handler to the
> different kinds of events.
>
> 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.")
David,
Can u give small example in this regard
Cheers,
Prahlad V
|
|
|
|
Re: idl flythru [message #54091 is a reply to message #53996] |
Wed, 23 May 2007 09:26   |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
> Thanks for the support u had given to me. I am very new to IDL. Can u
> just guide me how to use these programs for my application.
Unfortunately I can't. Too busy right now...
First, just try to get the cull-n-fly program to run. Download and
unzip everything into a single directory. This includes the .dlm and
.dll files as well. Set this directory as your working directory (I do
this by checking "Change Directory on Open" on the general preferences
tab then opening the program I wish to run). Then run the program.
If it doesn't run, look closely at the errors. Most likely you'll be
either missing procedures or you'll have a path problem.
> I am having Ikonos data and DEM of the same. I want to have flythru
> and control the path using keyboard controls.
You should be able to do this (relatively) easily.
At line 501 (in camdemo_di_cullnfly.pro, will be slightly different in
the non-direct input version) you'll see the comment:
; Create something to look at...
All of the code from this point down to line 577 creates what you see
when the application runs. You'll replace that with an IDLgrSurface
object representing your DEM. You'll need to study the code a bit,
specifically how things are added to the camera (view) and lighting.
Since your new to IDL, take baby steps. Before you write a fly-thru
application, make sure you can simply create the IDLgrSurface model and
display it. Use XOBJVIEW to display it. XOBJVIEW requires that your
surface be placed in a model before display:
oSurface = OBJ_NEW('IDLgrSurface', demdata)
oModel = OBJ_NEW('IDLgrModel')
oModel -> Add, oSurface
XOBJVIEW, oModel, /BLOCK
OBJ_DESTROY, oModel
Once you can display the surface, then concentrate on adding it to the
cullnfly application.
Start slowly. Make small changes and observe their effect. And work
thru it step by step. And READ THE IDL DOCS. You can learn a lot!
-Rick
|
|
|
Re: idl flythru [message #54103 is a reply to message #53996] |
Tue, 22 May 2007 00:59   |
prahladvkumar
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
On May 22, 2:28 am, Rick Towler <rick.tow...@nomail.noaa.gov> wrote:
> Sorry to come in late on this, I was on holiday...
>
> Don't listen to David on this one. Unless they have upgraded this demo,
> d_flythru.pro is a horrid "flythru" application (apologies to the
> author.) Maybe I am a bad pilot, but I couldn't fly using that
> interface to save my life.
>
> O.K. Maybe my code is horrid too, but to have a natural interface to
> anyflythruyou'll need a camera system to transform your surface
> accordingly and my code is at least a start:
>
> http://www.acoustics.washington.edu/~towler/RHTgrCamera.html
>
> There is a full blownflythrudemo included in the RHTgrCamera package,
> camdemo_cullnfly.pro. If you're on win32, consider the directInput
> version of this program found here:
>
> http://www.acoustics.washington.edu/~towler/directInputDLM.h tml
>
> WIDGET_DRAW now handles mouse wheel events which was the big advantage
> of my directInput DLM but I still find it is smoother overall.
>
> -Rick
>
>
>
> prahladvku...@gmail.com wrote:
>> Dear All,
>
>> I am planning for a 3dflythru using IDL.
>> I am having satellite data and the corresponding DEM.
>> Now, I want to overlay the data on the DEM and have a 3Dflythru.
>> The controls are to be made using keyboard instead of mouse.
>
>> Please do the needful.
>
>> Cheers,
>> PrahladV- Hide quoted text -
>
> - Show quoted text -
Dear Rick,
Thanks for the support u had given to me. I am very new to IDL. Can u
just guide me how to use these programs for my application.
I am having Ikonos data and DEM of the same. I want to have flythru
and control the path using keyboard controls.
Please do the needful.
Cheers,
Prahlad V
|
|
|
Re: idl flythru [message #54110 is a reply to message #53996] |
Mon, 21 May 2007 14:28   |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
Sorry to come in late on this, I was on holiday...
Don't listen to David on this one. Unless they have upgraded this demo,
d_flythru.pro is a horrid "flythru" application (apologies to the
author.) Maybe I am a bad pilot, but I couldn't fly using that
interface to save my life.
O.K. Maybe my code is horrid too, but to have a natural interface to
any flythru you'll need a camera system to transform your surface
accordingly and my code is at least a start:
http://www.acoustics.washington.edu/~towler/RHTgrCamera.html
There is a full blown flythru demo included in the RHTgrCamera package,
camdemo_cullnfly.pro. If you're on win32, consider the directInput
version of this program found here:
http://www.acoustics.washington.edu/~towler/directInputDLM.h tml
WIDGET_DRAW now handles mouse wheel events which was the big advantage
of my directInput DLM but I still find it is smoother overall.
-Rick
prahladvkumar@gmail.com wrote:
> Dear All,
>
> I am planning for a 3dflythru using IDL.
> I am having satellite data and the corresponding DEM.
> Now, I want to overlay the data on the DEM and have a 3Dflythru.
> The controls are to be made using keyboard instead of mouse.
>
> Please do the needful.
>
> Cheers,
> Prahlad V
>
|
|
|
Re: idl flythru [message #54139 is a reply to message #54040] |
Thu, 17 May 2007 22:09   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
prahladvkumar@gmail.com writes:
> Can u give small example in this regard
Well, sure.
;**********************************************************
PRO Test_Draw_Events, event
IF event.press NE 1 THEN RETURN
CASE event.key OF
5: Print, 'Left Arrow Key'
6: Print, 'Right Arrow Key'
7: Print, 'Up Arrow Key'
8: Print, 'Down Arrow Key'
ELSE:
ENDCASE
END
PRO test
tlb = Widget_Base()
draw = Widget_Draw(tlb, xsize=200, ysize=200, $
/KeyBoard_Events, Event_Pro='Test_Draw_Events')
Widget_Control, tlb, /Realize
XManager, 'test', tlb, /No_Block
Widget_Control, draw, /Input_Focus
END
;**********************************************************
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.")
|
|
|
Re: idl flythru [message #54288 is a reply to message #54091] |
Tue, 29 May 2007 04:00   |
prahladvkumar
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
On May 23, 9:26 pm, Rick Towler <rick.tow...@nomail.noaa.gov> wrote:
>> Thanks for the support u had given to me. I am very new toIDL. Can u
>> just guide me how to use these programs for my application.
>
> Unfortunately I can't. Too busy right now...
>
> First, just try to get the cull-n-fly program to run. Download and
> unzip everything into a single directory. This includes the .dlm and
> .dll files as well. Set this directory as your working directory (I do
> this by checking "Change Directory on Open" on the general preferences
> tab then opening the program I wish to run). Then run the program.
>
> If it doesn't run, look closely at the errors. Most likely you'll be
> either missing procedures or you'll have a path problem.
>
>> I am having Ikonos data and DEM of the same. I want to haveflythru
>> and control the path using keyboard controls.
>
> You should be able to do this (relatively) easily.
>
> At line 501 (in camdemo_di_cullnfly.pro, will be slightly different in
> the non-direct input version) you'll see the comment:
>
> ; Create something to look at...
>
> All of the code from this point down to line 577 creates what you see
> when the application runs. You'll replace that with an IDLgrSurface
> object representing your DEM. You'll need to study the code a bit,
> specifically how things are added to the camera (view) and lighting.
>
> Since your new toIDL, take baby steps. Before you write a fly-thru
> application, make sure you can simply create the IDLgrSurface model and
> display it. Use XOBJVIEW to display it. XOBJVIEW requires that your
> surface be placed in a model before display:
>
> oSurface = OBJ_NEW('IDLgrSurface', demdata)
> oModel = OBJ_NEW('IDLgrModel')
> oModel -> Add, oSurface
>
> XOBJVIEW, oModel, /BLOCK
>
> OBJ_DESTROY, oModel
>
> Once you can display the surface, then concentrate on adding it to the
> cullnfly application.
>
> Start slowly. Make small changes and observe their effect. And work
> thru it step by step. And READ THEIDLDOCS. You can learn a lot!
>
> -Rick
Thank you very much rick.
You had done a gr8 help to me. Now i am not getting any errors but
while running the probram i am getting memory error.
Please do the needful
Regards,
Prahlad V
|
|
|
Re: idl flythru [message #54326 is a reply to message #53996] |
Tue, 05 June 2007 21:28  |
prahladvkumar
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
On Jun 5, 11:39 pm, Rick Towler <rick.tow...@nomail.noaa.gov> wrote:
>> Dear Rick,
>
>> I tried to run the "camdemo_di_cullnfly.pro" program i am facing some
>> problem at "diID = di_InitInterface()". Please do the needful.
>
> What OS?
> What version of IDL?
>
> As I mentioned, the directInput dlm is windows only. Either you aren't
> running IDL on windows or you will need to recompile the directInput dlm
> for your OS+IDL combination.
>
> I suggest trying the non-directInput version of this program. I posted
> the link in a prior email.
>
> -Rick
Dear Rick,
I tried to load the .dlm through command line of idl even then i am
getting the same error message.
My operating system is WindowsXP and version of IDL is 6.3.
Please suggest me a solution, I will be very thankful to u.
Cheers,
Prahlad V
|
|
|
Re: idl flythru [message #54331 is a reply to message #53996] |
Tue, 05 June 2007 11:39  |
Rick Towler
Messages: 821 Registered: August 1998
|
Senior Member |
|
|
> Dear Rick,
>
> I tried to run the "camdemo_di_cullnfly.pro" program i am facing some
> problem at "diID = di_InitInterface()". Please do the needful.
What OS?
What version of IDL?
As I mentioned, the directInput dlm is windows only. Either you aren't
running IDL on windows or you will need to recompile the directInput dlm
for your OS+IDL combination.
I suggest trying the non-directInput version of this program. I posted
the link in a prior email.
-Rick
|
|
|
Re: idl flythru [message #54339 is a reply to message #54091] |
Tue, 05 June 2007 01:14  |
prahladvkumar
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
On May 23, 9:26 pm, Rick Towler <rick.tow...@nomail.noaa.gov> wrote:
>> Thanks for the support u had given to me. I am very new to IDL. Can u
>> just guide me how to use these programs for my application.
>
> Unfortunately I can't. Too busy right now...
>
> First, just try to get the cull-n-fly program to run. Download and
> unzip everything into a single directory. This includes the .dlm and
> .dll files as well. Set this directory as your working directory (I do
> this by checking "Change Directory on Open" on the general preferences
> tab then opening the program I wish to run). Then run the program.
>
> If it doesn't run, look closely at the errors. Most likely you'll be
> either missing procedures or you'll have a path problem.
>
>> I am having Ikonos data and DEM of the same. I want to haveflythru
>> and control the path using keyboard controls.
>
> You should be able to do this (relatively) easily.
>
> At line 501 (in camdemo_di_cullnfly.pro, will be slightly different in
> the non-direct input version) you'll see the comment:
>
> ; Create something to look at...
>
> All of the code from this point down to line 577 creates what you see
> when the application runs. You'll replace that with an IDLgrSurface
> object representing your DEM. You'll need to study the code a bit,
> specifically how things are added to the camera (view) and lighting.
>
> Since your new to IDL, take baby steps. Before you write a fly-thru
> application, make sure you can simply create the IDLgrSurface model and
> display it. Use XOBJVIEW to display it. XOBJVIEW requires that your
> surface be placed in a model before display:
>
> oSurface = OBJ_NEW('IDLgrSurface', demdata)
> oModel = OBJ_NEW('IDLgrModel')
> oModel -> Add, oSurface
>
> XOBJVIEW, oModel, /BLOCK
>
> OBJ_DESTROY, oModel
>
> Once you can display the surface, then concentrate on adding it to the
> cullnfly application.
>
> Start slowly. Make small changes and observe their effect. And work
> thru it step by step. And READ THE IDL DOCS. You can learn a lot!
>
> -Rick
Dear Rick,
I think there is some problem with the .dll or .dlm file can you
please send them.
Prahlad V
|
|
|
Re: idl flythru [message #54340 is a reply to message #54091] |
Tue, 05 June 2007 00:06  |
prahladvkumar
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
On May 23, 9:26 pm, Rick Towler <rick.tow...@nomail.noaa.gov> wrote:
>> Thanks for the support u had given to me. I am very new to IDL. Can u
>> just guide me how to use these programs for my application.
>
> Unfortunately I can't. Too busy right now...
>
> First, just try to get the cull-n-fly program to run. Download and
> unzip everything into a single directory. This includes the .dlm and
> .dll files as well. Set this directory as your working directory (I do
> this by checking "Change Directory on Open" on the general preferences
> tab then opening the program I wish to run). Then run the program.
>
> If it doesn't run, look closely at the errors. Most likely you'll be
> either missing procedures or you'll have a path problem.
>
>> I am having Ikonos data and DEM of the same. I want to haveflythru
>> and control the path using keyboard controls.
>
> You should be able to do this (relatively) easily.
>
> At line 501 (in camdemo_di_cullnfly.pro, will be slightly different in
> the non-direct input version) you'll see the comment:
>
> ; Create something to look at...
>
> All of the code from this point down to line 577 creates what you see
> when the application runs. You'll replace that with an IDLgrSurface
> object representing your DEM. You'll need to study the code a bit,
> specifically how things are added to the camera (view) and lighting.
>
> Since your new to IDL, take baby steps. Before you write a fly-thru
> application, make sure you can simply create the IDLgrSurface model and
> display it. Use XOBJVIEW to display it. XOBJVIEW requires that your
> surface be placed in a model before display:
>
> oSurface = OBJ_NEW('IDLgrSurface', demdata)
> oModel = OBJ_NEW('IDLgrModel')
> oModel -> Add, oSurface
>
> XOBJVIEW, oModel, /BLOCK
>
> OBJ_DESTROY, oModel
>
> Once you can display the surface, then concentrate on adding it to the
> cullnfly application.
>
> Start slowly. Make small changes and observe their effect. And work
> thru it step by step. And READ THE IDL DOCS. You can learn a lot!
>
> -Rick
Rick,
the error i am facing is "instruction at 0x7c157976 referenced memory
at 0x00000000" the memory could not be "read".
The system is getting crashed and that too at "diID =
di_InitInterface()"
please do the needful.
Regards,
Prahlad V
|
|
|
Re: idl flythru [message #54342 is a reply to message #54091] |
Mon, 04 June 2007 21:35  |
prahladvkumar
Messages: 18 Registered: March 2007
|
Junior Member |
|
|
On May 23, 9:26 pm, Rick Towler <rick.tow...@nomail.noaa.gov> wrote:
>> Thanks for the support u had given to me. I am very new to IDL. Can u
>> just guide me how to use these programs for my application.
>
> Unfortunately I can't. Too busy right now...
>
> First, just try to get the cull-n-fly program to run. Download and
> unzip everything into a single directory. This includes the .dlm and
> .dll files as well. Set this directory as your working directory (I do
> this by checking "Change Directory on Open" on the general preferences
> tab then opening the program I wish to run). Then run the program.
>
> If it doesn't run, look closely at the errors. Most likely you'll be
> either missing procedures or you'll have a path problem.
>
>> I am having Ikonos data and DEM of the same. I want to haveflythru
>> and control the path using keyboard controls.
>
> You should be able to do this (relatively) easily.
>
> At line 501 (in camdemo_di_cullnfly.pro, will be slightly different in
> the non-direct input version) you'll see the comment:
>
> ; Create something to look at...
>
> All of the code from this point down to line 577 creates what you see
> when the application runs. You'll replace that with an IDLgrSurface
> object representing your DEM. You'll need to study the code a bit,
> specifically how things are added to the camera (view) and lighting.
>
> Since your new to IDL, take baby steps. Before you write a fly-thru
> application, make sure you can simply create the IDLgrSurface model and
> display it. Use XOBJVIEW to display it. XOBJVIEW requires that your
> surface be placed in a model before display:
>
> oSurface = OBJ_NEW('IDLgrSurface', demdata)
> oModel = OBJ_NEW('IDLgrModel')
> oModel -> Add, oSurface
>
> XOBJVIEW, oModel, /BLOCK
>
> OBJ_DESTROY, oModel
>
> Once you can display the surface, then concentrate on adding it to the
> cullnfly application.
>
> Start slowly. Make small changes and observe their effect. And work
> thru it step by step. And READ THE IDL DOCS. You can learn a lot!
>
> -Rick
Dear Rick,
I tried to run the "camdemo_di_cullnfly.pro" program i am facing some
problem at "diID = di_InitInterface()". Please do the needful.
Regards,
Prahlad V
|
|
|