LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

lighting on 3D scene

Solved!
Go to solution

HI.

I have a complex 3d scene with different details (start here)
Each detail loaded from stl-file.
I found correct light position and parameters, but scene have one bug.
There is scene with Attenuation:Linear Attenuation = 2
You can see too bright wheels and cable track. Also there are liht settings.

Linear Attenuation = 2

And there is scene with Attenuation:Linear Attenuation = 30
You can see normal wheels and cable track but too dark all other elements.

Linear Attenuation = 30

Wheels and and cable track made in Solidworks, but another details in 3Dmax (or 3DS).
Also all detail has scale = 0.02 but wheels and cable track scale = 0,0014
May be this is reason of difference, but how to make the same light for all details?

0 Kudos
Message 1 of 5
(3,735 Views)

Artem,

 

I agree that this problem may be caused by the different details being created in both Solidworks and 3Dmax. Can you try exporting all of the stl files from the same program (either Solidworks or 3Dmax) before loading into LabVIEW?  

0 Kudos
Message 2 of 5
(3,692 Views)

Now I can't.
This files I've got from customer and customer's designer is very strange guy.
I ask about new files, but still nothing.

0 Kudos
Message 3 of 5
(3,684 Views)
Solution
Accepted by topic author Artem.SPb

Here is an example of something similar to what you are doing: DOC-46561 .

 

Something I found is that the reflected light intensity is proportional to the amplitude of the model normals. The normals must therefore be normalized (amplitude equal to 1) to obtain a consistent look.

 

If you have the chance, join the 3D Vision group,

 

Good luck

Marc Dubois
0 Kudos
Message 4 of 5
(3,671 Views)

Thanks, MarcDub.
It's real work. I've scaled bright object's normals to 0.1 and now it look like other objects.

0 Kudos
Message 5 of 5
(3,645 Views)