Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. Draw line with polygon in openGL

Draw line with polygon in openGL

Scheduled Pinned Locked Moved Graphics
graphicscssgame-devregexhelp
1 Posts 1 Posters 1 Views 1 Watching
  • 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.
  • A Offline
    A Offline
    asmasm123
    wrote on last edited by
    #1

    I need to draw polygons with lines at boundary to give good appearence. lines drawn first by "PrimitiveType.lines" then polygons drawn by "PrimitiveType.Triangles" and enabling depth test + DepthFunction.Less. I have two problem. 1.when zoom out, the polygons becomes small as requied while lines has fixed line width that cover all drawing at zoom out (zoom by increse orthognal view size). I need to make lines disappear or very small width when zoom out (polygons are faraway) 2.Lines behind a polygon are not displayed as enable depthfunction to be less. however lines that are too close benhind polygons appear with hidden pattern. I need to make all not displayed if behind polygon.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups