Menu

Color Gradient Issue

Help
dbest
2008-01-06
2013-04-30
  • dbest

    dbest - 2008-01-06

    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.

     
    • dbest

      dbest - 2008-01-06

      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,

       

Log in to post a comment.