LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D Picture - Shadow Mapping

There's a way to create a shadow (or atleast one workaround) using the 3D picture?

 

 

Message 1 of 7
(3,448 Views)

Nobody? I'm able to apply the shadow map with C/LUA using the stencil buffer, but seems the required property isn't exposed by LabVIEW Smiley Sad

0 Kudos
Message 2 of 7
(3,355 Views)

I, for one, have no idea what you are trying to do.  Can you provide two pictures, a "starting Picture without Shadow Map" and a second picture after the Shadow Map has been applied?  It might also be helpful to have some idea of the code you are using to produce the initial (non-shadowed) picture.

 

Bob Schor

0 Kudos
Message 3 of 7
(3,343 Views)

Oh sorry,  take this as an example:

 

 

[1] - Light Source

[2] - Diffuse and Specular Material Components

[3] - Shadow Projection on the plane (a.k.a Shadow Mapping)

 

I want achieve this effect on my simple solar system using LabVIEW. As you can see, the moon isn't covered by the earth shadow.

 

0 Kudos
Message 4 of 7
(3,325 Views)

If you search the Web for LabVIEW Ray Tracing, you can find an IEEE paper discussing this topic.  I don't currently have access to this paper, so I don't know if it would be helpful ...

 

Bob Schor

0 Kudos
Message 5 of 7
(3,304 Views)

No this is not possible.  A LOT of 3D functionality is not exposed int he picture control including multiple texturing, bump mapping and so.

 

There's a bunch of files somewhere which provided a full OpenGl interface but I don't recall where I saw it.

 

Maybe searching for full openGL LabVIEW might help.

0 Kudos
Message 6 of 7
(3,287 Views)

@Intaris

 

I've searched for something like this, but without success. Anyway, i hope NI someday improve the 3D picture exposing more OpenGL functionality (i'm not asking for *very advanced* things like tesselation, but, at least, the basic things like shadow, reflection and multexturing) or porting some widely used scenegraph library like OSG.

0 Kudos
Message 7 of 7
(3,241 Views)