# LabVIEW

cancel
Showing results for
Did you mean:

## 3d Picture Control Rotation

I have loaded and are displaying an STL file (created in Autodesk Inventor) using the 3D Picture Control. However, although I can rotate about any of the principal axis by a specified amount or a mixture of the axis (using Set Rotation), I am unable to rotate by independent amounts of an angle in each axis, i.e I would like to rotate about the X axis by 45 degrees and say the Z axis by 10 degrees. Does anybody know how this can be achieved? Because it would seem that subsequent ‘Set Rotations’ reset to the original orientation before applying the new specified rotation or axis.

Message 1 of 12
(6,053 Views)

## Re: 3d Picture Control Rotation

It’s ok, I figured it out. I used ‘rotation’ instead of ‘set rotation’ but enclosed it within a case structure, which is triggered by a Boolean button (switch to latched). I can therefore set the angle and axis of rotation independently now.

Message 2 of 12
(6,042 Views)

## Re: 3d Picture Control Rotation

Do you know how to change the location of the rotation axis, of the imported object?

for example, when i imported an ASE of STL file format, and then rotate it about x axis 45 degree, but the location of the coordinate origin is in the middle of the object, i want to relocate the location of the coordinate origin to the end of the object, so when i rotate it will rotate according to my desire. thanks.

-Just a student-
Message 3 of 12
(5,876 Views)

## Re: 3d Picture Control Rotation

Hi,

First you need to translate to the point of rotation. Then you need to use Rotate Object to do the rotation, not Set Rotation. If you use Rotate Object, it will rotate around the origin or the scene (0,0,0). If you use Set Rotation, it will rotate around the origin of the object. Don't know why.

Regards,

Wiebe.
Message 4 of 12
(5,860 Views)

## Re: 3d Picture Control Rotation

Dear marcbrook

Could you please help me by sending me an example of how to correctly load and display an STL file? I am stranded and cannot seem to succeed. The 3D picture control always remains black.

Thank you so much in advance

Kind Regards
gigiozzi

Message 5 of 12
(5,675 Views)

## Re: 3d Picture Control Rotation

Gigiozzi,

It sounds like you just need to use a property node to change the background color and perhaps an invoke node to rotate the set and make your object viewable. The following community example might help you out: http://decibel.ni.com/content/docs/DOC-5691

Message Edited by Will S. on 07-20-2009 09:24 PM
Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com
Message 6 of 12
(5,252 Views)

## Re: 3d Picture Control Rotation

hi Will S.

the link you've given is not working.

do i need to register in  NI Developer Zone Community to access this example?

thanks

Kudos always welcome for helpful posts 🙂
Message 7 of 12
(5,165 Views)

## Re: 3d Picture Control Rotation

RENN wrote:

the link you've given is not working.

do i need to register in  NI Developer Zone Community to access this example?

Link not working means what is exactly happening? Any browser problem for you? Post in detail.

Mathan

Message 8 of 12
(5,163 Views)

## Re: 3d Picture Control Rotation

instead of the picture i just see the name of the picture.

Kudos always welcome for helpful posts 🙂
Message 9 of 12
(5,146 Views)

## Re: 3d Picture Control Rotation

You are right am also not able to view the image. Something got screwed up or maybe our browser issue am using IE8 RC1

Mathan

Message 10 of 12
(5,144 Views)