Hello.
I've a serious problem with color.
I'm doing a shoes' CAD/CAM, and I must put pieces on the last.
The problem is when I have two triangles of different pieces with distinct color....
Type: Posts; User: Aquileo
Hello.
I've a serious problem with color.
I'm doing a shoes' CAD/CAM, and I must put pieces on the last.
The problem is when I have two triangles of different pieces with distinct color....
Relic, with the sliders I change the value of tipoLuz[0], tipoLuz[1], tipoLuz[2], tipoLuz[3].
Then I use ones for position, ambient, diffuse and specular.
When I move the first and second slider I...
Hello.
I'm trying to do four TTrackBar, one for each light's value. The first and second work fine, but the third and fourth don't work fine.
My code is:
float tipoLuz[4];
tipoLuz[0] =...
I think yes.
I work with OpenGLPanel and I see the object perfectly.
And when I make a second point, then I've a correct value for mvmatrix and prjmatrix but I need the first point too.
...
Hello
I've a problem with GL_MODELVIEW_MATRIX and GL_PROJECTION_MATRIX because when I do:
glGetDoublev(GL_MODELVIEW_MATRIX, mvmatrix);
glGetDoublev(GL_PROJECTION_MATRIX, prmatrix);
I use...
I've discovered the reason.
I don't initialize various values
Anyway Thanks for all.
Josemi.
I have this code:
GLdouble punCercaX, punCercaY, punCercaZ;
GLdouble punLejosX, punLejosY, punLejosZ;
glGetIntegerv(GL_VIEWPORT,...
There are over 24000 results. I don't have time to read all.
Please, I must do lines over a object in 3-dimensions, but the line should be interpolated with B-Spline.
Thank you very much for...
I need to make a B-Spline over a surface. The program is CAD.
There are a shape and the user select various controls points, and with this points I must do a bspline over the shape's surface.
...
A example is a shoes CAD. Over the last the designer can draw the shoes' pieces.
The last must to move lightly for a good work of the designer.
Now I have a structure of triangles with 3 points...
I'm making a CAD programa with a object and over this object I put pieces with lines, circles, other objects, and so on.
I'd like the object will move quickly when user move it and move quickly...
Hong, thank you, but my problem is that I have a lot of triangles (over 40.000 points, 80.000 triangles). How should I use glPolygonOffset with the triangles?
Thank you very much.
I have Red Hat Linux 9 and I like programming OpenGL with KDevelop.
When I write a program and compile, I have a error for it don't find the library "glu32.h" and others. How can I put to link...
I have my own mesh and I put the light but if I put the coordenates in (20.0f,0.0f,0.0f) when I run my program the light surface is the opposite like if I put the light in (-20.0,0.0f,0.0f).
I also...
I'm doing a CAD program and I must draw a line on a surface.
I need some example or PDF for How can I do.
I already have two points of the line on the surface.
I use a matrix with the...
I put in my code:
char *cadena = (char*)glGetString(GL_VENDOR);
but the value of cadena is unknow... glGetString don't return anything. Anybody know why?
I've discovered the mistake. I put
glLightfv(GL_LIGHT0, GL_AMBIENT_AND_DIFFUSE, col_luz);
when glLightfv can only be GL_AMBIENT.
Thank you for all!
Hello Volt9000
My program has very lines of code. The program is for design shoes and I try show the last.
I use Borland C++ builder 6 and OpengGlPanel.
The problem is in all lines. I make a...
I've problem. My model have only light but it don't have color material.
I use the glGetError and ALL lines with opengl (gl...) I have error 1282 (GL_INVALID_OPERATION).
I'm hopeless. Please I...
The code is:
void TMDIChild::SetupColorMaterial()
{
static const int x=0, y=1, z=2, alfa=3;
float colAmbiente[4];
float colDifusa[4];
float colEspecular[4];
float...
I'd a function with lights and color material, and I've divided the function in 2, one function with lights and other with color material but now don't work. Why?
Thank you very much!
I've some problems with the light.
I put the light in coordinate (100,0,0) and when I render the light is in (-100,0,0). Why?
And How can I select one vertex's mesh?
Thank you!