LoadBump() for code generated images?

About Monkey 2 Forums Monkey 2 Programming Help LoadBump() for code generated images?

This topic contains 2 replies, has 2 voices, and was last updated by  Diffrenzy 2 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7516

    Diffrenzy
    Keymaster

    I’m trying out MX2s lightning system, and it seems I need Image.LoadBump() for it to work?

    How do I LoadBump with images generated in code? ( In my case vector drawings rendered to Images)

    It seems LoadBump() only has a constructor that takes files as input.

    #7519

    Mark Sibly
    Keymaster

    Have a look at the source for LoadBump – it basically just uses Texture.Load,Texture.LoadNormal and Image.SetTexture.

    #7525

    Diffrenzy
    Keymaster

    Thanks. I’ll think about making a functional replacement, but I think what I’m looking for is probably more along the lines of not using a bumpmap at all, and only having to add a Shadowcaster.

    For now, I think I’ll roll my own shadow overlay.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.