Quantcast
Channel: Adobe Community : Unanswered Discussions - Acrobat
Viewing all articles
Browse latest Browse all 73766

Clipping planes in 3dView orthographic camera

$
0
0

Hi,

 

I am working with a u3d file which I embed manually into a pdf. In order to replcate the desired view I set an orthographic camera and a C2W matrix. Although the view is setup as expected, I can't get the near clip plane to work properly.

When I open the pdf document for the first time the 3d model is clipped by the near clipping plane. The only way to go around it is to switch to perspective view and back to orthographic. The the clipping planes are not in the way anymore.

I tried setting the clipping style to ANF or XNF (with specified near clipping plane set to /N 0 and no far clipping), but my 3d model is always cut in the same way, as if the clipping planes are not taken into account when the pdf file is opened.

The same problem occurs when I press the "Default View" button, in order to restore the original view. Then the camera is moved to the original position, but the clipping planes are again intersecting with my model.

It seems that the clipping planes are created with default values that are not refreshed when the model is loaded.

Has anyone noticed a similar behavior? Any suggestions for further testing? Any known issues I might be missing?

 

Thanks in advance.

 

Some sample code:

 

8 0 obj

<<

/Length 7 0 R

/Subtype /U3D

/VA [<<

/TYPE /3DView

/XN (OrthoView)

/IN (OrthoView)

/MS /M

/C2W[ -1.0 0.0 0.0

            0.0 1.0 0.0

             0.0 0.0 -1.0

             225 309.75 12.5]

/CO 5

/P <<

/Subtype /O

/OS 0.477032

/CS /ANF   % tried also /CS /XNF /N 0

>>

/BG <<

/Type /3DBG

/C [0.95 0.95 0.95]

>>

/LS <<

/Type /3DLightingScheme

/Subtype /White

>>

>> ]

/DV (OrthoView)

>>

stream ......endstream

endobj


Viewing all articles
Browse latest Browse all 73766

Trending Articles