cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Enabling Z-Buffer in Creo API

gpytel
1-Newbie

Enabling Z-Buffer in Creo API

I am developing plugin for Creo 3.0 and we have problem with Z-Buffer. What we want is to draw lines and have Z-Buffer enabled. I don´t know how to achieve this point. I am using: wSession->DrawPolyline(pnts); to draw points. Could anyone tell me how to enable z-buffer in Creo API? Thanks in advance, Grzegorz

clip_image001.png


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1
dschenken
21-Topaz I
(To:gpytel)

The z-buffer is handled by the OpenGL or Direct3D pipeline. The z-buffer is always enabled, which is why the shaded model can be spun around. It's probable the lines are not being run through the fragment routines the triangles are, so they aren't assigned a depth to use in the z-buffer.

If you use surfaces instead of lines you will get automatic occlusion.

Top Tags