ravi.joshi53's picture

GameWindow is looking reddish

I am rendering some textures using OpenTK. In between the game, I wanted to draw a point in red color. Now the entire window is looking reddish. When I changed the color to yellow, the point is rendered but this time window is yellowish . Below is the code, which draws a point-

private void drawPoint(float x, float y)
{
    GL.PushMatrix();
    GL.PointSize(20);
    GL.Begin(PrimitiveType.Points);
    GL.Color3(Color.Red);
    GL.Vertex2(x, y);
    GL.End();
    GL.PopMatrix();
}

Whats going wrong here?


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ravi.joshi53's picture
the Fiddler wrote:

Have you tried disabling blending?

For better rendering of textures, I have enabled blending globally. Should I disable it?

ravi.joshi53's picture
the Fiddler wrote:

Have you tried disabling blending?

For better rendering of textures, I have enabled blending. Should I disable it? Can you please specify a bit more...

the Fiddler's picture

Enable blending when you need it (i.e. for translucent objects/textures), disable it when you don't (solid objects).

Can you post a screenshot of the issue?