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

Search: Search took 0.01 seconds.

  1. Re: Getting "real world" coordinates from screen

    I'm checking this now



    For test application I just draw a small cube (radius = 1) wth coordinates x=15,y=2,z=-30, and then clicked a mouse on it's center and checked if I'm getting these...
  2. Replies
    2
    Views
    1,325

    Re: Scaling for polygon overlay

    Thanks!!

    I forgot about polygon offset...After you reminded me it solved another issue I had.But regards polygon overlay I'm thinking to do decals since seems that offset is not enough
  3. Replies
    1
    Views
    622

    Re: Polygon tesselation with blending

    Ok,solved it.It was just a silly bug.
  4. Replies
    2
    Views
    1,325

    Scaling for polygon overlay

    Hi

    I have a polygon in 3d space and I want to draw an overlay on this polygon,I need to draw an overlay polygon about few pixels bigger than the polygon itself otherwise I won't see it.Easiest...
  5. Replies
    1
    Views
    622

    Polygon tesselation with blending

    Maybe someone has example how to do blending for tesselated polygons?
    I'm trying to make it work all the morning - meantime all kind of weird results... :(

    Thanks
  6. Replies
    1
    Views
    2,046

    Re: Double click

    Hi

    I don't know if there is a special handle for double click,but
    I can offer you a workaround until you find a better solution (if there is one)
    Use regular one click event and count clicks -...
  7. Re: Getting "real world" coordinates from screen

    Thank you so much Stratto and Rosario!!
    The problem was because of GL_DOUBLE in glReadPixels....It made the coordinates totally wrong.
    Now they are correct,but a bit not accurate. Mistakes are like...
  8. Re: Getting "real world" coordinates from screen

    Thanks for your help!

    My source code :
    case WM_LBUTTONUP
    {
    dMousex = LOWORD(lParam);
    dMousey = HIWORD(lParam);

    glGetDoublev(GL_MODELVIEW_MATRIX,modelMatrix);
    ...
  9. Getting "real world" coordinates from screen

    I'm trying to retrieve "the real world" coordinates when mouse is clicked in my 3d scene with gluUnProject and they are wrong....

    1.I wonder if that my depth is 1500 and not 1 could be a problem?...
  10. Replies
    1
    Views
    599

    Resolved

    Resolved , do not waste your time looking on my code
  11. Replies
    1
    Views
    599

    Tessellation not working

    What could be a reason when tesselation is not working?
    It's not drawing anything.

    Here is my source code (the relevant part of it)
    I'm calling DrawTessPolys in my main drawing loop
    Am I...
  12. Re: Using GLEE with Borland C++ Builder 6?

    Hi

    I used GLEW with Borland and it was really easy to start using it.I think you just have to arrange "includes of header files" properly.
    BTW if you need it only for some extensions you can...
  13. Replies
    2
    Views
    937

    Multisampling parameter ques.

    Hi
    I wonder how to approximate what are correct/optimal values for these parameters?

    WGL_ALPHA_BITS_ARB,
    WGL_DEPTH_BITS_ARB,
    WGL_STENCIL_BITS_ARB,
    WGL_SAMPLES_ARB

    Should they all be at...
  14. Replies
    10
    Views
    4,117

    Re: Toolkit for Borland C++

    Firstable the demos Borland supplied were "no-GUI" - only empty window ( I wonder if they knew about problems with VCL controls).

    Most serious issue(I have more,but I don't want to turn this...
  15. Replies
    10
    Views
    4,117

    Re: Toolkit for Borland C++

    Using VCL and particularly VCL controls with OpenGL is highly NOT recommended.I didn't believe it few years ago until I tried it myself.... It could be useful only for newbies while learning basics.
  16. Re: How to know if multisampling is working?

    ^ Thanks!! It was WGL_SAMPLES_ARB..
  17. Re: How to know if multisampling is working?

    ^ I just checked , AA is on.
    I have also Adaptive AA which is off.I turned on and tested - the same quality.

    Weird thing is - when AA is off WGLisExtensionSupported("WGL_ARB_multisample") still...
  18. How to know if multisampling is working?

    Hi

    I'm doing multisampling support test and then
    if(G_bMultiSampling)
    glEnable(GL_MULTISAMPLE_ARB);

    But somehow the polygon still doesn't look smooth enough.
    My question is - is there a...
  19. Replies
    10
    Views
    4,117

    Re: Toolkit for Borland C++

    ^You are funny....
  20. Replies
    10
    Views
    4,117

    Re: Toolkit for Borland C++

    Hmm...very useful
    If you develop for work and stability and limited time are required then usually this way is not recommended that's why I asked for an advice from someone with experience...
  21. Replies
    10
    Views
    4,117

    Toolkit for Borland C++

    Please advice me which OpenGL supported GUI toolkit is best to use with Borland compiler (excepting GLUT).I'm working with BDS 2006 C++ and seems like any good "up to date" toolkits (Qt,wxWidgets,...
Results 1 to 21 of 21