SFML community forums

Help => Graphics => Topic started by: Doodlemeat on February 16, 2014, 12:31:50 pm

Title: Weird lines in middle of TriangleFan
Post by: Doodlemeat on February 16, 2014, 12:31:50 pm
Hello.
I´m creating a 2d vision field that originates from this: http://www.redblobgames.com/
But I have a few problems now when I draw them. This is because I use sf::Primitive::TriangleFan i think. But I dont know how to get rid of these irritating lines.

(http://i.imgur.com/4Y0bZyS.png)

My code is to be found here:
https://github.com/doodlemeat/ProjectTerminal
https://github.com/doodlemeat/ProjectTerminal/blob/master/Stealth/LightEngine.cpp
Title: Re: Weird lines in middle of TriangleFan
Post by: zsbzsb on February 16, 2014, 01:45:22 pm
If it is an issue with a triangle fan array you should be able to easily write a complete and minimal example (http://en.sfml-dev.org/forums/index.php?topic=5559.msg36368#msg36368).