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,...
Type: Posts; User: hayden
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,...
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.
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...
Does it mean that phong shading can't be implemented without GLSL i.e. just with OpenGL?
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.
Thank you very much for clarification.
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.
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...
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?
I tried to figure out error using the following:
ILenum Error;
while ((Error = ilGetError()) != IL_NO_ERROR) {
printf("%d: %s/n", Error, iluErrorString(Error));
}
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,...
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...
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.
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...
I have fixed those errors. Now I am getting the following errors
How to make the program run? Please help me out.
thanks for clarification.
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?
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...
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...
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?
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...
I find difficulty in using glReadPixels. Could you give some sample code?
I have mapped texture on a 2D polygon. Is it possible to get the RGB values of a particular point in the polygon.