Beispiel #1
0
    // This method calculates the respective DKL values for each target color material
    void GetStartingDKL()
    {
        // Convert RGB to DKL-hue&sat (for target color)
        float[] targetDKLProperties = m_dklConversion.RGBtoDKL(targetRed, targetGreen, targetBlue, 0);
        targetVectorLength = 1.0f;      // starting DKL saturation value
        //targetAzimuth = 0f;              // starting DKL hue value
        targetElevation = 15f;          // starting DKL luminance value

        // Convert RGB to DKL-hue&sat (for dist 1 color)
        float[] dist1DKLProperties = m_dklConversion.RGBtoDKL(dist1Red, dist1Green, dist1Blue, 0);
        dist1VectorLength = 1.0f;
        //dist1Azimuth = 90f;
        dist1Elevation = 15f;

        // Convert RGB to DKL-hue&sat (for dist 2 color)
        float[] dist2DKLProperties = m_dklConversion.RGBtoDKL(dist2Red, dist2Green, dist2Blue, 0);
        dist2VectorLength = 1.0f;
        //dist2Azimuth = 270f;
        dist2Elevation = 15f;
    }
Beispiel #2
0
    // This method calculates the respective DKL values for each target color material
    void GetStartingDKL()
    {
        // Convert RGB to DKL-hue&sat (for blue)
        float[] blueDKLProperties = m_dklConversion.RGBtoDKL(blueRed, blueGreen, blueBlue, 0);
        blueVectorLength = 1.5f; // blueDKLProperties[0];      // starting blue DKL saturation value
        blueAzimuth      = 180f; // blueDKLProperties[1];             // starting blue DKL hue value
        blueElevation    = 20f;  // 7f; // blueDKLProperties[2];       // starting blue DKL luminance value

        // Convert RGB to DKL-hue&sat (for red)
        float[] redDKLProperties = m_dklConversion.RGBtoDKL(redRed, redGreen, redBlue, 0);
        redVectorLength = 1.0f; // redDKLProperties[0];      // starting red DKL saturation value
        redAzimuth      = 0f;   // redDKLProperties[1];             // starting red DKL hue value
        redElevation    = 20f;  // 7f; // redDKLProperties[2];       // starting red DKL luminance value


        // Convert RGB to DKL-hue&sat (for green)
        float[] greenDKLProperties = m_dklConversion.RGBtoDKL(greenRed, greenGreen, greenBlue, 0);
        greenVectorLength = 1.2f; // greenDKLProperties[0];      // starting green DKL saturation value
        greenAzimuth      = 270f; // greenDKLProperties[1];             // starting green DKL hue value
        greenElevation    = 20f;  // 7f; // greenDKLProperties[2];       // starting green DKL luminance value
    }