I was just going through the tutorials on the site. In tutorial3, adding color to the image, i have an issue.
When I add either two lines to the code:
renderer.ClearGradient();
renderer.AddGradientPoint (-1.0000, utils::Color( 0, 0, 128, 255)); //deeps
the program crashes with this error message:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
The EnableLight, SetLightContrast and SetLightBrightness functions work fine.
Any suggestions.
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi just to add, the BuildTerrainGradient() works which basically replaces the code in the tutorial number 3. It calls the ClearGradient and AddGradientPoint functions internally.
The ClearGradient and AddGradient functions are a part of the RenderImage class, so am a bit surprised.
Is this a bug or something? I am working on Windows XP, if that helps.
Cheers,
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Guys,
First and foremost, libnoise is pretty cool. :)
I was just going through the tutorials on the site. In tutorial3, adding color to the image, i have an issue.
When I add either two lines to the code:
renderer.ClearGradient();
renderer.AddGradientPoint (-1.0000, utils::Color( 0, 0, 128, 255)); //deeps
the program crashes with this error message:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
The EnableLight, SetLightContrast and SetLightBrightness functions work fine.
Any suggestions.
Thanks in advance.
Hi just to add, the BuildTerrainGradient() works which basically replaces the code in the tutorial number 3. It calls the ClearGradient and AddGradientPoint functions internally.
The ClearGradient and AddGradient functions are a part of the RenderImage class, so am a bit surprised.
Is this a bug or something? I am working on Windows XP, if that helps.
Cheers,