Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: kazmalak

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    1,933

    Re: cutting a hole

    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...
  2. Replies
    4
    Views
    1,933

    Re: cutting a hole

    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...
  3. Replies
    4
    Views
    1,933

    cutting a hole

    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...
  4. Replies
    3
    Views
    1,641

    Re: back surface color

    Yes, you are right. The problem solved when I changed my light model.

    Thanks Komat
  5. Replies
    3
    Views
    1,641

    back surface color

    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...
  6. Replies
    1
    Views
    167

    lighting in tesselated polygons

    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...
  7. Thread: gluTessNormal

    by kazmalak
    Replies
    1
    Views
    204

    gluTessNormal

    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...
  8. Replies
    2
    Views
    164

    a polygon drawing problem

    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...
  9. Thread: c++ builder

    by kazmalak
    Replies
    3
    Views
    680

    Re: c++ builder

    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...
  10. Thread: c++ builder

    by kazmalak
    Replies
    3
    Views
    680

    c++ builder

    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...
  11. Replies
    2
    Views
    162

    Re: light for translucent objects

    Sorry for my bad english, transluted will be translucent.
  12. Replies
    2
    Views
    162

    light for translucent objects

    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,...
  13. Replies
    5
    Views
    222

    Re: simple blending question

    Sorry, I have made a mistake and now solve it. Thanks again.
  14. Replies
    5
    Views
    222

    Re: simple blending question

    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...
  15. Replies
    5
    Views
    222

    Re: simple blending question

    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...
  16. Replies
    5
    Views
    222

    simple blending question

    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...
  17. Replies
    11
    Views
    1,040

    Re: new coordanites after transformation

    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...
  18. Replies
    11
    Views
    1,040

    Re: new coordanites after transformation

    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?
  19. Replies
    11
    Views
    1,040

    Re: new coordanites after transformation

    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?
  20. Replies
    11
    Views
    1,040

    Re: new coordanites after transformation

    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...
  21. Replies
    11
    Views
    1,040

    new coordanites after transformation

    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?
  22. Thread: quaternion

    by kazmalak
    Replies
    4
    Views
    203

    Re: quaternion

    Thanks Samv. Now something becomes clear. I will try to do the things you described. Thanks again. I hope I can solve.
  23. Thread: quaternion

    by kazmalak
    Replies
    4
    Views
    203

    Re: quaternion

    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...
  24. Thread: quaternion

    by kazmalak
    Replies
    4
    Views
    203

    quaternion

    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...
  25. Thread: quaternions

    by kazmalak
    Replies
    7
    Views
    214

    quaternions

    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...
Results 1 to 25 of 32
Page 1 of 2 1 2