#49 posted by necros on 2015/08/02 22:59:46
haha yeah, i know what you mean.
as a workaround, you can start light/vis with the start.exe command:
START /BELOWNORMAL light.exe to manually set thread priority.
Nice
#50 posted by ericw on 2015/08/02 23:05:19
I'll make it do that automatically in the next release
I Have An Iq Of -94
#51 posted by DaZ on 2015/08/03 16:09:00
Sleepwalkr, I'm fixing the fgd but I don't understand a few parts of it.
_range(integer) : "Global light range" : 0.5 : "Scales the brightness range of all lights without affecting their fade discance. Values of n more than 0.5 makes lights brighter and n less than 0.5 makes lights less bright. The same effect can be achieved on individual lights by adjusting both the 'light' and 'wait' attributes"
If I just set the value type to float instead of integer will that fix the error? This value defaults to 0.5 and 1 will change light values in the map.
@baseclass base(Appearflags) flags(Angle) size(-16 -16 -24, 16 16 32) offset(0 0 24)
color(0 255 0) = PlayerClass []
Honestly I just copied this from the fgd that ships with Jackhammer so I don't actually understand it. Can you post the correct syntax and I can update it!
<3 <3
#52 posted by necros on 2015/08/03 16:20:12
For float values, just use string!
Daz
The integer vs. float thing: Integers cannot (or at least should not) have non-integer values, so that default value of 0.5 is nonsensical. Either use float or use an integer default value. If non-integer values are supposed to be okay, then do this:
_range(float) : "Global light range" : "0.5" : "yadda yadda"
As necros said, default values for floats should be in quotes.
As for the flags thing, what are these flags actually for? Does that specify additional spawnflags? Maybe it's something only JH understands.
Either way, TB2 now ignores such things (and gives a warning), but it would be cool if that FGD were compatible with all editors.
If you want, I'll make you a TB2 build to test with so that you can make all warnings go away.
TB1 also doesn't like the "color255" types used by JH.
Ok
#55 posted by DaZ on 2015/08/03 20:01:13
It might be JH specific. Thinking about it now it might be the part that tells the editor to show the direction arrow in the 3d view for info_* and monster_* entities.
I will change to a float for those two non integer integers.
Onetruepurple : the color255 brings up the colour wheel for selecting light colours in an rgb 255 format. it's too useful to remove. It would be wonderful if TB supported something like this but for now I guess sleepwalkr can ignore this specific attribute?
TB has a full fledged color picker but I wasn't sure how to replace color255 with it.
It Does?
#57 posted by DaZ on 2015/08/03 20:12:16
I can't find it. TB or TB2?
Derp?
#59 posted by ericw on 2015/08/03 20:21:35
I'm not sure how it's set up internally, but if you add a "_color" key to a light in TB1, a color editor shows up when that row is selected.
#60 posted by necros on 2015/08/03 20:54:19
i think it is hardcoded currently? _sunlight_color gives a picker, but _sunlight2_color does not, for example.
TB1 Doesn't Support It
TB2 will at some point. Right now, the special semantics of that property are ignored, but it will load and it will show up in the editor.
The Color Picker
it's not hardcoded, but it tries to guess whether a property is a color property by examining it's name. It's flaky, and the color255 and color1 property definitions in the FGD would surely help. I will support those in TB 2.1
#63 posted by Rick on 2015/08/04 00:14:17
I just tried out this new light utility. I'm have trouble getting lava to look right, but I'm sure I'll get it figured out. One question. Is there a limit to how many surface lights? Because I'm getting some ideas here. I realize it's just one light per texture name, but if I have 30 different light type textures, each can have a different type of surface light emit?
Actually,
#64 posted by ericw on 2015/08/04 00:20:54
no problem having multiple surface lights with the same texture name.
The way to think of it is the "_surface" key causes a light to be deleted, and then copies placed across surfaces with that texture.
There is currently a 65k limit on total number of lights, for no good reason, but the light tool will be really slow if you get anywhere near that number of lights.
#65 posted by Rick on 2015/08/04 00:56:05
Okay, so it's possible to have multiple different style lights per texture name in addition to many light emitting textures. This is pretty cool.
Just as an experiment I lit up a rock formation inside a cave with a func_wall then removed the brush using killtarget on a trigger when the map loaded. Worked fine.
I like that the color of the light is controllable. The Quake 2 surface light color was taken from the texture which probably contributed to its reputation for garishly colored lighting.
Surface Lights Moved From Jam Thread...
#66 posted by necros on 2015/08/04 23:46:56
yeah, what happens is the surface lights are already spawning arrays of lights, then each of those lights gets another array of lights. I ran into the same thing, but when you think about it, deviance on surface lights is only necessary if it is a single light (eg: a small wall texture), but not in the case of lava.
i wonder if you could track how many lights have been spawned as part of the surface lighting and if it is over a threshold, do not apply deviance lighting. just some internal tracking, nothing added to the actual map or anything.
because you would want to use deviance lights for small 32x32 lights, for example.
Hm Good Idea
#67 posted by ericw on 2015/08/05 00:08:43
That would be nice to have. Maybe I was premature to disable combining _deviance + _surface; I could just make it print a warning.
Jitterning
#68 posted by Rick on 2015/08/07 21:56:38
ericw,
I had to switch to a faster computer for building the bsp because light was getting pretty slow on my editing computer. I now get those jitterning messages I asked about in the mapping thread. First time I've seen them. Not just a few, but screen after screen of it, but it doesn't take very long to get to the progress indication and the resulting bsp is fine, I just thought you might like to know.
Can You Check You're On The Latest Version?
#69 posted by ericw on 2015/08/07 23:12:37
Duh
#70 posted by Rick on 2015/08/08 01:33:43
Stupid me. There's a copy of the 7/13/2015 zip sitting right there in the maps folder. I guess I downloaded the newer version but forgot to extract it, because the exe in that folder (the one I'm using) is dated 5/15/2015.
Windows Symlinks
#71 posted by necros on 2015/08/09 06:19:40
is there a problem with reading .wads from symlinks? I can only use a single .wad file, if i try to add more than one, it will only read one of them.
although... maybe it's not related to symlinks as it happens if it is absolute or relative paths.
Help Installing Tyrutils-ericw On Linux
So I've downloaded and extracted the tgz archive, but I don't know where to go from here (can't remember how I got the original tyrutils up and running, and I'm sure I didn't do it in the most elegant way).
Also, I'm not sure if downloading the archive was the best first step, as I'd ideally like to set it up so as to be directly update-able from github (the way I've got TB2 set up -- but I needed a hell of a lot of help in getting that up and running too, and understood virtually nothing of what I was doing!).
Could someone give me some noob-friendly instructions, or tell me where I can find them?
Sure
#73 posted by ericw on 2015/08/09 18:22:51
I should add these to the readme. Assuming you start in your home directory,
git clone https://github.com/ericwa/tyrutils-ericw.git
cd tyrutils-ericw
make
If there are no errors this will generate ~/tyrutils-ericw/bin/qbsp, etc.
To update:
cd tyrutils-ericw
git pull
make clean
make
|