Example of 3D picture control

Hi all

I recently (like less than a month ago) came across a post from one of the engineers OR. It is an implementation of a game like asteroids 3D with a spaceship fly around and one layer of stars scrolling below.

Try try try and I can't find it on the forum, someone knows where it can live?

OK found!

LabVIEW 3D explore game

http://decibel.NI.com/content/docs/doc-3372

Tags: NI Software

Similar Questions

  • What is the most important difference between 3D Picture control and controlling the display of Simulator

    I want to create a simulation of 3D on the front panel, and I see that we can use a 3D image control or a display of Simulator control. It seems that each of them can be used at the same position. What is the most important difference between 3D Picture control and display of Simulator?

    Hi sfh1,

    You are right, I found examples of Robotics that use 3D photo control and display Simulator control to display a scene 3D on the front panel. After further research, it seems that control the display of Simulator adds additional features compared to the 3D picture control. The control displays Simulator allows the user to right-click control during execution and change the background color, draw fashion, draw contact, view the ID of robot, display sensor data, suspension of service Simulator and reset service Simulator.

    More in depth on these options and the display of control Simulator can be found here:

    http://zone.NI.com/reference/en-XX/help/372983D-01/lvrobogsm/robo_controls_concepts/

    If you would like more information on the picture here 3D control is another resource:

    http://www.NI.com/white-paper/3170/en/#toc2

    Kind regards

  • Search for alternative without GSO to 3D Picture Control

    Hello!

    By default, the 3D picture control is broken/non functional on Dell laptops that my company to buy things.  All these notebooks have Intel HD Graphics chipsets. Disabling the device driver Intel (in Device Manager) corrects the image 3D control.  These laptops now needs to use a device that only requires an Open GL or Direct X - available if the Intel HD Graphics driver is enabled.

    My understanding is that the 3D picture control is based on "Open scene Graphics.

    All 3D rendering controls are based on the same version of OSG?

    What happens under LabVIEW 2011.

    If anyone knows if this has been fixed, great!

    I'll probably try install LV2014 and compile an EXE test just to verify this.

    See you soon!

    I have a Latitude E6520 with Intel HD Graphics (active) and I am able to run the sample shipping model of Solar System.VI 3D without any problem.  I can manipulate the camera, etc.

    Win 7-64, LV 2013

  • LabVIEW picture control - many updates - memory problem

    Hello

    I have little experience with LabVIEW and am currently using a picture control in one of my applications.

    The idea is that some areas (rectangles) inside the image control that is updated all the time with different colors. (according to a parameters measured)

    I have a large loop that takes a shift register that contains the image control.

    I noticed that the operations of different 'draw the Rectangle' I am the scene are piling up so the memory continues to increase...

    I did a small sample program that demonstrates this behavior.

    I want to update the image all the time in simple control. How can I ensure that memory does not get stored? Are there functions with which I can replace a portion of the image control with a new pixel values rather than simply add these new values each time for the image control?

    Thank you in advance for your help!

    Hi k_tunsten,

    Just remove the register shift. The result is the same, but the performance is much better and will not increase the memory.

    OK this isn't really the same thing, but the indicator buffer puts the old image, so that it looks the same.

    It will be useful.

    Mike

  • Programmatically paste an image from the Clipboard into the LabVIEW picture control

    Does anyone know how to paste the image residing in the Windows Clipboard in a LabVIEW picture control programmatically?

    There is a method of the Application class that gets the image to the Clipboard. He was deprived in previous versions, but it has been made public in 2012, so I guess that this also works very well in older versions. At least in never gave me problems with my limited experience with it:

  • Model SolidWorks coupling question in 3D Picture control

    Hello

    I followed example LQR and linear inverted pendulum... .or we can import Solidworks model in Labview and have our own control...

    SCARA, I did and I am able to access each part... but I have still a few mating issues with individual part...

    Please take a look at VI I joined and see how Arm1, Arm2 and ZArm doesnot follow Parent child relationship.

    As I looked andgot help from the forums... I will get it this time too...

    Thanks in advance...

    For another benefit, this issue has been resolved on another site.

  • Example of screen remote control

    Dear Adobe,

    Would you be kind enough to provide the code example to use the remote control feature? Because here the methods http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/collaboration/ScreenShareSubscribe rComplex.html startControlling() and stopControlling() are not documented.

    Thank you!

    Hello

    Sample code for the ScreenShare control. Run a simple Subscriber at one end and the code below on a different ending to test ScreenShare controlling.

    We would change the docs to provide more information. Thanks for bringing it to our notice.

     
    
    
         
              
         
         
         
              
           
    
    
    
  • IMAQ (deletion by default) picture control

    I have a problem with the image imaq vision control.

    I set a default image for the development for a "imaq image control".

    Now the default image is no longer needed and I want to remove the default reset of the control to a blank image.

    How can I reset the default value of 'control imaq image' to an empty image?

    I have about 20 Vi with controls with default images imaq image!

    It must be possible to empty the image with a click of the mouse.

    As an empty array-> table

    I don't really want this progmaticaly!

  • LR 5.3 will read the Nikon picture controls applied to RAW files in camera?

    I've never used image controls on my D4, because my understanding is that, even if they are integrated in the RAW files in camera, only Nikon software reads the data.  Anyone can check this condition for me?  If my LR software will read these settings, then I would start to experiment a little!

    No, it's the owner includes converter that only Nikon metadata.

  • Open a disk image and trimming for a picture control

    Hi people,

    I try to let my users (in a browser) to select/open a disk file (image type) so that they can see and then save it to the server.  I can use the FileReference object very well and load its 'result' directly in a MX:Image control.  However, before I do that I want to crop the selected image square.  I also want to resize the image down, but that will come later, once I get the job of cropping.

    I'm essentially taking the FileReference result bytearray and conversion to a BitmapData object.  Then I 'extract' a place of this BitmapData object data in a new BitmapData object.  Then I need to get * that * BitmapData object in the mx:image control.  I tried to use a Bitmap of the to do, but the mx:image that results, while the 'companies' displays correctly, as a white Virgin region.  Throughout, the variables seem to be "complete" data and seem to have developed properly.  I looked at a few sites that show images cropping and copies, but they always start with images 'preload '.  I modeled my code after them, if necessary.

    Here is my code:

    This is called when the user clicks a button to "search for a file on disk.

    private function setPhoto (): void
    {
    create the instance of FileReference
    _fileRef = new FileReference();

    _fileRef.addEventListener (Event.SELECT, onFileSelected);

    Look for the file has been opened
    _fileRef.addEventListener (Event.COMPLETE, onFileLoaded);

    var arr:Array = [];
    arr.push (new FileFilter ("Images", ".gif"; *.JPEG; *.jpg, *.png");
    _fileRef.browse (arr); Then let go and leave the event managers treat the result...

    }

    private void onFileSelected(evt:Event):void
    {
    _fileRef.load (); the result of the "load" will be managed by the Manager of 'complete '.
    }

    private void onFileLoaded(evt:Event):void
    {
    var tempLoader:Loader = new Loader();
    tempLoader.loadBytes (_fileRef.data);
    tempLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, onLoaderComplete);

    imgPhoto.source = _fileRef.data;  This would work fine, however, it would not be cropped
    }

    private void onLoaderComplete(event:Event):void
    {
    var loaderInfo:LoaderInfo = LoaderInfo (event.target);
    var loadBD:BitmapData = new BitmapData (loaderInfo.width, loaderInfo.height);
    OK, now that we have the 'original' file into the bitmap data, we can crop and then resize it later
    so, we need a "place" of the image cropped from the original
    so... First, we get a square of the image of "size".
    If the image is larger than the scale, we will take a place as large as the image and as high as it is wide, from 5% down from the top
    If the image is larger that high, we will take a square as large as the image and as wide as it is high, horizontal Middle
    var curW:int = loadBD.width;
    var curH:int = loadBD.height;
    var cropX:int = 0;
    var cropY:int = 0;
    var cropW:int = curW;
    var cropH:int = Uchr;
    var needCrop:Boolean = true; default is to crop
    var croppedBD:BitmapData;

    If (Uchr > curW)
    {
    cropY = Math.round (Uchr *. 05); departure at 5% down
    cropH = cropW;
    }
    ElseIf (curW > Uchr)
    {
    cropX = Math.round (curW/2) - Math.round (Uchr/2); start in the Middle, 'back' by half the height
    cropW = cropH;
    }
    on the other
    {
    needCrop = false; It's already a square!  nothing to do (except for resizing)
    }

    If (needCrop)
    {
    croppedBD = new BitmapData (cropW, cropH); at this point, it is 'empty', then the full
    var fillPoint:Point = new Point (0,0); given that we will fill in the upper, left pixel and rollover
    var fillRect:Rectangle = new Rectangle (cropY, cropW, cropX, cropH);
    croppedBD.copyPixels (loadBD, fillRect, fillPoint);
    }
    on the other
    {
    croppedBD = loadBD;
    }

    imgPhoto.source = new Bitmap (croppedBD);  The result is an appropriate size, but the image in white-white
    }

    And here is the mxml for the image:

    < mx:Image id = "imgPhoto" x = "40" y = "126" maxWidth = "200" maxHeight = "200" / >

    Thank you!

    -David

    Hello

    You've been around the solution.

    In "onLoaderComplete(event:Event):void", at the beginning, you create a BitmapData called 'loadBD', you forgot just to fill it with the content of the loaderInfo.

    private void onLoaderComplete(event:Event):void {}

    var loaderInfo:LoaderInfo = LoaderInfo (event.target);

    var loadBD:BitmapData = new BitmapData (loaderInfo.width, loaderInfo.height);

    loadBD.draw (loaderInfo.content);

    ......

    Kind regards

    Mich

  • Simple example of a combobox control displays data in a CF data source

    Can someone tell me a simple example of a Flex 3 combobox that displays data from a ColdFusion data source?  I can't find a simple example.  As always, thank you!

    I'm sure that's what you're looking for

    http://blog.tygate.com/?p=463

  • Missing screws in the 3D 2010 image control?

    Hey everybody,

    I tried to follow this guide to the developer for visualization of Labviews functions:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/7664

    I discovered that many screws shown here for 3D picture control are not available for (free) module in Labview 2010, even with the control and simulation tool. What is the case for other users?

    Examples of 3D picture control screws that I can't find in Labview 2010 block diagram functions are:

    'building of toroid.vi '.

    'create model.vi '.

    'Add a material.vi '.

    'Create transform.vi '.

    'Add a model.vi '.

    'create camera.vi '.

    «camera look at.vi»

    'create positional light.vi '.

    "make scene.vi".

    "to scene.vi".

    However, I can find the following screw:

    Geometry menu

    'create cone.vi '.

    'create cylinder.vi '.

    'create box.vi '.

    'create the height field.vi '.

    'create mesh.vi '.

    'create sphere.vi '.

    'create text.vi '.

    Object Menu

    'create object.vi '.

    'find the object.vi '.

    Transformations menu

    "to rotation.vi".

    "set rotation.vi".

    "rotation object.vi.

    "to scale.vi".

    "set scale.vi".

    "Object.vi scale".

    "to translation.vi".

    "set translation.vi".

    "translate object.vi.

    'clear the transformation.vi '.

    Menu of aid

    "color change.vi".

    "configuration window.vi".

    'create a clip plane.vi '.

    'texture.vi '.

    "new light.vi".

    "sensor mapping.vi.

    File loading menu

    «load ASE geometry.vi»

    'load the file.vi vrml ".

    "load STL geometry.vi".

    So my question is why can't I access the first list of the screws in 2010, are hidden with screws again features somehow? Or am I missing a library or where these functions abandoned for the 2010 version? If they have been abandoned, is it possible to build a scene and drawing from scratch in the 2010 version?

    Thank you very much!

    Hello

    Control of the 3D image is natively available for LabVIEW 2010. The question that you are running is because you try to open a VI that uses the first NOR-Labs 3D Picture Control, which was replaced by the native 3D image control. These functions are "obsolete" and manually replace your code with new API of navigation. You can also try using the old Toolbox, but keep in mind that this is not supported:

    http://zone.NI.com/DevZone/CDA/tut/p/ID/4411

    Examples of the new API is located in:

    C:\Program NIUninstaller Instruments\LabVIEW 2010\examples\picture\3D Picture Control

    and you should be able to find most of the VI need to change your old Toolbox to the new.

    I hope this helps...

  • Save picture in the image control

    Hello world

    The labview picture control has a context menu that includes the option so save the image. I found that it works very well in the development environment. If I click on it, a dialog box opens that allows me to choose where to save the image. However, once an exe file is built, the option will still be there but clicking on it seems to do nothing. Is this a known bug, or would it be a problem with my installation?

    I'm under Labview 2012 SP1.

    Thanks for the help,

    -Gary

    Hi Gary!

    I can confirm your observations. It's the behavior of my app, im using LabvIEW2013.

    Best regards

    Dan

  • How to add examples of control flow in the bean to support?

    Hi all
    I use a template for all my jspx pages in my application. This model provides a header which includes the menu of the page all the others. So when I click on a menu it will redirect to the related page. But my problem is that there are so many cases of Flow Control adfc-config.Xml file. For example, 64 cases of control flow must be if there are 8 menus. How can I when a user has clicked on a menu, the case of control flow will be created in the CommandMenu action method?
    Thank you

    Hello

    No you don, t, you can use rules of global control flow, simply do not define the "of-activity-id". Then, if the result occurs, where he come, the user will be moved to the target activity id. 8 pages should probably be 8 control-flow-case within a single global-flow-control rule.

    Kind regards

    ~ Simon

  • 3D photo orthographic view zoom control - camera put in place?

    I try to display two controls 3D image.  A poster of the 3D objects (Auto Projection: Perspective, Camera Controller: spherical).  This 3D image works fine and I have no problem with him.  Other Contol photo is intended to simulate a 2D to 3D, essentially a Plan view object image.  To do this, I made an image with an orthogonal view 3D control.  I put the camera to see through top (z axis) and set a goal to be the positive y-axis.

    I've attached an example vi (labview 2013 SP1) that creates simple 3D objects and displays them using the same camera Position in Perspective and orthographic.  Initial start-up, the orthographic image is zoomed in strongly. If I Zoom in manually (button press and hold Shift and mouse upwards or downwards), then the orthographic image will set itself in the right position of the camera.  This is essentially the solution to my problem, but I can't assume that the user will have the ability to zoom in manually the image.  So I need to set it programmatically.

    If you manual adjust the display on a screen (rotation and zoom), then click on the button Set camera, two images will give a plan view, but only the Image point of view will be the right zoom camera or the distance.  The spelling remains to the last zoom distance.

    Is it possible to set the distance of the camera for orthographic projection by programming?   I have tried running with the perspective 3D picture control, set the distance of the camera and then change to spelling, but this still translates into a spell zoomed image.  Reading, I did it, I think I'm trying the impossible.  Does anyone have another suggestion to get the same result.  I've used 2D image functions to generate the image, but found that this inefficient method.

    And suggestions would be great.

    Thank you

    RELEC

    Hi Relec,

    Thanks (and congratulations) for this inspiring demo!

    Took me all to work out, but I might have found something that might help us with the orthographic projection.

    Sometimes, back someone posted a way to collect the current data of the camera. Sorry I lost the source. But here's my version as a Get3DCameraPosition.vi using the ModelViewMatrix.

    Unfortunately this does not return the current target and so a bit of guessing in the right Direction is necessary.

    I am impressed that you found a way to make the shift Zoom-possible movement on the spelling window.

    It seems that a whole thread to http://forums.ni.com/t5/LabVIEW/3D-Picture-Control-Doesn-t-Zoom-in-Orthographic-Mode/td-p/1544460/p... was not able to know which.

    In the meantime, I found a way using the ProjectionMatrix to create a magnifying glass effect which build in your demo using the mouse wheel.

    Overall, I tried to translate the camera movements from the window from the perspective of the ortho - assuming it is what you were after?

    Yet once the missing information from the target do not quite right.

    Regs

    Jannis

Maybe you are looking for