hello, i'm reading tutorials from http://www.arcsynthesis.org/gltut/Positioning/Tutorial%2007.html great articles. it uses its own utility funcs to load shader from files, i check the glsdk only...
Type: Posts; User: cjren
hello, i'm reading tutorials from http://www.arcsynthesis.org/gltut/Positioning/Tutorial%2007.html great articles. it uses its own utility funcs to load shader from files, i check the glsdk only...
thank you, i make a mistake in the code, but that is not the cause.
hello,
class ShaderProgram {
public:
ShaderProgram(GLuint id) {
m_uiProgramID = id;
}
GLuint programID() {
return m_uiProgramID;
}
}; // this class is defined in another file
for example, the mesh has a triangle, a quad and a polygon, do i need to :
glDrawElements(GL_TRIANGLE, .... tri_index);
glDrawElements(GL_TRIANGLE, .... quad_index);
glDrawElements(GL_TRIANGLE,...
hello,
i have a mesh with triangles and quads and polygons, in order to render the edges of the mesh, i need to render polygons (so do not convert to all triangles) and i konw the way using...
linear interpolation seems not good enough, maybe result in distoration, see the link :-)
http://en.9jcg.com/comm_pages/blog_content-art-39.htm
Hello, i'm implementing the catmull-clark subdivision algorithm, and the direct11sdk seems to have a demo about that.
i have question when deal with the uv calculation.
if a mesh unwrapped to...
ok, i got some info:
Device Contexts:
a windows data structure containing information about the drawing attributes of a device
- Each window has a device context to receive the graphics output...
thank you again:-)
it has more details in chapter2 of [Beginning Opengl game programming].
another question:
what is the relation between GDI and device context and render context?
thank you scratt.
actually, what the "view" means? is it somewhat like the QGLWidget?
It encapsulate most of the opengl commands, does it can be seen as the "view" resides inside the...
Hello,
question about the framework using opengl renderer.
do the renderer class have information about the Window(Win32Window, QMainWindow for example), using maybe pointer to it, to perform the...
in mudbox/maya, they use quads. and the subdivision surface algorithm for quads are more popular than triangles in modeling and animation.
an digital artist said they use quads only.
the reason is...
Hello,
in gl it's not recommended to use quads to render, because a quad will decompose to two triangles, right? [from Q&A 14.080 of...