Skip to content
0
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
Collapse
SAMSON Forum
  1. Home
  2. Develop
  3. Editors
  4. Transparency or Depth related issue in Editors

Transparency or Depth related issue in Editors

Scheduled Pinned Locked Moved Solved Editors
3 Posts 2 Posters 3.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    H
    Haichao
    wrote on last edited by
    #1

    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

    1_1519145505534_2.jpg 0_1519145505533_1.jpg
    1_1519145514259_3.png 0_1519145514258_4.png

    1 Reply Last reply
    0
    • StephaneS
      StephaneS
      Stephane
      wrote on last edited by
      #2

      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?

      1 Reply Last reply
      0
      • H
        H
        Haichao
        wrote on last edited by
        #3

        Hi @Stephane-Redon,

        ah yes, it was the depth test. This solves it!

        Thanks,
        Haichao

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Login or register to search.
        • First post
          Last post