01-08-2014 05:57 PM
Hello,
Let's say I have a *.wrl file which contains a room drawing. Take into account that I know how manipulate the SceneObject and display it into 3D picture. Is it possible to position different temperature indicators (numerical indicators) in the 3D Picture indicator, so that when I move around the room in the 3D picture the indicators follow there respective position (while updating their values) ?
Thanks,
Michel
Solved! Go to Solution.
01-09-2014 10:56 AM - edited 01-09-2014 11:00 AM
A trick that I know is to get the image of the control you want and apply texture to a plane. I did this below:
In short what I did is:
1. Create a room using a box. Make it transparent and blend with other objects
2. Create a plane (a box with y = 0.001) and apply texture to it. The texture is the image of the control (the temperature control)
3. Do the scene and change the image (texture) as the value changes
4. close references.
Here is the code as a reference (using LV 2013). Does that work for you?
01-09-2014 12:52 PM
Hello Barp,
This looks good, can you save it in LabVIEW 2012 so I can review the code?
Thanks,
Michel
01-09-2014 02:57 PM
01-09-2014 09:27 PM
Thanks Jim,
But there is no 3D Picture in vi.lib in LabVIEW 2012 😞 so it's broken. As an example there is no "Set Drawing Style.vi" in LV2012.
Michel
01-10-2014 09:45 AM
In 2013, we instroduced several VIs for the 3D palette that will make the code very 'readable', but the functionality is the same.
See code in attachment using the 2012 API.... not as elegant as 2013, but should work the same....
08-17-2015 10:40 AM
Very neat example, thank you.