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

Page 1 of 2 1 2

Search: Search took 0.02 seconds.

  1. Thread: Scale & Lights

    by CS
    Replies
    3
    Views
    156

    Re: Scale & Lights

    Use ...
    glEnable(GL_NORMALIZE);

    [CS]
  2. Thread: Mouse problems ...

    by CS
    Replies
    2
    Views
    158

    Re: Mouse problems ...

    My message loop is Ok! (based on NeHe's code)
    NB! NeHe's original code has not this problem - until i remove the fullscreen question messagebox - then it HAS!

    I have made a experiment:
    adding a...
  3. Thread: Mouse problems ...

    by CS
    Replies
    2
    Views
    158

    Mouse problems ...

    I have a problem with mouse input in my OGL app.

    If mouse pointer is ower GL window i get only nonClient
    area mouse messages. The weird thing is that sometimes
    it works as intended. SetCapture...
  4. Replies
    8
    Views
    256

    Re: my vertex arrays code! what is wrong here?

    No, that is not true - the actual one was right.

    [CS]
  5. Replies
    18
    Views
    1,372

    Re: Rotating a moving object

    This code makes no sence to me.
    I am not sure but i think it's the same as
    glRotatef(angle, 0.0, 1.0, 0.0) only.

    Maybe You need something like this ...


    [CS]
  6. Replies
    5
    Views
    165

    Re: Multiple Viewport Hell

    Found something ...

    // Redefine the viewport to the upper lefthand quadrant
    glViewport(0,iHeight/2,iWidth/2,iHeight);

    Should be ...

    glViewport(0,iHeight/2,iWidth/2,iHeight/2);

    // comment.
  7. Replies
    3
    Views
    146

    Re: Problem with displaymode switching

    At NeHe page is working code for that.

    [CS]
  8. Replies
    4
    Views
    224

    Re: display list efficiency

    Uups!

    There was a god answer already.
  9. Replies
    4
    Views
    224

    Re: display list efficiency

    Funny question - but ...

    > Does OpenGL only keep track of the GL calls?
    Yes (do You see other possibilities?).
    > Or is it almost like a function call?
    (Mh? What you mean?) No.
    > Does it...
  10. Replies
    11
    Views
    685

    Re: A better VertexArray.

    Hi.

    There are stil some things i do not get ...
    but i leave them (i give up http://www.opengl.org/discussion_boards/ubb/frown.gif).



    ~50000V (~15000V if i could reuse some of them)

    At...
  11. Replies
    11
    Views
    685

    Re: A better VertexArray.

    Something i forgot



    I am not able to connect him - can You guide him here ?

    <CS>
  12. Replies
    11
    Views
    685

    Re: A better VertexArray.

    Hi again!


    ----------------------------------------------------
    > With hardware T&L, the cost of sending a vertex that is already
    > transformed and the cost of sending an untransformed vertex...
  13. Replies
    11
    Views
    685

    Re: A better VertexArray.

    Hi!

    ----------------------------------------------------------------
    > /.../ but the amount of calculations for the vertices still remains
    > the same, because there are 24 different...
  14. Replies
    11
    Views
    685

    Re: A better VertexArray.

    Thanks for reply.

    > You say that in your application you were forced to use display lists
    > because you used textures and lights. Why is that? Vertex arrays can
    > be used with texturing and...
  15. Replies
    11
    Views
    685

    A better VertexArray.

    Hi!

    I am working on a project that uses a lot of static data.
    As I use Texturing and LIGHTS - in my case VertexArrays are
    out of the question. So I was forced to use Display lists.

    And that...
  16. Thread: Mipmapping problem

    by CS
    Replies
    7
    Views
    331

    Re: Mipmapping problem

    Hi!

    I don't belive that gluBuild2DMipmaps does't work!

    Use (for testing) GL_LINEAR_MIPMAP_LINEAR for minification - so
    You will see a smooth fade from one mipmap level to other. If there is a...
  17. Thread: Strange phenomena

    by CS
    Replies
    3
    Views
    139

    Re: Strange phenomena

    I have run several times trough my code, but wasn't able to fix it (instead earned 21 extra FPS http://www.opengl.org/discussion_boards/ubb/biggrin.gif) - so my problem is still actual.

    Can You...
  18. Thread: Mipmapping problem

    by CS
    Replies
    7
    Views
    331

    Re: Mipmapping problem

    As Build2DMipmaps works and Yours not - your code must have some bugs. Can You show your code?

    <CS> http://www.opengl.org/discussion_boards/ubb/cool.gif
  19. Thread: Mipmapping problem

    by CS
    Replies
    7
    Views
    331

    Re: Mipmapping problem

    >gluBuild2DMipmaps()
    gluBuild2DMipmaps(GL_TEXTURE_2D
    ,TargetFormat,Width,height
    ,YourTexFormat,GL_UNSIGNED_BYTE,Texture);


    >I have also implemented my own code to
    >produce my mipmaps, but...
  20. Replies
    6
    Views
    122

    Re: Light probs... again...

    It works so ...

    Attenuation_factor=1/(kc+kl*d+kq*d*d)
    d = distance between the light's position and the vertex
    kc = GL_CONSTANT_ATTENUATION
    kl = GL_LINEAR_ATTENUATION
    kq =...
  21. Thread: Strange phenomena

    by CS
    Replies
    3
    Views
    139

    Strange phenomena

    So, here is the situation ...

    I am looking around in center of a textured cube.
    Using ...

    glRotatef(aX,1,0,0)
    glRotatef(aY,0,1,0)

    If aY is near of n*180 i get ~23 FPS
    and if aY is near of...
  22. Thread: Surprise !

    by CS
    Replies
    8
    Views
    180

    Re: Surprise !

    Really!? Good point! http://www.opengl.org/discussion_boards/ubb/smile.gif

    But, is it really SO slow (look my results)?
  23. Replies
    8
    Views
    164

    Re: Need to do fullscreen, but it doesn't work.

    [QUOTE]Originally posted by Lucretia:

    Is there a way of either doing this without having to destroy the window and then recreate it?
    [QUOTE]
    It is wiser to recreate window. BUT, you may also...
  24. Thread: Surprise !

    by CS
    Replies
    8
    Views
    180

    Re: Surprise !

    As first ...
    "My English is good and i do not tolerate critic http://www.opengl.org/discussion_boards/ubb/smile.gif"



    I have done it so ...

    glClear ...
    For 1..2500000 {...
  25. Thread: Surprise !

    by CS
    Replies
    8
    Views
    180

    Surprise !

    I have made a test that shows a object (6 triangles) ~2'500'000 times with 3 methods ...

    1) with glBegin(GL_TRIANGLES)/glEnd
    2) with CallList
    3) with glDrawElements

    ALL use the same amount of...
Results 1 to 25 of 26
Page 1 of 2 1 2