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...
Type: Posts; User: StuckInBorland
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...
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
Ok,solved it.It was just a silly bug.
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...
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
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 -...
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...
Thanks for your help!
My source code :
case WM_LBUTTONUP
{
dMousex = LOWORD(lParam);
dMousey = HIWORD(lParam);
glGetDoublev(GL_MODELVIEW_MATRIX,modelMatrix);
...
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?...
Resolved , do not waste your time looking on my code
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...
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...
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...
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...
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.
^ Thanks!! It was WGL_SAMPLES_ARB..
^ 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...
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...
^You are funny....
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...
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,...