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

Page 1 of 9 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    5
    Views
    1,369

    Re: glMultiDrawElements + VBO

    Well, maybe I could show more in detail what I'm doing. As I wrote earlier, it's just the VBO implementation that doesn't work: glMultiDrawElements in CPU mode work just fine.



    // fill array...
  2. Replies
    5
    Views
    1,369

    Re: glMultiDrawElements + VBO

    Hi V-man, thanks for the answer and sorry for the typo.
    I wrote
    glVertexPointer(3, GL_FLOAT, 0, verts); because it was like that for the non-VBO version; obviously that is
    glVertexPointer(3,...
  3. Replies
    5
    Views
    1,369

    glMultiDrawElements + VBO

    I'm currently using glMultiDrawElements rendering arrays directly:



    glPushMatrix();
    glEnableClientState( GL_VERTEX_ARRAY );
    glVertexPointer(3, GL_FLOAT, 0, verts);...
  4. Replies
    3
    Views
    819

    Re: Simulating hair physics

    That's why I posted in the Math and Algorithms forum.
  5. Replies
    3
    Views
    819

    Simulating hair physics

    Hi, I'd like to ask some help and suggestions about simulating hair physics (so basically pulling hair vertices around, and smoothly disposing the adjacent ones).

    Please take a look at the...
  6. Replies
    3
    Views
    897

    Re: Moving object in 3D space

    Thanks, I'm going to check those!
  7. Replies
    3
    Views
    897

    Moving object in 3D space

    I have developed a small opengl application that allows to pick an object in the viewport. I'd like to move such object in 3D space, dragging it around with the mouse.
    In the first image...
  8. Replies
    9
    Views
    2,674

    Re: Local to World rotation angles.

    I'm totally confused.
    What drives me crazy is that I'm so dumb to figure out what it seems to be such an easy problem.
    I mean, let's forget opengl for a moment.

    I have an object rotated in...
  9. Replies
    9
    Views
    2,674

    Re: Local to World rotation angles.

    Arts, when you write M, you mean I should do the following?

    float *M;
    M= new float[16];
    glGetFloatv( GL_MODELVIEW_MATRIX, M ); // Get the current MODELVIEW matrix from OpenGL

    Thanks
  10. Replies
    2
    Views
    412

    Matrices math

    Starting from 3 angles, I'm trying to create a global rotation matrix and get the angles back again.

    First of all, I calculate a global rotation matrix multiplying the 3 angles rotation matrices
    ...
  11. Replies
    9
    Views
    2,674

    Re: Local to World rotation angles.

    Maybe I should have given more info about what I'm trying to accomplish, I've the feeling I've created a chaotic thread and instead of posting/asking code I should have explained more in detail what...
  12. Replies
    9
    Views
    2,674

    Re: Local to World rotation angles.

    Here is the code I came up with. It still doesn't work, because the world rotation angles do not produce the same rotation as the local ones.



    float xRot=45.0*DEG_TO_RAD;
    float...
  13. Replies
    9
    Views
    2,674

    Re: Local to World rotation angles.

    Thank you very much, will try this...
  14. Replies
    9
    Views
    2,674

    Local to World rotation angles.

    I'm developing a plugin for an application called Daz Studio (more info here, if you are curious: INFINITO plugin), using QT and OpenGL.

    In the plugin glWidget, my object rotates using the local...
  15. Replies
    7
    Views
    1,641

    Re: normal math

    Also this is a nice solution, thanks!
  16. Replies
    7
    Views
    1,641

    Re: normal math

    Max, I think the solution you suggested is the one I will follow. Thanks to everybody for your kind help!
  17. Replies
    7
    Views
    1,641

    Re: normal math

    Sorry for not being more precise. Here is a screenshot: we have a point P, whose coordinates are known (retrieved with glReadPixels).
    I'd like to calculate the normal of the triangle where P is...
  18. Replies
    7
    Views
    1,641

    normal math

    I have an irregular 3D mesh (meaning that is not a regular grid) and I have a glReadPixel routine that return the x,y,z coordinates of a point P clicked on the 3D mesh.
    I'd like to calculate the...
  19. Re: Pseudo-instancing: help needed with some code part

    Thanks BionicBytes, I'm going to do some experiments!
  20. Re: Pseudo-instancing: help needed with some code part

    Sorry but I don't understand: in the above example, it seems to me that the gMouseInteractor function rotates the camera and so the view matrix has to be recalculated.
    That's what I don't...
  21. Pseudo-instancing: help needed with some code part

    I'm trying to implement the glsl_pseudo_instancing nvidia example in my terrain engine project.

    I've already setup the proper initialization routines (loading the shaders etc.) but I'd like to ask...
  22. Re: Screen to World coordinate: help needed

    Thanks for the answer and sorry for my ignorance on this matter. So you say that even if I rotate or translate the terrain, the values should always be the same ?
    My aim would be to gather the...
  23. Screen to World coordinate: help needed

    Hi, I have a simple function that returns the World coordinate when I click on a terrain mesh (a regular grid made of 4x4 quads), in the gl viewport:


    GLfloat wx, wy, wz; ...
  24. GLSL clarification: combining more effects

    Well, this is probably a stupid question but: suppose you have scene with a terrain engine and some objects, and that i want to use shadows, lighting, bump mapping and more effects.

    How should be...
  25. Replies
    1
    Views
    393

    Problem with projective textures

    Hi, i'm trying to make projective textures with shaders. I have the issue that the projected texture applied to the object is actually moving inside it as i move the camera. I suppose there is an...
Results 1 to 25 of 209
Page 1 of 9 1 2 3 4