Results 1 to 8 of 8

Thread: Trouble with lights settings in shader.

  1. #1

    Trouble with lights settings in shader.

    I have 2 bases, they have some light emitting faces on them, they are on 2 seperate materials and material id's. I have 2 shaders for the 2 materials (one red and one blue), and the shaders have the same "power" values for light.

    When i make the values of light "power" identical then one base does not get lit.
    example: if i make the power 5000 in the red and 5000 in blue then only one will produce light.
    if i make the power 4999 in red and 5000 in blue then only blue shows and vice versa.

    im really quite stumped.

  2. #2
    Senior Member
    Join Date
    Nov 2007
    Posts
    2,576

    Re: Trouble with lights settings in shader.

    Try taking both textures and putting them into 1 texture
    Use only 1 shader instead now, and only use white as your light. Should work then.
    (if you were using red and blue, then idk sry)

  3. #3

    Re: Trouble with lights settings in shader.

    I am using red and blue.
    But it should work with 2 materials and 2 shaders i thought.

  4. #4
    Senior Member
    Join Date
    Nov 2007
    Posts
    2,576

    Re: Trouble with lights settings in shader.

    Quote Originally Posted by Maniac View Post
    I am using red and blue.
    But it should work with 2 materials and 2 shaders i thought.
    Are you running radiosity in Sapien, or in Tool?
    If its tool, trying running it in sapien, if you already were using sapien, try tool then. I remember having this problem sometime ago too, and I remember I ran the final lightmaps in sapien and they both lit up.

  5. #5

    Re: Trouble with lights settings in shader.

    I was using tool.
    Ill try that, thanks Higuy.

  6. #6
    Chris chrisk123999's Avatar
    Join Date
    May 2009
    Location
    Florida, USA
    Posts
    646

    Re: Trouble with lights settings in shader.

    Tool doesn't do lights right. Sometimes it does them, sometimes it doesn't.

  7. #7
    Free Kantanomo English Mobster's Avatar
    Join Date
    Nov 2008
    Location
    Southern California
    Posts
    1,932

    Re: Trouble with lights settings in shader.

    If you have 2 shaders referencing the same bitmap, it'll randomly choose one of them. It sounds like you're using the same bitmap, but trying to use 2 different shaders to light them, one red and one blue.

  8. #8

    Re: Trouble with lights settings in shader.

    I am using 2 bitmaps (red and blue) and 2 shaders (red and blue)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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