News | Forum | People | FAQ | Links | Search | Register | Log in
Ericw-tools Quake Map Compiling Tools V0.16
This is the continuation of the previous
tyrutils-ericw thread now that the project is renamed.

Website
Github issues - feel free to report bugs / upload screenshots / test maps
Github releases (downloads) page

v0.16 is not the most amazing release because I am still working on fixing lightmap seam issues. However it has 2 somewhat important fixes:

- Fix MarkV .lit rendering (do the color->greyscale conversion in a way that forces MarkV, FTEQW to render identically to Fitzquake, Quakespasm)
- better detection of when BSP29 format bsp exceeds the format limits. Previously it would silently produce corrupt bsp's if you exceeded 64k leafs/nodes without manually enabling -bsp2 mode.
First | Previous | Next | Last
Ah Right 
Well, I think one of the biggest uses for me would be the aforementioned torch sconces where I'd maintain just a small selection of lighting prefabs; each containing some func_detail_* sconce thingy, plus a torch entity and maybe complimented with a couple of secondary filler lights.

I'm fairly schizophrenic when it comes to lighting, and often decide to change every single light in my map in a certain way, and then some time later, I end up changing them all again, etc. Being able to do this through prefabs would be a "game changer", to coin a phrase :} 
Yeah 
What Kinn said is why I wanted instanced groups in TB so much. You could just stick your light setup (brushes + ents) in an instance group and copy it around the map, thus easy to iterate over time. 
Quinstance 
I've avoided directly addressing this, for fear of seeming to shit on eric's efforts in the same vein, but I feel I should clarify that Quinstance is not for external BSP files, but for MAPs, and already does what Kinn's looking for.

It is an external tool, which of course complicates compile setup, and it (along with VMFII, which does all the real work) is written in C#, which demands the .NET Framework in Windows or Mono in Linux and macOS, so I understand the value of doing a similar thing in a native tool, especially one already so widely used. Until entity support arrives in ericw's QBSP, though, you could use Quinstance to have easily tweakable prefab entity configurations. Nesting, entity name fixup, @ syntax, material replacements, most of the Source func_instance features work with Quinstance. The "origin" and "params" entities found in that engine don't, but VMFII doesn't support them either.

If you need example usage, I could pack some of my own maps up for you. The Jam 7 and Retro Jam 5 distributions include source for my entries that separates the main map from the instances, but only in JMF form, which I'm only now realizing I shouldn't have done. For most other Jams I only sent in collapsed versions, i.e. after the instances were resolved, but I've used instances on all but one of my maps going back to Jam 6 (including the "bubbler" ornaments in my Xmas Jam map), so I have plenty of samples if anyone's curious.

Eric, if you're interested, both my wrapper code and Metapyziks' is MIT licensed (really "X11", pardon me), so despite it being a different language you're free to browse it for ideas of how to approach the problem without fear of running afoul of some oddball license terms. Or how not to, if the techniques prove unappealing. I know the VMFII dev has expressed a desire, at one point or another, to redo the project to greater or lesser extent, so how much you'd want to imitate I don't know. 
Just Noticed 
the super useful _dirt_off_radius / _dirt_on_radius stuff seems to be missing from the website documentation. 
Hmmmm.... 
Anyone else seeing buggy behaviour with the "mangle" setting on "_sun" "1" lights? Try setting a few different yaw values on the mangle... 
Ericw 
What does external bsp support offer that would be different from setting the model key on a func_illusionary to a .bsp? (Ignoring precache requiring engines of course) 
 
its external_map not external_bsp :P 
Oh 
So it's a simplified quinstance that's editor independent. Cool. 
 
Any love for quake 2? :) 
External_map Ents 
Would be awesome. I’m think it could be used for lots of interesting stuff 
 
