Jump to content

Brightmaps Tutorial


Recommended Posts

Hello.

I might as well do one myself. We're gonna do something called Brightmaps. OpenGL is required so it works with GZDoom and Zandronum.

What you need, SLADE 3 and a graphic editing program like Paint.net

Here's what you do. Have 2 sprites that are the same, but edit one of them by making them black, white, and grey. The darker the grey, the darker the glow is. We're gonna be focusing on black and white.

Graphics:
Brightmap -
Sprite -

Both names needs to be the same, but one of them needs to have BM which would be the Brightmap graphic. (BMSHOTA0)

Do not put the Brightmap graphic in the S_START or S_END markers or you will get errors.

Code for brightmap via GLDEFS. Pay attention to the name of the brightmap graphic:

Brightmap sprite SHOTA0
{
MAP BMSHOTA0
Disablefullbright
}

What disablefullbright does, it nullifies the BRIGHT State in DECORATE.

Thank you and I hope this was helpful :)

Omegalore over and out!

Share this post


Link to post
  • 6 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...