LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to fire events based on user clicks on a 3D model (imported as vrml) into a 3D picture control?

I have a LV application where I am importing a VRML file into LV's 3D picture control. Once the model is imported, I need to attach events to different sections of the 3D model so when the user clicks on each section, a particular event is fired which can be handled by LV. In other words, I need to know if the user clicks on specific portions of the 3D model and perform operations based on that. Is this possible with the 3D picture control toolkit? Currently I have LV version 8.2. Do I need to upgrade it to 8.5 before I can use this feature? If this is possible, any pointers to how (VIs or examples) would really help. I have already looked at the LV shipped example of Sun and rotating earth/moon.
 
Thanks a lot!
 
MZ2
0 Kudos
Message 1 of 4
(2,891 Views)
This feature is indeed new to 8.5.

You could try to convert the mouse coordinated back to objects, but it will be very hard. It will depend on your scene how hard, but you need to do (at least) some serious matrix conversions and ray tracing.

Regards,

Wiebe.
0 Kudos
Message 2 of 4
(2,881 Views)
>This feature is indeed new to 8.5.
Can you explain a bit more on what is possible in version 8.5? How easy it is to attach events to different sections of the 3D model? How easy it is to handle such events? I assume the events will fire even if the user rotates the 3D model via the camera control, right? Any limitations on the 3D model or what types of events are supported? If you have LV documentation describing this feature then that would be *very* helpful!
 
Thanks for your reply
 
MZ2
0 Kudos
Message 3 of 4
(2,861 Views)
I've seen this feature being demonstrated at NIWeek 2007. What I can remember from it, is that you enable the feature, and get a user event reference, which you wire to your event structure. There, you get an event with the name of the object that was clicked. Regardless how the scene was rotated or translated.


The exact method might be slightly different, but it was as easy as this.


Regards,


Wiebe.
0 Kudos
Message 4 of 4
(2,835 Views)