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. OpenGL stencil in 2D - advanced (?) issues

OpenGL stencil in 2D - advanced (?) issues

Scheduled Pinned Locked Moved Graphics
helpgraphicsgame-devdata-structuresquestion
1 Posts 1 Posters 10 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.
  • V Offline
    V Offline
    Vaclav_
    wrote on last edited by
    #1

    I have run into a dead end in another OpenGL forum. I have a basic understanding how (OpenGL) stencilling works. My stencil is in 2D , no depths. I am extracting a (circular) part of OpenGL objects, no problem. I am trying to further manipulate the stencil result. The task is to enlarge the result and move it to the center of the screen. I used glTranslatef but it moves the original stencil, not the result. I want to move the result only. I think my issue is that the stencil was build in "top of the modleview matrix" ( no push /pop) and the objects to be stencilled are in various matrix "stack" - used push / pop. I understand the "result" is in color buffer, but it sure looks as I am manipulating the stencil buffer, which has been already disabled. Am I correct in all this? Do I have to rebuild all on SAME matrixview stack level ? I am sorry if I am not using correct OpenGL terminology. Cheers

    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