View Full Version : Quads
Hello all you gl gurus out there. I am a beginner to OpenGl and I need some help.
I need to use quads to render a model. However, when I render this model, the quads appear incomplete. I can rectify this by using quadstrips, but I need to use quads for my smooth shading. I have tried using glEdgeFlag but to no avail. Does anyone know how rectify this.
For a screenshot of the problem go to:
I hope someone can help
Thanks in anticipation
03-01-2003, 09:07 AM
The link to your screenshot gives the following:
HTTP1.1 STATUS 403 Remote Access to this object forbidden This file cannot be directly accessed from a remote site, but must be linked through the Brinkster Member's site.
alhough i can not see any image i've got an idea... are your quads planar and convex??
If you get that link error, copy the link into the browser bar at the top. That should work. For some reason you cant directly hyperlink there. (It doesn't hyperlink on my machine).
I am not sure. The dataset is indescrete so I think that the quads a convex. Any ideas????
03-02-2003, 11:41 AM
You need to understand how strips work. In the case of a quad strip, you start with two vertices and after that, every two vertices will make a quad.
You might need something like:
// First quad
// Second quad
// Third quad
You get the idea.
This is just it! I understand how quadstrips work, but when I pass a 4 independent vertices to gl_quad as opposed to a 2 vertices to a quadstrip for each quad I want attached to the previous, I get the image the URL above points to.
I am providing complete information (4 vertices) for convex simple quads but just seem to get some sort of triangle fan pattern instead. I am not entirely sure why!
03-02-2003, 12:22 PM
I did not mean to insult you... Sorry about that.
Send me the code. I am pretty sure it is the winding you are having problems with. Did you try the order of the vertices as I showed above?
[This message has been edited by mancha (edited 03-02-2003).]
Its ok, I was not insulted, my post before sounded as though I was! My mistake No harm done i'm sure!
The code I am using is in a massive 200000 + polygon loop! Will take some time to adjust them for this.
Will keep ya posted
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.