User Tag List

Results 1 to 3 of 3

Thread: Multiple Values?

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple Values?

    Hi, I am just wondering how you can set multiple values for example to set a color. I am just testing fog and it works fine but the only problem is the variable use for the color. In standard OpenGL it's like this i think -

    GLfloat fogColor[4]= {0.5f, 0.5f, 0.5f, 1.0f};

    glFogfv(GL_FOG_COLOR, fogColor);

    If i try -

    fogColor = ( 0.5, 0.5, 0.5, 1.0 )

    or

    fogColor[4] = ( 0.5, 0.5, 0.5, 1.0 )

    or

    gl.float fogColor[4] = { 0.5, 0.5, 0.5, 1.0 }

    gl.Fog(gl.FOG_COLOR, fogColor)

    And various other attempts return a black screen. Without setting a color it shows fine but then the fog is always black as default but i wanted to set a grey so it appears more like real fog. Does anyone know how to do this with Xlua OpenGL code?


  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Multiple Values?

    gl.Fog(gl.FOG_COLOR, { 0.5, 0.5, 0.5, 1.0 })
    should work. However, the background is not set to this color. Only polygons that are rendered (with gl.Vertex) are.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Aug 2006
    Posts
    2,335
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Values?

    Thanks Looki that works

Similar Threads

  1. Question about Global Values for Multiple-Powerup-Object
    By vSv in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th May 2013, 05:34 PM
  2. X and Y values of multiple actives of the same typ
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 20th February 2011, 02:18 PM
  3. Adding alterable values of multiple objects
    By Digitalic in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 11th June 2010, 01:40 PM
  4. Compare Multiple Values?
    By Dynamite in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 2nd June 2009, 12:31 AM
  5. Sum (multiple alt values, multiple objects)
    By Melvin in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 20th April 2007, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •