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

Search: Search took 0.00 seconds.

  1. I found some links to it, so it looks like I need...

    I found some links to it, so it looks like I need to make a shader? and then with that I render in multiple passes... Don't we get a big performance hit because we have to render in multiple passes?...
  2. draw transparent 3d objects for a CAD like environment

    I'm trying to draw transparent 3d objects for a CAD like environment, with opaque objects I have been using the glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); ( not sure if that is what I want ?...
  3. OK, after messing with this and thanks to the...

    OK, after messing with this and thanks to the general idea of GClements

    I killed my initialization of the Draw rectangle and put it directly into the on Mousemove command

    I just pass in the...
  4. OK, I seemed to have it now tracking the mouse...

    OK, I seemed to have it now tracking the mouse ONLY if I don't do nothing to the view, if pan the screen or if I rotate the screen then it again loses the mouse cursor...
  5. I assume by viewport you mean size ? I just...

    I assume by viewport you mean size ?

    I just have it set to

    CRect rectClient;
    ::GetClientRect(m_hWnd,&rectClient);

    GLsizei w, h;
    w = rectClient.Width();
    h = rectClient.Height();
  6. I added the gluOrtho2D(0, w, 0, h); to the...

    I added the gluOrtho2D(0, w, 0, h); to the initialize function

    It does draw the rectangle it is some set value off of the cursor??? very odd... It seems to stay in the X+, Y+ zone
    1055
    It does...
  7. That is my issue, I was trying to draw to screen...

    That is my issue, I was trying to draw to screen coordinates but I couldn't get that too work...
    unless I'm missing something...

    I assume that I can do a:

    // glOrtho(0, rectClient.Width(), 0,...
  8. Rubberband selection rectangle and local coordinates

    ( quick why)
    I have a GDI+ rubberband or sweep rectangle that I have been using with OPengl and a MFC application. BUT as some have you already know, if you are using OPengl and GDI+ (which I...
  9. After searching and testing, it ended up being an...

    After searching and testing, it ended up being an animation thread I made to test animation...


    So after I rendered all my elements
    then ALSO did this below:

    ( if I commented this bit of...
  10. Interesting, I have been playing with this, and...

    Interesting, I have been playing with this, and for some reason depending on the the sweep, it will add the very last rendered object to the selection list...
    Eventhough it was not even close to the...
  11. Sweep selection error picking object not in swept rectangle...

    I have implemented a sweep rectangle, and it seems to be working ~98 % of the time...!!
    ( really does very good and am overall very pleased with it )

    I noticed today when I was playing with the...
Results 1 to 11 of 11