Skip to main content
GameDev.net gamedev.net
🔒 Locked

inverting stippled lines

Started by RPTD Nov 24, 2004 at 12:05 PM 1 replies 550+ views
Original Post
RPTD
RPTD
if you have already used blender you know that all there is opengl... from snout to tail. now they've got the same effect there like you know from file selection dialogs: a rectangle with alternating dots that invert what is behind. i wanna do a similar selection rectangle for my map editor. i can do stippled lines that have the dot-nodot look but i can't figure out how i can make that line invert the color on the screen. somebody has an idea?
Life's like a Hydra... cut off one problem just to have two more popping out.
Leader and Coder: Project Epsylon | Drag[en]gine Game Engine
Brother Bob
Brother Bob
glBlendEquation(GL_LOGIC_OP) with glLogicOp(GL_INVERT) or something like that could work. Check the specification for information.
RPTD
RPTD
thx for the tip it worked. the BlendFunc is not involved though. the following did the trick:
glEnable( GL_COLOR_LOGIC_OP );glLogicOp( GL_INVERT );

Life's like a Hydra... cut off one problem just to have two more popping out.
Leader and Coder: Project Epsylon | Drag[en]gine Game Engine

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.