Thanks a lot
Type: Posts; User: Devdept2
Thanks a lot
I'm trying to do a simple selection with a hidden drawing in false colors of my entities, but of course if they are multisampled I get wrong values on the borders of the entities.
What you propose...
Yes, that looks like my problem.
Is there some way around it?
In my application I have an OpenGL viewport with a multisampled pixelformat and I need to do a hidden draw in false colors of my scene without multisampling.
Before doing the hidden draw I turn...
for selecting the visible entities in my program I do a hidden drawing with false colors, where each color corresponds to an entity ID, then I read the pixels back and reconstrut the entity ID...
thanks for the answer.
So it's better to compute it by ourselves, right?
it seems the gl_LightSource[i].halfVector data is wrong on the Intel HD 3000 graphics card with the latest driver (22.214.171.12475), running OpenGL 3.1 and GLSL 1.40.
I tried computing it by...
I do not create the DC explicitly, I get it from the control:
wnd = control.Handle;
hdc = Windows.GetDC(wnd);
hrc = wglCreateContext(hdc);
Hi, I tried deleting my OpenGL control (which causes the destruction of the graphics context) in the OnClosing() method of the child form, as suggested by that page, but the problem is still there :(
Does anybody have an idea of the reason or how to fix it?
I have a C++/CLI WinForm MDI application, with a main MDI WinForm container that opens some child Forms that contain my OpenGL .Net control.
On some NVidia cards (Quadro 600, Quadro 1000M, Geforce...
Using the core functions the crash happens the same.
so I guess we solved the mistery of the back-light illumination.
I tried the following (C#) code, that basically allocates an FBO with a 4096x4096 depth texture at each iteration.
On an ATI Radeon 5450 with Catalyst 12.6, under WinXP 32bit, I get an...
But the fixed function is not setting the ambient terms to zero (as my pictures without the shader showed)...
I found out the following things studying my Shader and playing with it in RenderMonkey:
1. The illumination on the backface is given by the ambient component of the spotlight:
the normal is pointing towards the upper (front) side of the Quad.
for control I mean a Windows Form control with an OpenGL viewport.
Each control has its own opengl graphics context and I don't use the wglShareLists.
Hi Dark Photon,
In the shader I'm doing this:
void ComputeSpotPointParameters( in int i,
in vec3 eye,
in vec3 ecPosition3,
I did a test application that opens a form with 12 instances of my OpenGL control,.
Each one creates its FBO of 4096x4096 with associated depth texture for shadowmapping.
On the ATI Radeon 5450,...
I showed both cases, with Shader and No Shader (fixed fucntion OpenGL) to show that both cases gives the same result: a little lighting on the backface.
In the case with the Shader the...
I see that even with ConstantAttenuation = 1, in the back face there is a little illumination of the spot (but very very dim), so if constantAttenuation < 1, it would go to increase that dim...
So is it wrong to assign the ConstantAttenuation a value between 0 and 1?
That would make the attenuation factor > 1...
This is the illumination from the top
and this is the illumination from the bottom: