ericwa / ericw-tools

Quake/Hexen 2 Map compiling tools - branch of http://disenchant.net/utils
http://ericwa.github.io/ericw-tools
GNU General Public License v2.0
309 stars 56 forks source link

Messed up lighting #190

Open totalnewbie opened 6 years ago

totalnewbie commented 6 years ago

Sorry if this is not the right place to post this.

Map created with TrenchBroom V2.0.0-RC4 Compiled using ericw-tools v0.15.11; downloaded the linux64 package from https://ericwa.github.io/ericw-tools/ OS is LinuxMint 17.3 (rosa) 64 bit

Map is Standard format (converted at some point from Valve using ericw-tools) Map is unsealed Ran qbsp with no options. Ran light with -bounce -soft -extra4

The lighting is all messed up. Here is an example: light2

And here is a small part of the map I copied to a new file (with a single light_torch_small_walltorch as the only light source). Compiled again; same result: light

Do you need the map file or any other information?

ericwa commented 6 years ago

Sorry if this is not the right place to post this.

Right here is fine :-)

Sorry about this, I need to fix these issues with the "light" tool. As of now (well, since 0.15.10) quality suffers when the map is unsealed. I am planning to fix that; made issue #177 for that. And even on sealed maps, there are more lightmap seams in the current version than 0.15.9.

If it's not inconvenient it might be helpful to upload this segment of the map, just so I can confirm the fix when I work on it.

As a workaround, I would not worry about the artifacts until the map is sealed; they should be a lot less at that point. Maybe try removing "-soft". You could also use light from v0.15.9 until I fix these issues, I know a few people are doing that.

totalnewbie commented 6 years ago

Thanks for the response. I e-mailed you the map file.

You could also use light from v0.15.9 until I fix these issues, I know a few people are doing that.

Thanks! Err, how do I do that? I downloaded the packaged version of v0.15.11, but I'm guessing if I want to use 0.15.9 I would need to do all that magic with git commands and pulling and reverting and so on, right? I have no real idea how any of that works, but I know how to copy and paste commands into a Linux terminal. :)

As a workaround, I would not worry about the artifacts until the map is sealed; they should be a lot less at that point. Maybe try removing "-soft".

Thanks. Removing "soft" doesn't really seem to help.

Just to be clear, it's not just about the blocky shadows everywhere. Even if you squint and ignore all of that, the lighting is still wrong -- most obviously if you look at the two bars that do not cast any shadow (and that torch is the only light source).

ericwa commented 6 years ago

Thanks, got the email.

You can get a Linux package of 0.15.9 here: https://github.com/ericwa/ericw-tools/releases/tag/ericw-v0.15.9 (the "releases" page on GitHub has all of the past versions if you ever need it). It should work just like the 0.15.11 Linux binary package, hopefully.. let me know if it doesn't run for you.

The best bet would be to use qbsp and vis from 0.15.11 and light from 0.15.9

Even if you squint and ignore all of that, the lighting is still wrong -- most obviously if you look at the two bars that do not cast any shadow (and that torch is the only light source).

Yeah - I think I know what's going on. This is a good test case, because quickly changing lighting (around the bars meeting the wall opening) is hard to get right with low res lightmaps.. and I didn't test enough with something like this when working on it last, so it should help me to have this map.

totalnewbie commented 6 years ago

Thank you very much for the info on where to get older versions!

let me know if it doesn't run for you.

I get the following error when I try to run light from version 0.15.9:

error while loading shared libraries: libembree.so.2: cannot open shared object file: No such file or directory

I assumed that meant that I needed to install something called " libembree.so.2", so I opened Synaptic and search for "libembree" but could find anything. Guess I assumed wrong...?

ericwa commented 6 years ago

Ah.. sorry, the 0.15.9 archive was broken on linux. It was a packaging mistake on my end that I fixed in the following release.

In this case, it's probably easiest for me to just fix this properly and do a new release, rather than patching old versions.

totalnewbie commented 6 years ago

Of course, fair enough.

Thanks anyway -- either way it's useful to know about the "releases" page.