Yes, I am working on that and try to improve my question.
Now, I am almost sure I marked the zone correctly (stencil buffer) where I will delete and where the background will be shown.
After...
Type: Posts; User: kazmalak
Yes, I am working on that and try to improve my question.
Now, I am almost sure I marked the zone correctly (stencil buffer) where I will delete and where the background will be shown.
After...
Thank you Michael for the document.
However, I don't know how to save the background info.
I used glClearColor and glClearDepth to set the depth buffer and color for my background. But, I don't...
Hello,
I draw a cylinder on the screen and cut this cylinder from its center with a smaller diameter cylinder. I mean I am trying to draw a pipe.
The cut is not blind (I mean the length of the...
Yes, you are right. The problem solved when I changed my light model.
Thanks Komat
I have a problem in back surface coloring.
I give two different colors (red front, white back) to the surfaces.
I draw a triangle on the screen. When I rotate that triangle I realized that...
I have drawn a concave polygon using tesselation functions. When I draw the object CCW (as expected) and give the polygon normal as (0,0,1), it makes the lighting calculations correct.
However, I...
I have drawn a concave polygon, using the code below
As can be seen from the code, I have also defined the normal.
My first question is "When I have not included the gluTessNormal function, the...
I have encountered a strange problem when I was drawing a polygon having 7 vertices. The problem is that when one of the interior angle of the polygon is greater than 180 degrees, the polygon is not...
I have made a research on the net and understood nothing. On borlands main page, I have found an article and a code showing "How to Set up OpenGL in C++Builder". I take the source code and compile it...
Hi
I have a problem with c++ builder. I have made a simulation and I used Nehes tutorials as reference. Therefore I have created the simulation window like the ones in Nehes tutorials. That means my...
Sorry for my bad english, transluted will be translucent.
Hi
I have five objects in my project, that are controlled with mouse inputs.The two of these objects will always stay transluted and the others will always be opaque. For transluted objects,...
Sorry, I have made a mistake and now solve it. Thanks again.
Thanks again aeluned
I have done what you have described and program works quite well, but with one exception.You gave me the sample code
If I make glDepthMask false for the second pass, the...
Thanks aeluned,
You said I have to render the scene in 2 passes and give some sample codes. I read the related topic in Red Book and begin to understand what you have described. The way you...
Hello
In my project, I have drawn two objects. They are moving on the screen with mouse inputs and in some situations they have to share the same location but with different depth values. In that...
Thanks Stony
Lastly, the only thing I want to know if I have to learn the coordinates of every 5000 points, which method will be faster? feedback method or the one you have described (multiply...
What should I do if I have to calculate the transformed locations of every 5000 vertices (not few points) ? Do I have to recalculate all by matrix multiplication?
I heard it can be performed using feedback method and now I am trying to find tutorials about it. Is there anyone who knows how this method works?
I have over 5000 vertices. I have found the transformation matrices and apply glMultMatrixf function instead of using glRotatef or glTranslatef. I have done these because you said i have to multiply...
Hi everyone.
In my project, I draw an object and make transformations (a translation and two rotations). Now, I have to learn the new coordinates of the object. How can I find them?
Thanks Samv. Now something becomes clear. I will try to do the things you described. Thanks again. I hope I can solve.
If anyone wants to here someone confesses he is a stupid and brainless guy, I can be the one. I am studying on quaternions for about four full days and I get totally lost in it and with my little...
I am still trying to rotate my draw using quaternions and still could't succeed.
I have two rotations in Euler represantation
glRotatef(angx,1,0,0);
glRotatef(angy,0,1,0);
I create my local...
Hi,
In my project, I have to perform two rotations on x axis and y axis by mouse movement. Using a simple way I wrote the code like this
glRotatef(angx,1,0,0);
glRotatef(angy,0,1,0);
With...