Hi @Stephane-Redon,
ah yes, it was the depth test. This solves it!
Thanks,
Haichao
Hi,
I am working on an Editor for creating DNA strands. I call the display function and render spheres and cylinders when the Editor is in use. However, the Editor’s display function renders the structure different from the function in the Visual Model, as you can see in the attached images. There seem to be some issues with transparency of certain parts or maybe the depth is incorrect? Btw, I do not create these structures in the Data Graph. What would I need to change in the Editor in order to get rid of these artifacts?
Thanks,
Haichao
Hi @Haichao,
can you please try to add glEnable(GL_DEPTH_TEST)
at the beginning of the display function in the editor, and glDisable(GL_DEPTH_TEST)
at the end, to see if it changes something?
Hi @Haichao,
can you please try to add glEnable(GL_DEPTH_TEST)
at the beginning of the display function in the editor, and glDisable(GL_DEPTH_TEST)
at the end, to see if it changes something?
Hi @Stephane-Redon,
ah yes, it was the depth test. This solves it!
Thanks,
Haichao