<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>Topic &#x27;OpenGL ellipses with GL_TRIANGLE_FAN? Anyone know about them&#x27; in forum &#x27;Webmasters and Developers&#x27; - dslreports.com</title>
<link>http://www.dslreports.com/forum/OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-27997875</link>
<description></description>
<language>en</language>
<pubDate>Tue, 21 May 2013 11:54:16 EDT</pubDate>
<lastBuildDate>Tue, 21 May 2013 11:54:16 EDT</lastBuildDate>

<item>
<title>Re: OpenGL ellipses with GL_TRIANGLE_FAN? Anyone know about them</title>
<link>http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-28001662</link>
<description><![CDATA[me1212 posted : Its all good man, having the glDepthFunc(GL_LEQUAL); still in my program doesn't seem to be making a difference, plus now I know how to use it. I'm sure it will come in handy down the road.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-28001662</guid>
<pubDate>Mon, 11 Feb 2013 20:26:49 EDT</pubDate>
</item>

<item>
<title>Re: OpenGL ellipses with GL_TRIANGLE_FAN? Anyone know about them</title>
<link>http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-28000987</link>
<description><![CDATA[Bach posted : Yeah, I'm a derp as well in the mis-advice I gave on the Z buffer. :p<br><br>My test program had GL_DEPTH_TEST enabled, which is probably not the case in your program since it defaults to off.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-28000987</guid>
<pubDate>Mon, 11 Feb 2013 16:53:03 EDT</pubDate>
</item>

<item>
<title>Re: OpenGL ellipses with GL_TRIANGLE_FAN? Anyone know about them</title>
<link>http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-28000751</link>
<description><![CDATA[me1212 posted : Never mind, I'm a derp who accidentally called swapbuffers after each function and that made it not work right.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-28000751</guid>
<pubDate>Mon, 11 Feb 2013 15:44:58 EDT</pubDate>
</item>

<item>
<title>Re: OpenGL ellipses with GL_TRIANGLE_FAN? Anyone know about them</title>
<link>http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-28000361</link>
<description><![CDATA[Bach posted : Since you are drawing in 2D, all objects have the same Z value. OpenGL still does depth checking even though everything is at the same depth. Consequently the larger ellipse has already drawn in the affected area and the circle gets ignored.<br><br>A couple ways to get around this:<br><br>1. Draw the smaller object (circle) first, then the ellipse.<br><br>or 2. Call glDepthFunc(GL_LEQUAL); once before you start any drawing. This will allow pixels at the same depth to be overwritten.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-28000361</guid>
<pubDate>Mon, 11 Feb 2013 14:04:05 EDT</pubDate>
</item>

<item>
<title>Re: OpenGL ellipses with GL_TRIANGLE_FAN? Anyone know about them</title>
<link>http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-28000121</link>
<description><![CDATA[me1212 posted : Thank you so much, that worked!  I have one more thing I've been wondering though, how would I go about placing the circle inside of the ellipse?  I tried having it draw the ellipse then circle right after each other, called the drawEllipse function the immediately after that was done I called the drawCircle function, but that just made HAL9000 show up on my screen. I used black for the ellipse and red for the circle. ]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-28000121</guid>
<pubDate>Mon, 11 Feb 2013 13:06:08 EDT</pubDate>
</item>

<item>
<title>Re: OpenGL ellipses with GL_TRIANGLE_FAN? Anyone know about them</title>
<link>http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-27999765</link>
<description><![CDATA[Bach posted : Use a different value for "radius" in the calculation of the x and y coordinate, e.g. "1.5f * radius" for the x value and leave the y as is.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-27999765</guid>
<pubDate>Mon, 11 Feb 2013 11:27:24 EDT</pubDate>
</item>

<item>
<title>OpenGL ellipses with GL_TRIANGLE_FAN? Anyone know about them</title>
<link>http://www.dslreports.com/forum/OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-27997875</link>
<description><![CDATA[me1212 posted : Yeah, so basically I'm bored and trying to draw an ellipse and a circle(already done) both filled in in openGL.  I got the circle done but I'm not sure how I would modify it for an ellipse, does anyone have any advice for a beginner? <br><br>Also here be the code I'm using for the circle, like I said I thankfully have this working I'm just not sure what to change to make it an ellipse. <br><br>void drawFilledCircle(GLfloat x, GLfloat y, GLfloat radius){<br>	int i;<br>	int triangleAmount = 20; //# of triangles used to draw circle<br><br>	//GLfloat radius = 0.8f; //radius<br>	GLfloat twicePi = 2.0f * PI;<br><br>	glBegin(GL_TRIANGLE_FAN);<br>		glVertex2f(x, y); // center of circle<br>		for(i = 0; i <= triangleAmount;i++) {<br>			glVertex2f(<br>		            x + (radius * cos(i *  twicePi / triangleAmount)),<br>			    y + (radius * sin(i * twicePi / triangleAmount))<br>			);<br>		}<br>	glEnd();<br>	glutSwapBuffers();<br>}<br><br>void myDisplay(void)<br>{<br><br>	glClear(GL_COLOR_BUFFER_BIT);<br><br>    drawFilledCircle(320,240,100);<br><br>	glFlush();<br>}]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/OpenGL-ellipses-with-GLTRIANGLEFAN-Anyone-know-about-them-27997875</guid>
<pubDate>Sun, 10 Feb 2013 17:36:26 EDT</pubDate>
</item>

</channel>
</rss>
