Lighting with Monkey-X

About Monkey 2 Forums General Discussion Lighting with Monkey-X

This topic contains 17 replies, has 5 voices, and was last updated by  PixelPaladin 5 months ago.

Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #14638

    PixelPaladin
    Participant

    Okay, it seems like your code works in Cerberus-X when you replace “monkey://data/bg.png” by “cerberus://data/bg.png”.

    #14639

    cgrossi
    Participant

    Ok, I understood that, but no matter if I use MonkeyX or CerberusX the image is displayed anyway.. The problem occurs with the light, it’s not showed… The commands related to it have no effect. 🙁

    But, as I said before, I found a link with a light sample and it works fine…

    #14640

    PixelPaladin
    Participant

    For shadows on your image you need a normal map. When your image is named “bg.png” the name of the normal map must be “bg_NORMALS.png” (and “bg_SPECULAR.png” for the specular map).

    For objects to have longer shadows there is an example called “renderdemo” which uses shadow casters. To be honest I never used them and implemented my own shaders instead. This approach is a bit more complicated but gives you much more control at the same time.

Viewing 3 posts - 16 through 18 (of 18 total)

You must be logged in to reply to this topic.