Bump map Bleed.

About Monkey 2 Forums Monkey 2 Development Bump map Bleed.

This topic contains 3 replies, has 2 voices, and was last updated by  Richard Betson 2 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #4646

    Richard Betson
    Participant

    I’m not sure what to call it (bleed) but when using a bump mapped image it has a black pixels where the alpha’ed (transparent) bits of an image are (see attached image).  I’ve included a gzip (see link) file containing a new bump map set of images for the logo image and a modified version of the simple light demo. This should help to show and explain the issue.

    Looks like a bug to me. 😉

    Modified simplelight demo

    #4649

    Mark Sibly
    Keymaster

    Ok, a fix for this is now up.

    A couple of notes:

    • Alpha is taken from the diffuse map so normal map can be a 24bit png. Ideally, normal maps should probably ‘blend to’ Color(0.5,0.5,1.0) where alpha=0. This value represents ‘flat’ in terms of normal maps.
    • Specular map is monochrome (only red channel is used if png is color) so can be an 8bit png. Specular actually ends up in the normal texture alpha channel so bump mapping only involves 2 textures.
    #4652

    Richard Betson
    Participant

    OK.. got it. I’ll give this a try today. Thanks!

    #4661

    Richard Betson
    Participant
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.