Any love for quake 2? :)
Nothing usable right now, but I made some progress a few months ago (light.exe can read q2 bsp's and write them out with working lightmaps). What's missing is mapping the Q2 contents / surface flags to the what the tool can understand. 
V0.17 
Small update, mostly with changes to how invalid valve220 texturing is handled:
https://github.com/ericwa/ericw-tools/releases

I'll do another release soon with _phong_angle_concave which lets you disable / change the phong shading threshold for crevices / concave joints. 
Phong Concave 
Sounds amazing 
_phong_angle_concave 
Yeah I've tested it and it's really useful for rocky structures where you want to smooth out the convex areas, but keep the concave parts hard (like where boulders intersect basically).
Also useful on some weird low-poly arch setups with angled trims where you'll only want concave smoothed but not convex. 
V0.18 
https://github.com/ericwa/ericw-tools/releases

Another small update:
- light: tweak phong shading to use area and angle weighting
- light: add "_phong_angle_concave" key
- light: fix -bspx option

full explanation for _phong_angle_concave is in the light manual: http://ericwa.github.io/ericw-tools/doc/light.html

I was going to add a toggle for the new area/angle phong shading weighting, but it's too subtle to notice in most cases, but I can make it optional if needed. 
Yay 
Thanks again for _phong_angle_concave, it's quite handy!
I have some ideas of stuff to do with the new area weighting that will probably show off better how it helps, need to find some time to do it. 
 
Silly question, does light still act really strange around certain geometry (example on github here) or is 0.15.9 still the most reliable version? 
Spud 
I haven't had those kinds of artifacts in a while with the new versions, at least not on sealed maps (sometimes on leaky maps the lighting is a bit weird). 
CLEric, Hope You Don't Mind @Mankrip 
Been just dabbling a bit with my own flava of a compiling utility when tonight I had this idea:

https://media.discordapp.net/attachments/292236607199641600/416478757516345344/Clipboard01.jpg

After you set all your options just click "mini mode", stays on top also, and then no alt-tabbing to the compiling UI!

Anyhoo's... beyond that I almost have the "simple compile" interface done. then it will be on to the advanced UI design part. It will also have the map conversion and bsp operations(extract textures etc) incorporated as well.

tootles ;) 
"Debug" Preview Of The "simple" Compile UI 
I say Debug because I have screen elements that will not be in final design, they are there just so I can see what's it going on.

Here it is:
https://i.imgur.com/UzyjChj.jpg

I know "central" part looks identical to WC/Hammer/Jack etc, I just like that layout. Still not set in stone, if I "see" and easier to view arrangement I will ofc change it. 
@damage_inc 
This is windows-only gui tool or crossplatform? 
@Doomer, Most Likely. 
I loaded up my 'Nix distro, which is severely aged at this point, and it partially worked(Under Wine). Which is ofc not good enough. 
Wine Its Not Very Good. 
What was used to create this tool - MFC, .NET (WFp or WinForms), Delphi? 
@Doomer 
An off-the-wall Basic IDE! Yes, laugh... hehe

I'm no programmer, and in reality this is just a glorified batch file/commandline tool. Mostly string declarations, manipulations and paths saving.

If there is an easy to use, freely downloadable cross platform IDE let me know. I would consider rewriting it.

All I need is access to File and Folder dialogs plus write to .INI files. 
#38 
LoL, nice. 
Working With Func_detail Stuff 
Is a bit of a pain. Would be real handy to just rely on standard func_groups/etc for organizing in editor and then just slap a detail flag on whatever as needed. Maybe handling it like q3map2 does is possible. Would feel more consistent and be less of a headache to work with for sure. 
Like...a Spanwflag? Interesting. 
But maybe I missed something. What is the point of func_group if you can just group a bunch of func_detail or standard brushes in the editor? 
Just Like In Q3 + Radiant, 
a simple "detail or not" flag for the compiler with filtering in editor. I don't know if anything more is needed for quake? To me func_detail_ seems unnecessary and it'd be much better just marking brushes as detail. You could have detail stuff and worldspawn linked together in func_groups then atleast.
I did notice too that func_detail_wall and func_wall don't behave the same in game; custom entity keys were removed from func_detail_wall I think. 
 
To me func_detail_ seems unnecessary and it'd be much better just marking brushes as detail.

That requires a new map format.

That's why func_detail exists. To allow you to flag detail using the existing quake map format. 
 
I can add support for the quake 3 .map format's detail flag (stored per-plane in the .map file). @Qmaster in GTKRadiant there is a shortcut key to turn the selection into detail, so it could be handy if that's your editor. 
 
