Jump to content
  • Advertisement
Sign in to follow this  
denisve

Missing pixels when rendering lines with WebGL

This topic is 979 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, all.

 

I've got this weird behavior when rendering non-antialiased lines with WebGL.

Basically I've got a mesh, I create a buffer of _gl.LINES, where I have a line for each mesh edge. Now I should have a continuous geometry, but when I zoom in, I can clearly see missing pixels and lines are unconnected. Most pixels are missing on the very edge of the geometry

 

8713a4aac4da4caf88a782812e32aa6c.png

 

And very little inside the geometry as well, though

 

3bba92f910da4167984ff58a049e9d4a.png

Edited by denisve

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!