I need help :D
I'm trying to draw a cylinder (with no bases, like a pipe so).
I made something but it doesn't work really well.
Look :
It first seems to work like I want :
![[Image: 66bbd272c6d572b14aabfd5f537aea1eb6c0bf8a.jpeg]](http://hfr-rehost.net/http://self/pic/66bbd272c6d572b14aabfd5f537aea1eb6c0bf8a.jpeg)
But I can't see the full cylinder when I'm outside
![[Image: 3544cd31abe6a8b33853f86f9f22d0a3b3c9b4a3.jpeg]](http://hfr-rehost.net/http://self/pic/3544cd31abe6a8b33853f86f9f22d0a3b3c9b4a3.jpeg)
And I get strange glitches
![[Image: 799d73eef323da9dd0ba77f583feb96c13daa34e.jpeg]](http://hfr-rehost.net/http://self/pic/799d73eef323da9dd0ba77f583feb96c13daa34e.jpeg)
I tried to change glDepthFunc type, but it didn't work... :/
Does someone have an idea ?
Here is the code
cylinder function
cylinder call
Thanks ;)
I'm trying to draw a cylinder (with no bases, like a pipe so).
I made something but it doesn't work really well.
Look :
It first seems to work like I want :
![[Image: 66bbd272c6d572b14aabfd5f537aea1eb6c0bf8a.jpeg]](http://hfr-rehost.net/http://self/pic/66bbd272c6d572b14aabfd5f537aea1eb6c0bf8a.jpeg)
But I can't see the full cylinder when I'm outside
![[Image: 3544cd31abe6a8b33853f86f9f22d0a3b3c9b4a3.jpeg]](http://hfr-rehost.net/http://self/pic/3544cd31abe6a8b33853f86f9f22d0a3b3c9b4a3.jpeg)
And I get strange glitches
![[Image: 799d73eef323da9dd0ba77f583feb96c13daa34e.jpeg]](http://hfr-rehost.net/http://self/pic/799d73eef323da9dd0ba77f583feb96c13daa34e.jpeg)
I tried to change glDepthFunc type, but it didn't work... :/
Does someone have an idea ?
Here is the code
cylinder function
cylinder call
Thanks ;)

