How to detect/differentiate underexposure vs dark-skin in a face image? The face image on the left side is white (Caucasian) having underexposure and the face image on the right is dark-skin having no underexposure. The background in the image is variable. How to detect that the image on left side is underexposed and the image ..
I wrote a game in C++, but it looks very different on different screens. I would like to have an in-game lightness modifyer slider to let the user pick the right level of darkness. I’m not very experienced with the win32 API, but I tried the following: window = CreateWindowExA(WS_EX_LAYERED, name, "Title", WS_OVERLAPPEDWINDOW | WS_VISIBLE, ..
I wrote a game in C++, but it looks very different on different screens. I would like to have an in-game lightness modifier slider to let the user pick the right level of darkness. I’m not very experienced with the Win32 API, but I tried the following: window = CreateWindowExA(WS_EX_LAYERED, name, "Title", WS_OVERLAPPEDWINDOW | WS_VISIBLE, ..
I’m trying to make my light move around the z-axis and make a complete tour, but I get only half a tour. This is what I wrote: float value=0; LightPos.z = cos(value) + sin (value); value+=0.2; How can I solve this? Source: Windows Que..
I have this code but the light seems not working correctly, when I render the object it’s dark, then when I rotate it, the light source seems to be rotated too. I can’t figure out where the problem is. I tried to modify the model for the light but still not working this is the ..
I am new to OpenGL and am having a lighting problem. When I set glMaterialfv, OpenGL stops using color of the object, and only takes it from the parameters that are specified in glMaterialfv. But without glMaterialfv color of object are show corectly Can you explain to me what is happening. I need exactly old ..
I’m in the process of implementing a camera class in OpenGL. But I ran into a problem. I do not know how to correctly implement the rear view by changing the values of eye, target, up for LookAt. Can you help me? Source: Windows Que..
I need to render a wall of cubes on old OpenGL by moving one cube. I did it, but I don’t know how to make the edges of the cubes exactly match. When I just move the cubes, there is a small gap between them and then rendering artifacts are obtained. Source: Windows Que..
I want to know if it is possible to get the state of the glLight light in old OpenGL(University task). I need it to enable/disable the light with only one key. That is, create a switch. Source: Windows Que..
I am new in OpenGL and I faced such problem. When I implement directional lighting, the specular light does not work, although it does work with position lighting. I need to light a wall made of cubes. In the picture you can see a wall of 40×40 cubes enter image description here and you can ..