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: hayden

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    407

    Adjusting lighting parameters

    1002

    Hello, I have somehow built a model (partial) which looks like a stadium. I have attached the picture for your kind perusal. The field ground has been textured. Now for a particular position,...
  2. Replies
    0
    Views
    572

    Building a stadium

    Hello, I need to build a stadium for my program. I found some obj model available on the net. Or could you give some suggestion about building from scratch. Thank you.
  3. Three dimensional blending program shows white screen

    I am trying the alpha3D.c program from the OpenGL red book which demonstarte drawing opaque and translucent 3D objects . I have attached the code. I can compile it. But when I run the program, I just...
  4. Thread: Opengl shading

    by hayden
    Replies
    3
    Views
    971

    Does it mean that phong shading can't be...

    Does it mean that phong shading can't be implemented without GLSL i.e. just with OpenGL?
  5. Thread: Opengl shading

    by hayden
    Replies
    3
    Views
    971

    Opengl shading

    I am learning different OpenGL shading examples. I am able to implement flat and gouraud shading. Can anyone help me with a simple example on phong shading? Thak you.
  6. Replies
    8
    Views
    1,526

    Thank you very much for clarification.

    Thank you very much for clarification.
  7. Replies
    8
    Views
    1,526

    I have included the following file which does not...

    I have included the following file which does not include gl.h or glu.h


    I have included the following file which uses neither GL.h nor GLU.h, but I can run and comiple it in my machine.
  8. Replies
    8
    Views
    1,526

    Usually when I write a openGl program in MSVC...

    Usually when I write a openGl program in MSVC 2010, I don't include the following header files:

    #include <GL/gl.h>
    #include <GL/glu.h>

    But I downloaded one program from the website, while...
  9. Replies
    10
    Views
    2,053

    The file extension is .bmp and it should be...

    The file extension is .bmp and it should be supported by devil. I can open the file to view it. Also I placed in proper folder where I put all c++ code. Then what could be the reason?
  10. Replies
    10
    Views
    2,053

    I tried to figure out error using the following:...

    I tried to figure out error using the following:

    ILenum Error;

    while ((Error = ilGetError()) != IL_NO_ERROR) {

    printf("%d: %s/n", Error, iluErrorString(Error));

    }
  11. Replies
    10
    Views
    2,053

    I managed to compile downloading 32-bit version,...

    I managed to compile downloading 32-bit version, but when run the program I can't view texture, it just shows a colored (not textured) plane. What could be the problem? Any one working with devil,...
  12. Replies
    8
    Views
    1,526

    A simple opengl question

    When I install Microsoft Visual Studio 2010, it is assumed OpenGL is already installed (I am not taliking about glut.h, I am only talking about gl.h and glu.h). But while compiling one program I...
  13. Replies
    10
    Views
    2,053

    Thank you so much for prompt reply. I downloaded...

    Thank you so much for prompt reply. I downloaded the following from the website: DevIL-SDK-x64-1.7.8: it has all the necessary files.
  14. Replies
    10
    Views
    2,053

    I am using MSVC 2010. In Linker->Additional...

    I am using MSVC 2010. In Linker->Additional dependencies , I put the following:DevIL.lib ;ILU.lib; ILUT.lib;

    I have also added include and lib directories under VC++ directories.

    Then I put...
  15. Replies
    10
    Views
    2,053

    I have fixed those errors. Now I am getting the...

    I have fixed those errors. Now I am getting the following errors


    How to make the program run? Please help me out.
  16. Replies
    5
    Views
    1,424

    thanks for clarification.

    thanks for clarification.
  17. Replies
    5
    Views
    1,424

    Actually I wanted know that cross and dot gives...

    Actually I wanted know that cross and dot gives cos and sin angle. If I need to know the angle, Is it ok to use the cross for computation of angle rather than dot product?
  18. Replies
    10
    Views
    2,053

    problem installing and using devil

    I am new in texture mapping. I installed devil-1.7.8 in my system. Now I am trying to compile the following code:


    but I found the following error.



    Could any one help me identify the...
  19. Replies
    5
    Views
    1,424

    A very beginner's question

    We use dot product for finding the angle between two vector b1 and b2. Cross product also gives sin angle for the vectors as well as the axis of rotation. Why don't the cross product is used to...
  20. Replies
    4
    Views
    3,414

    Thank you. The first one is what I asked. But...

    Thank you. The first one is what I asked. But whether it would be glRotatef( -theta, nx, ny, nz) or glRotatef( +theta, nx, ny, nz) . Could you explain a bit?
  21. Replies
    4
    Views
    3,414

    glRotatef function

    I need some clarification about glRotatef function. I have a rectangular plane with normal ax + by + cz = 0;
    I would like to rotate it along (0, 1, 0) i.e. Y-axis.
    I can find the in-between angle...
  22. Replies
    3
    Views
    943

    I find difficulty in using glReadPixels. Could...

    I find difficulty in using glReadPixels. Could you give some sample code?
  23. Replies
    3
    Views
    943

    texture question

    I have mapped texture on a 2D polygon. Is it possible to get the RGB values of a particular point in the polygon.
Results 1 to 23 of 23