Development > Artwork

New Feature: "Glow" textures

<< < (7/35) > >>

arisian:
Okay, I've got a basic proof-of-concept for glowing textures associated with meshes.  SVN r29460 contains the new code, along with a new image, base/models/weapons/plasrifle/plasrifle_gm.png.  The texture I've included was made very simply; I just copied the standard texture, did a color-select on the blue parts, and painted everything else black.  I also reduced the intensity somewhat.  I'm sure that our artists can do better than this, but my goal was just to demonstrate what was possible, and how easy it should be for the artists.  All you need to do is have a glowmap texture associated with any standard mesh texture.  If the mesh is called <modelname>.jpg, you just need an image called <modelname>_gm.jpg (or .png or whatever) in the same directory.  It will automatically be loaded and interpreted as a glowmap, in much the same way that a normalmap would work.  Currently, glow-maps will only get renderd when they're associated with meshes, but it should be fairly straightforward to extend the system to other types of surfaces as well.

Again, adding a glow texture doesn't require any changes to code, or the model, or anything; just drop an image with  "_gm" at the end of the object's name ("gm" for "glowmap"; we can change the abberiation if people don't like "gm"), and everything else should be handled automatically.

MCR:

Great News !!!

BTAxis:
Pretty slick. There are a bunch of meshes that could benefit from this.

H-Hour:
Looks good Arisian. I've got a non-mesh texture that I'd like to use this on in the future when (if?) it gets extended to the material system for map textures. Would it help you if I supplied a test map/textures to work with for this?

MCR:
Maybe it is my fault, but I compiled the latest rev & now all models seem to glow ?!

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version