Create a 3D scene in HALCON 12

Here we introduce the new concept of 3D scenes that comes with HALCON 12. The main feature of it is that you can visualise complex 3D scenes very fast. Also you can modify single objects of your scene in a simple and convenient way.

With HALCON 12 you can be the creator of your own little world or in terms of HALCON a 3D scene. With the operator add_scene_3d_instance you can add several 3D object models to your scene. It is even possible to add the same object model more than once. You can alter their appearance by e.g. changing the colour or making them transparent with the use of set_scene_3d_instance_param. After adding an object to your world, you can move it around by applying a new pose to the instance with set_3d_scene_instance_pose. You can even switch on and off lights in your virtual world. For that a light source can be added with the operator add_scene_3d_light. Finally you want to present your creation to others. In order to visualize your 3D scene, you add a new virtual camera to the scene (add_scene_3d_camera). With this camera you can display the scene (display_scene_3d) or take a snapshot of it (render_scene_3d).

As a starting point for creating your own virtual world we suggest that you have a look at our standard HDevelop example display_scene_3d.hdev. It demonstrates how you can use the HALCON functionality for creating a 3D scene. There is a wide variety of applications where this new HALCON feature for visualising 3D scenes comes in handy. One of the most obvious is the visualisation of matching results in a 3D scene acquired by a 3D sensor. You can use the camera parameters of the real camera or use a completely new perspective to visualise the result. Since you can add more than one camera instance to your 3D scene, it is even possible to evaluate a virtual prototype of a 3D system setup before acquiring the needed hardware.

Like to learn more about HALCON 3D possibilities?  We are here to help!

Read more about Halcon 12 Imaging Software. Download a trial version and try for yourself.