Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Capture pixels while drawing shapes  (Read 1102 times)

0 Members and 1 Guest are viewing this topic.

porteffroi

  • Newbie
  • *
  • Posts: 2
    • View Profile
Capture pixels while drawing shapes
« on: June 17, 2013, 06:13:41 pm »
Hi,

I'm searching a way to introduce some code between the computation of the pixels that must be colored when drawing a figure and the coloration itself. The target goal is to be able to cancel some pixel coloration based on a distance map to implement a basic 3D rendering engine.

Does anyone know where i should write this code ? I searched for some class i could extend and overload a "drawpixel" method but i did not find any ... (i'm new with SFML).

Thx for your attention
« Last Edit: June 17, 2013, 06:21:58 pm by porteffroi »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Capture pixels while drawing shapes
« Reply #1 on: June 17, 2013, 06:31:24 pm »
It looks like a job for a fragment shader.
Laurent Gomila - SFML developer