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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - demetri247

Pages: [1]
1
Graphics / Re: 2D lighting with SFML
« on: December 16, 2020, 11:45:12 pm »
nvm i was being silly and cleared the window  :P, works like a dream. Thank you!

2
Graphics / Re: 2D lighting with SFML
« on: December 16, 2020, 10:36:31 pm »
So something like this?
(click to show/hide)
The screen is just rendered as black, without the blending the Triangle fan is white and the rest is black but I can't see the textures underneath.

3
Graphics / 2D lighting with SFML
« on: December 16, 2020, 06:29:12 pm »
I'm in the process of implementing a lighting engine, and I've been struggling with the polygon drawing. Currently, I'm using TriangleFan to connect the points that my raycasting algorithm has come in contact with, but I wish to achieve the opposite effect where everything except where the triangle fan is drawn is black and the play would have a limited view of their surroundings.

Is there a shape that could easily accomplish this?

Pages: [1]
anything