I did notice too that func_detail_wall and func_wall don't behave the same in game; custom entity keys were removed from func_detail_wall I think

They are completely different beasts.

func_wall is a separate entity in game, potentially interactive.

func_detail_wall becomes "baked" into the world geometry on compiling, like func_detail. Unlike func_detail, it doesn't chop up world faces that it butts into. 
 
An alternate approach is to adopt just the UI aspect from q3radiant (the keyboard input) -- under the hood the editor could be using that flag/unflag operation to move the brush from world to func and back. Don't show it to the user as an entity, show it as world brushes with detail flag, but store it as a func. 
 
you'd also still need to support _phong and all the other keys that you'd want on detail too... 
 
Would be awesome to have q3 style detailing as option eric. Wanted to ask this ages ago.. Before pestering niger to add support -)
Will be easy enough to just use func_groups to add keys I assume. 
 
It just occurred to me — are BSP entities self-shadowed?

For BSP entities that doesn't cast shadows onto the world, it would make sense for them not to cast shadows over themselves either. This would also require them to support backfaced lighting, like the lit liquids does. 
 
They're not self-shadowed; you can opt to it with "_selfshadow" "1" though. Enabling world shadows with "_shadow" "1" implies self-shadowing too. (All of this should be consistent with tyrutils). 
 
Can I use these to compile q2 maps? 
#56 
No. But you can compile Hexen 2 maps.

Check out this page near the bottom for compiling tools. http://maps.rcmd.org/tutorials/q2_mapping_today/ 
 
Not currently, but the next update will have experimental support for q2 in the light tool only (so it'll be possible to use this 'light' in conjunction with a quake 2 qbsp + vis), thanks to m-x-d's contribution! I've been slow to get to testing it but planning to soon. 
#55 
Nice. Can you implement an entity field to enable lighting from the back, like in the liquids?

This would be useful for opaque glasses such as the func_illusionary stained glass windows in some E4 maps (they're completely black from behind when you enter their secret area), and for new stuff like ice bridges, etc. 
@mankrip 
I think it's actually textured with "black" on those levels, but what you want is _mirror_inside 1. Or was it _mirrorinside 1. To add backfaces inside the brush. 
 
No, adding backfaces is a different thing. I'm talking about letting the surfaces be lit from behind, just like EricW already did for the water. 
Argreed 
this would be a good addition. "_light_from_behind"? 
 
Yeah, that could work. 
Bug With _lightignore? 
I have a platform with "_minlight" set to 300 and "_lightignore" set to 1 and the result looks less uniform than expected:

https://media.giphy.com/media/xiBtcFw60XXFvNYIMn/giphy.gif

It looks like the torches affect the minlight of the platform even if it's supposed to ignore all lights, right? The darker areas of the platform also looks very dark even if _minlight is set to 300. Is this supposed to happen? 
Add A _maxlight Key? 
Forgot to write in the previous post, that the problem made me wish there was a "_maxlight" key to prevent some areas from being too bright, so that's something for you to consider implementing in future versions. :) 
Multiple Minlight Excluded Textures 
Sorry for the spam, but I keep remembering stuff in drops. ;C

Currently the "_minlight_exclude" key allows for only one texture, right? Could you make it possible to have more than one texture be excluded by separating the textures with a comma/semicolon etc? 
I Figured It Out! 
It turned out that the cause of the non-uniform brightness was the "_dirt" key in the worldspawn. That affected the brightness of the elevator in the narrow hole. I solved the problem by adding a key/value combo of "_dirt/-1" for the platform.

But my two previous suggestion posts still stand. Something for Eric to consider implementing. :) Sorry for the spam again! @_@ 
 
+1 for _maxlight key

it would be handy to give certain brushes a range with _minlight and _maxlight 
_project_texture 
I know from experience this is a tough feature to work with and it's currently pretty limited. But if it could be improved I think many more ppl would use it. I was able to get a pretty decent result in my 100b4 map. The big 4 on the far wall is a projection.

I'm wondering if there's any way to rethink this or improve the functionality somehow? 
Projections 
there's four ways to improve it.
1) tga/png images. either way qbsp really needs the ability to read tgas too, not just the light util. wads need to die (or at least have the option to be killed for non-fullbright surfaces).
2) cubemaps. project all 6 sides instead of just 1. it should reduce issues with fovs higher than 90 and potentially improve rtlight compat, but 6 faces is more of a pain to create.
3) lights placed INSIDE the brush containing the light that is being projected, which would be especially handy with cubemaps. Failing that, just switching the light to an orthographic projection would properly allow for sunlight through windows.
4) higher lightmap resolution, so that the projections can actually be seen without turning into a blurry mess. You can already achieve that in a backwards compatible way by using _lmscale, however it'll currently only work in FTE+QSS when compiled with ericw's tools. Otherwise you can achieve higher resolutions by just rescaling the texcoords and increasing the texture size to compensate (ericw was toying with the idea of automatically doing this a while back), but this sort of thing has a direct impact upon texture filtering etc.

