Code Monkey home page Code Monkey logo

mhlight's Introduction

Not a general purpose lighting utility; this is the latest version of MHColour. I'd originally updated it back in 2007, but never got round to releasing it then. A few final bits of work and here it is.

Use it to generate a LIT file for (almost) any BSP; information from fullbright colours in the textures and from lava and slime textures is used to create colour values for nearby lights. Certain special lights (torches, etc) are also coloured.

Bugs? Limitations? I'm sure it has plenty... here's what I know of for sure:

  • It seems to become unhappy with Hipnotic rotating brushes - not sure why and can't really be bothered to find out right now. It won't crash, but it won't light the brush either.

  • It's based on the original ID Light utility, so all limitations and bugs that apply to that also apply to this. It'll probably choke on really large BSPs. One exception - I added "-extra4" as an option.

  • As well as generating a LIT file it will also relight the BSP. LIT files created by this probably won't be redistributable. The reason for this is that I tried it the other way and it didn't work; packing the LIT data into the same face offsets used by the original produced weird results on some brushes. It only takes about half an hour to relight all of ID1 with -extra4 on a modern PC anyway, so it doesn't matter too much.

If anybody does anything cool with this I'd love to know; you can normally find me hanging around on Inside3D.

mhlight's People

Contributors

danielstravito avatar dsvensson avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

klaussilveira

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.