annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

3d scene 3d object

Hi all,

 

I have this problem: I'm creating a functional global variable that creates a 3d scene with x,y,z axes, then updates it adding 110 little 3d spheres. My problem is that when I create the scene with axes the result is a scene node refnum, and so I cannot add to this scene the spheres, because their property is scene object refnum. How could I manage it?

 

Here's the vi. The main is called Main Test.vi

 

Thank you!

 

Luke

0 Kudos
Messaggio 1 di 12
4.885Visualizzazioni

Are you sure your code isn't casting to a SceneNode somewhere.  I thought it should be a SceneObject type.... Check the terminal on your global.....

0 Kudos
Messaggio 2 di 12
4.876Visualizzazioni
Pay Attention to your SubVI's: SceneObject is coerced to SceneNode refnum when wired to 3D Picture
0 Kudos
Messaggio 3 di 12
4.871Visualizzazioni

Like, for example?

0 Kudos
Messaggio 4 di 12
4.870Visualizzazioni

 

 

 

 

0 Kudos
Messaggio 5 di 12
4.865Visualizzazioni

Yes, sure, but I have to produce a 3d picture, not a scene object! How can I do?

0 Kudos
Messaggio 6 di 12
4.861Visualizzazioni

They've answered your question. You already know how to produce a 3D picture from a sceneobject (you're following the 3D solar system example vi that ships with LV, right?)

0 Kudos
Messaggio 7 di 12
4.844Visualizzazioni

No, I'm not following that example.

I don't know how to solve the coercitions...

0 Kudos
Messaggio 8 di 12
4.837Visualizzazioni

Instead of having a 3D picture as a terminal on your sub-VI right-click the wire from the axis and select "Create Indocator".  then delete the 3D picture on your sub-VI and use the newly-created control instead.

 

Shane.

0 Kudos
Messaggio 9 di 12
4.831Visualizzazioni

Ok, but it creates a scene object, not a 3d picture... ok, I could use only scene objects, but then I have to "convert" them into a 3d picture, and I don't know how to do this..! 🙂

0 Kudos
Messaggio 10 di 12
4.828Visualizzazioni