stuff like that '4' might be better served by adding support for decals somehow - even if they're still just lightmaps it would be easier to align them, avoiding bluring and effectively doubling their resolution. failing that there's always fence textures.

either way, any kind of change requires someone to devote their time to implement said change... 
BTW 
That map was clever as hell! Great job! 
 
As Spike said, the lightmap resolution being tied to 1/16 of the texture resolution brings unavoidable conflicts.

Personally, I'm eventually going to create a different BSP format where the lightmap projection and texture projection will be completely independent (plus other features). It's the only way to implement this nicely. 
 
doesn't upscaling the projected texture help make it look better? 
#71, 73 
@generic Thank you!

@Snaut I don't recall if I tried anything over 512. It was a long afternoon of trial and error. 
 
there's no mipmapping or anything on the projections, so if your projected texture is too high res, then all that will happen is that it'll skip over various pixels completely, resulting in shimmering at least if it were moving in realtime.

so 1 lightmap sample per 16 wall texels, which means 1 per 16qu with quake's default texture scaling. a fov of 90 is probably easiest to figure out the required distances of the light.
Thanks to linear filtering, a 16*16 lightmap covers only an area of 240*240qu, not 256*256.
the same is true for a projected light image if you want it to match your lightmaps.
so a fov90 projected texture that's 16*16 should be 120qu away from your 240qu*240qu 16-aligned wall. your light should be centered where you want it - which means misaligned by 8qu on each axis from your 16qu grid.
assuming I didn't embarrassingly screw up the maths anywhere, that should give you the best resulting image quality.
a 17*17 projected texture would be cleaner (128qu from the wall, aligned to the grid, woo), but mipmaps need to be a multiple of 16, so that's not presently possible. :(
The res will still suck though. _lmscale on a func_detail is the easy engine-specific way I'd do it, but if you want to instead double the texel density then just change the scale and halve the distances - just remember that doubling the projected texels from 16 to 32 is actually 15 to 31 luxels, which is NOT doubled, so 124qu instead of 120qu from the surface (and along from the minimum point of the surface - this is the point the lightmap is aligned to). 
Spoike 
Thanks for helping with guidelinesom this. I know what I'll be messing with this weekend. 
Feature Request 
Can we have the params used for each of the build tools stored as extra keys in the worldspawn entity?

For light in particular, because so much behaviour can be dependent on the command-line params, this would be useful to be able to recreate the build.

I'm thinking something like:

{
"classname" "worldspawn"
"_qbspparams" "-splitturb"
"_lightparams" "-extra"
"_visparams" "-level 4"
#77 
Also good for newer mappers to see how the tools were used at a glance. I dog this suggestion. 
First | Previous | Next | Last
Post A Reply:
Name:
Title:
Body:
message
question
exclamation
idea
flame
noflame
error
skull
beer
moon
pent
rocket
sheep
pacman
pig
cheese
worldcraft
gauntlet
crate
pitfall
pimp
smile
cool
sad
frown
oi
yay
tongue
evil
wink
neutral
q1
q2
q3
ut
hl
cs
doom
dkt
serious
cube
Website copyright © 2002-2018 John Fitzgibbons. All posts are copyright their respective authors.