NI Home > Community > NI Discussion Forums

LabVIEW

Reply
Member
gokul2013
Posts: 14
0 Kudos

creating flexible object in 3d picture control toolkit

How to create a flexible 3d object using 3d picture control tool kit. I can rotate, translate and scale a object but i cannot make to bend it... Help me ?

Trusted Enthusiast
mikeporter
Posts: 4,717
0 Kudos

Re: creating flexible object in 3d picture control toolkit

There is no such thing as a flexible object. If you want the object shaped differently, draw it differently.

 

Mike...

At NI-Week Checkout: A Dataflow Approach to Object-Oriented Programming - TS2879.


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"Safe? Who said anything about 'safe'? 'Course he's not safe - but he is good..."
Member
alexderjuengere
Posts: 172
0 Kudos

Re: creating flexible object in 3d picture control toolkit

hi gokul2013,

 

with "bending" you mean to interacte with a 3d object e.g. a surface? This reminds me of an submission from the 2010's code contest:

 

https://decibel.ni.com/content/docs/DOC-13861

 

 

 

Regards,
Alex

~~~~~~~~~~~~~~~~
Labview 8.6 - Labview 2013
~~~~~~~~~~~~~~~~
Member
gokul2013
Posts: 14
0 Kudos

Re: creating flexible object in 3d picture control toolkit

Thank you for your kind reply Mr.Alex.

 

You reply was very helpfull to me.. I can do bending movement with what you had proposed in early reply.. For my application i need to make my object as flexible. Here i have attached my object file. Just i created a two box Objects. In that , I need to bend green coloured object as like in attached Picture file..

For this purpose what i need to do and how can i code the program..

Looking for your reply...

 

Regards

 

Gokul

Member
alexderjuengere
Posts: 172
0 Kudos

Re: creating flexible object in 3d picture control toolkit

[ Edited ]

Sorry, I don't know, because I haven't written the .vi which I linked in my earlier post.

 

My intention was to show, that Labview is capable of this task.

 

Regards,
Alex

 

 

~~~~~~~~~~~~~~~~
Labview 8.6 - Labview 2013
~~~~~~~~~~~~~~~~
Member
JKMM
Posts: 72
0 Kudos

Re: creating flexible object in 3d picture control toolkit

You can't do it with the 3D picture control unless you make your bending object out of a bunch of discrete shapes that you calculate the new positions of with each change in angle.  You'd essentially be building a low res rendering engine.  If you are looking for a way to do this, and are not tied to LabVIEW, you may want to look at something like Blender3D, an open source animation and game engine software package, where you can dynamically adjust shapes like this. 

 

You could make an animation in Blender to account for a bunch of discrete bend positions and export them as seperate STL files.   Then you could load the STL files into memory (or one at a time), and display the correct one based on the rotation value in a LabVIEW control.

 

Active Participant
Todd_Lesher
Posts: 383
0 Kudos

Re: creating flexible object in 3d picture control toolkit

Did you try vugie's example? It seems quite possible to redraw the green object with a different shape based on the mouse drag.