LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple 3D objetcs in Scene display

Hi,
 
I would like to know how to add multiple shapes to a picture scene. I can add one shape but the problem is that have no idea on how another shape can be added to the same scene display. I understand how to add multiple shapes to the display scene but i would like the user to be able to change both shapes and see the response there and then. Hopefully the example attached gives an idea. Any help would be much appreciated.
 
regards
Jim
0 Kudos
Message 1 of 6
(3,607 Views)
Hopefully this will help.
 
I think that the best way to do this would be to have a root object which you assign to your scene.  And then attach new objects to it.  Here is an example VI.
 
If you need more explaination, please let me know.
 
Jeff Peters
LabVIEW R & D
0 Kudos
Message 2 of 6
(3,592 Views)
Hi Jeff,
 
That not quite what i meant. I want to have three shapes where the user can change the colour, and radius for each of the shapes and see the change in real time. The example that i showed allows you to change the colour and radius and the user can see it changing. The example shows only one shape i want to have three shapes but each have seperate controls (colour, radius etc).
Thank you for the response.
 
Jim
0 Kudos
Message 3 of 6
(3,588 Views)
Mabye this is better?
 
Basically I build an array of cylinders and control the "active" one.
 
 
Jeff Peters
LabVIEW R & D
0 Kudos
Message 4 of 6
(3,581 Views)

Hi,

That is something like what i was after, i have two queries:

1: If i wanted to have a Cone shape instead of one of the cone shapes how would that be done.:

2: How would it be possible to be able to also control each shapes location seperately, so you could move a shape.

thanks for all the help.

0 Kudos
Message 5 of 6
(3,575 Views)
1: If i wanted to have a Cone shape instead of one of the cylinder shapes how would that be done.:
 
You could hold an array of geometries instead and then cast to the reference to a cone or cylinder and use the appropriate methods on it. 
 
2.  How would it be possible to be able to also control each shapes location seperately, so you could move a shape
 
This can get pretty complicated... You could have the user enter in some positional data or you could have them drag objects around.  Both will require you to use the Transformation methods on the scene obect that holds onto the geometry.
 
Jeff Peters
LabVIEW R & D
Message 6 of 6
(3,566 Views)