Having trouble with D3D 8 Gamma Ramps

Started by
5 comments, last by Forcas 22 years, 4 months ago
Okay... so I have this Ramp stucture, D3DGAMMARAMP MyRamp, and after initializing the graphics, I try to fill it with the current ramp, like this:
lp3dd->GetGammaRamp(&MyRamp) 
When I try to replace the current gamma ramp with MyRamp, by doing this:
  lp3dd->SetGammaRamp(D3DSGR_CALIBRATE, &MyRamp);  
The screen blacks out. The only time I modify MyRamp is when I call GetGammaRamp. What could I be doing wrong?
-Forcaswriteln("Does this actually work?");
Advertisement
*bump*
-Forcaswriteln("Does this actually work?");
Try leaving out the D3DSGR_CALIBRATE. It doesn''t work on all machines, so you''d have to do all the testing for it first.
Still doesn''t work. I''ve heard from some people that gamma ramps won''t work with DirectX 8 and a GeForce 256. Could this be true?
-Forcaswriteln("Does this actually work?");
I don't think GetGammaRamp is working properly for me. When I call GetGammaRamp, and try using the MyRamp.red[x] value, it acts as the value of x. EVEN WHEN x is over 255!!! WHat's going on here? I thought the array was only supposed to have 256 elements.

Edited by - Forcas on December 19, 2001 11:00:41 PM
-Forcaswriteln("Does this actually work?");
I just want to say that I have the same problem, I have a Voodoo 3.

*** Triality ***
*** Triality ***
Hmm... interesting. Has ANYONE gotten Gamma Ramps to work with DX8?
-Forcaswriteln("Does this actually work?");

This topic is closed to new replies.

Advertisement