Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


gram

Member Since 07 Jan 2012
Offline Last Active May 25 2012 12:33 AM

Topics I've Started

Low Rez Effects

23 May 2012 - 10:01 PM

I'm trying to achieve a low-resolution effect similar to this:
Posted Image

Observe the jagged edges


I've done it in OpenGL, but only in Linux, and I want to do it in windows. In Linux, these two calls do the job

glBlitFramebuffer(0, 0, 512, 512, 256-rez/2, 256-rez/2, 256+rez/2, 256+rez/2, GL_COLOR_BUFFER_BIT, GL_LINEAR);
glBlitFramebuffer(256-rez/2, 256-rez/2, 256+rez/2, 256+rez/2, 0, 0, 512, 512, GL_COLOR_BUFFER_BIT, GL_LINEAR);

in a 512x512 window where "rez" is the edge length of a square (such as 256) that the scene is reduced to (first call) and then scaled back from (second call).

This works just fine in Linux, but crashes my program in Windows. Any ideas?

Lighting untextured polygons

12 January 2012 - 11:00 PM

When I light an untextured polygon, the polygon takes on the color of the light without regard to its own color. Is there a way to prevent this from happening, e.g., lighting a green quad with a red light results in an orange quad?

PARTNERS