LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CWGraph3D Lights parameters - HELP

I use CWGraph3D component. For my application i must manipulate with the light parameters. The problem is, that is not possible to find the manuals for CWGraph3D, special for lights parameters like longitude, altitude and distance (what is efect and range of parameters). It is possible to put the lights under the 3D graph? How?
 
 
 
Best regards                                          Toni
0 Kudos
Message 1 of 6
(3,864 Views)
"It is possible to put the lights under the 3D graph? How?"
 
 

Ben

Message Edited by Ben on 03-06-2008 08:11 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Download All
0 Kudos
Message 2 of 6
(3,849 Views)
One other thing: if you need to programmatically control the lights, it's straightforward to do using the CWGraph3D class property Lights.  There are four lights in that collection, so use the Item method to return one of the lights and then you can change those properties (see attached example).

I had to post on this since I was just working on a 3D app last week...
-------------------
Greg
Certifed LabVIEW Developer
Message 3 of 6
(3,836 Views)
Thanks for a helps. But i still not understand different ligths parameters like longitude, latitude and distance. Where is position of the ligths relativ to xyz axis?
 
 
0 Kudos
Message 4 of 6
(3,825 Views)
Well, I'm far from an expert on lighting, but when I started to play with the lighting I did what the modern person would do: turn to Google.  I found a couple of useful tutorials here and here.  Aside from that, enable just one light and change the latitude or longitude of the light source.  You should be able to see the shadows change relative to "where the light is."  Think of it as the origin of the coordinate system being the center of the earth, and you'r moving the light along the latitude and longitude lines. 

The distance is just how far the the light is from the center (in the units of the graph).   If you have attenuation, then the farther objects are from the light, the dimmer they appear.
 
-------------------
Greg
Certifed LabVIEW Developer
Message 5 of 6
(3,805 Views)

RGreg wrote "...but when I started to play with the lighting ..."

That's the ticket!

If you really want to understand the operation of the 3d graph, you should "play with it" yourself.

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 6
(3,801 Views)