LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3d picture - does not render near camera

I'm working with the 3d picture control and I noticed something funny, and I don't know how to explain it or get rid of it.  What happens is when a scene is rendered objects (faces?) close to the camera will sometimes not get drawn.  It seems that this happens when a distant object enters the scene.  It also appears that the radius of missing faces is a function to the distance of the far object.  For example:
If I am trying to draw a first person view inside a aircraft, I can originally observe the cockpit frame and nose.  As a bring a "sun" object drawn a far distance off the cockpit and nose just suddenly disappear.  I can change how much disappears by moving the sun farther or closer.  How do I get rid of this effect or get around it?
0 Kudos
Message 1 of 9
(3,789 Views)

I have not used the new 3d picture control but I di play with the Beta version and near filed clipping may be paying a part. This prevented the rendering of images that were closer to the viewer than the value specified by the near field clipping.

If this does not help, please forgive this distraction.

Just trying to help,

Ben

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

(Assuming you are talking about setting up a near and far clipping plane in a perspective view) I played with the near/far field clipping, but it did not seem to help. I really couldn't get these values to change anything.  If I kept them at non zero and kept the far plane > near plane, nothing in the view changed at all.

0 Kudos
Message 3 of 9
(3,780 Views)

a little more info - as I move the sun object into the screen the projection matrix  - 3rd row 4th column changed its value from about 2 to about 90.  This happens at the same time near faces disappear.  Considering the size of my nearby objects, the 90 looks like it is how much gets clipped.  So I tried writing the projection matrix just prior to rendering, but I still get the near clipping.

Finally, when I'm using prespective viewing mode, and write FOV or aspect, matrix elements 1,1 and/or 2,2 change.  When I change the near and far clipping plane, nothing changes (unless I make near > far or =0, then the projection matrix = NaN)

0 Kudos
Message 4 of 9
(3,776 Views)
Could you post some code to help us understand this situation?
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 5 of 9
(3,774 Views)

maybe a picture of what is happening:

before moving the sun into the image before moving the sun into the image:

after moving the sun into the top left of the viewing window.

note that this is when the projection matrix changes (as described above), and a write just before rendering doesn't seem to have any effect.

0 Kudos
Message 6 of 9
(3,757 Views)
Hi Tiemanj,

Just want to quickly clarify something about the pictures you posted. So if I understand correctly, the tower and the other portions in picture #1 are supposed to be in the picture correct? But instead it is showing the water. Please confirm. Thanks!

Best regards,

Steven
0 Kudos
Message 7 of 9
(3,723 Views)
Yes - the tower and deck are supposed to be shown in figure 2
0 Kudos
Message 8 of 9
(3,713 Views)

I have the same problem

I can set far and near clipping pane and I always will be able to zoom inside the object.

Do You know how to prevent that?

0 Kudos
Message 9 of 9
(3,001 Views)