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

Search: Search took 0.06 seconds.

  1. Replies
    0
    Views
    74

    Problem with colors

    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....
  2. Replies
    3
    Views
    496

    Re: Problem with glLightfv(GL_LIGHT0, ...);

    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...
  3. Replies
    3
    Views
    496

    Problem with glLightfv(GL_LIGHT0, ...);

    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] =...
  4. Replies
    2
    Views
    168

    Re: Problem with GL_MODELVIEW_MATRIX

    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.
    ...
  5. Replies
    2
    Views
    168

    Problem with GL_MODELVIEW_MATRIX

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

    Re: Problem with gluUnProject

    I've discovered the reason.

    I don't initialize various values

    Anyway Thanks for all.
    Josemi.
  7. Replies
    1
    Views
    114

    Problem with gluUnProject

    I have this code:

    GLdouble punCercaX, punCercaY, punCercaZ;
    GLdouble punLejosX, punLejosY, punLejosZ;
    glGetIntegerv(GL_VIEWPORT,...
  8. Replies
    2
    Views
    300

    Re: A BSpline over a surface

    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...
  9. Replies
    2
    Views
    300

    A BSpline over a surface

    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.
    ...
  10. Thread: How can I do?

    by Aquileo
    Replies
    3
    Views
    153

    Re: How can I do?

    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...
  11. Thread: How can I do?

    by Aquileo
    Replies
    3
    Views
    153

    How can I do?

    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...
  12. Replies
    6
    Views
    150

    Re: How can I draw a line on a surface?

    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.
  13. Replies
    2
    Views
    494

    OpenGL with Kdevelop

    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...
  14. Replies
    0
    Views
    134

    Problem with lighting

    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...
  15. Replies
    6
    Views
    150

    How can I draw a line on a surface?

    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...
  16. Replies
    1
    Views
    148

    Problem with glGetString

    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?
  17. Replies
    5
    Views
    697

    Re: a GREAT problem

    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!
  18. Replies
    5
    Views
    697

    Re: a GREAT problem

    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...
  19. Replies
    5
    Views
    697

    a GREAT problem

    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...
  20. Replies
    2
    Views
    168

    Re: Divide the code

    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...
  21. Replies
    2
    Views
    168

    Divide the code

    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!
  22. Replies
    0
    Views
    80

    Problem with the light

    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!
Results 1 to 22 of 22