News | Forum | People | FAQ | Links | Search | Register | Log in
Mapping Help
This is the place to ask about mapping problems, techniques, and bug fixing, and pretty much anything else you want to do in the level editor.

For questions about coding, check out the Coding Help thread: https://www.celephais.net/board/view_thread.php?id=60097
First | Previous | Next | Last
Weird... 
I'm building with WC and using AguirRe's tools then testing in fitz.

I've finished building a start level that uses switchable lights. I fully compiled the level, and everything tested out fine except the exit portals pointed to the wrong levels. I went back in and changed the "next map" field in the trigger_changelevels then did an -onlyents compile. The switchable lights no longer work. I followed up with a full compile and the lights work again. Just to be sure I wasn't missing something, I then went back in and changed the "message" field of the trigger_multiples in front of the exit portals and ran an -onlyents compile. The lights cease to switch.

Does this seem strange? 
That Always Happens 
you need to run aguire's light with -onlyents to relight only the switchable lights and reassign the targets to the proper lightstyles 
Ta Much Necros... 
... just adding another beer to the total I already owe you :) 
Ugly Rocks :( 
is there a way to avoid "ugly rocks syndrome" in d3 engine?

http://img418.imageshack.us/img418/8317/shot000043gb.jpg 
 
d3 engine noob here, but you could try just putting some small non shadow casting lights to try to light up the darker faces?

it seems to work ok on angular geometry, but i've never tried it with terrain, so it might not look any better...

also, i don't know how much performance hit non shadow casters make on a large scale as i've only done it in small quantities. 
Attn: Aguirre 
Check out this screenshot from your engine:
http://img475.imageshack.us/my.php?image=foghuh1cj.jpg
What causes that black triangle in the back there?
The sky is RGB 0 0 0, fog parms are RGB 0 0 0, density 0.0666, so in theory the sky and fog should always be of same color. Yet I do see this black "clip plane" there. Tried messing with the gamma and it still shows up.

Would like to know really! 
Difficult To Say 
from the shot, but in general if you're experiencing weird artifacts with sky and fog, you can try tweaking the gl_skyclip cvar (default 4608). It controls the farclip distance of sky in fog.

There seems to be an inherent conflict between sky and fog projection in the distance, therefore I added this cvar to adjust for various combinations.

The basic problem is that the skybox is supposed to be infinitely far away and when fog is added, it will always hide the skybox. Since this destroys the whole idea with the skybox, you can use this cvar to find a balance between skybox size and fog density/colour.

Other artifacts may also appear when using certain fog density/colour combinations, typically banding triangles that follow the current player view. This occurs even in 32-bit colour.

This can easily be seen e.g. in the Nehahra map neh2m3, where a dark and dense fog is covering a very bright skybox.

Please see if any of this applies, otherwise I'll have to take a look at the map. 
 
you can try tweaking the gl_skyclip cvar (default 4608).
Haven't been messing with that value, but the black triangle appears at a much shorter distance, ~1500 units or so.
PreEdit: I just tried a few different values and it had no effect.

Other artifacts may also appear when using certain fog density/colour combinations, typically banding triangles that follow the current player view. This occurs even in 32-bit colour.
I think this sounds more like my problem, I'll try perhaps to mess around with the fog density and see if anything happens.
PreEdit: Ok just tried that too. It's definitely a banding issue, the "distance" to the black area varies with the fog density.

So yeah I dunno. Probably not much I can do about that. 
It Seems 
like darker fog in general causes more visual artifacts than brighter. The OpenGL fog might not be well suited for that. There's also the occasional "dust bunny" effect; in a dark skybox with thin and bright fog, the skybox corners get revealed due to fog congestion.

With some tweaking it's usually manageable. Make use of the engine fog command; it makes trimming a lot easier. 
Fog Vs. The Skybox 
This situation is a bit weird to me anyway. I can see two or three valid ways to have fog and skybox interact.

Option one is that the sky is totally, fully fogged (like fitzquake.) This is realistic assuming you think that global, same-density fog is realistic. Since the sky is really far away, you shouldn't be able to see it. The main problem is that it's not actually realistic becuase fog in real life doesn't fill the entire universe with equal-thickness fogginess.

Option two is that the skybox is not fogged at all. This allows the skybox designer to put exactly how much fog he wants into the sky, in order to match the level's fog. They painted fog along the horizon of each skybox. This is how Medal of Honor did it, and it seems to work well almost always. The main problems are when you have really tall objects in the scene, becuase when far away they may still be tall enough to be sillouetted against the part of the skybox that has not been painted with fog.

Option three is to draw the skybox, but fog it slightly in the engine. This seems sort of silly, but does have the advantage that maybe people can use the same skybox with multiple fog colors. Anyway, if you do this, it should be fogged the same amount across each entire face of the box.

The way that doesn't seem valid is to actually fog the sky based on its true distance, since seeing that it's actually a giant cube totally destroys the illusion skyboxes are supposed to create. Extra-fogged corners, fog changing as you rotate the camera, these are ugly giveaways of a sky that isn't a sky at all.

Probably the best way to handle it is to have a standard fog blend variable. A value of 0.0 would use option two, a value of 1.0 would use option one, and any value in between would use option three.

But this only really works if there's a standard among engines, I guess. 
Addendum: 
Option two doesn't really work with the scrolling cloudy sky, becuase there's no way to paint fog into it. 
would there be a way to control the maximum amount of fog that can be applied? currently, regardless of density, eventually, fog will become opaque given enough distance.

would it be possible to specify a maximum fog density that the engine would then stop fogging furthur when it's been reached? ie: a max fog density of 0.5 would mean that the skybox would be fogged at 0.5 along with all the other brushes, and since it would be a constant amount of fog, you wouldn't actually need to fog the skybox with the actual opengl fog, just tint it based on the value of 'max fog density' (assuming that's even possible) 
Or 
is there a way to blend fog and farclip together to actually make farclip useful? ie: fogging and when fog reaches 100% opacity, farclip everything behind that point in a sphere around the player. 
Necros: 
Not using the hardware fog functions. Opengl offers three falloff formulae: 1. linear fog with a start and end depth (end is where it becomes opaque) 2. exponential fog with a density (never gets fully opaque but gets damned close) and 3. "exp2" fog which is exponential with a different formula. (also never gets truly opaque.)

darkplaces and fitzquake (and probably others) use exponential with a "density" as the nly variable. However, darkplaces actually does this in software, which means that darkplaces could theoretically provide new and unusual falloff formulae, including ones with a density cap. Fitzquake and most other engines do it using the hardware features. 
Two Questions 
1: my latest speedmap (sm110) crashes some engines, but i have no clue what the problem is (or at least i don't know the exact technical reason): the crashes occur when the player is teleported to a teleporttrain which is thereby also triggered to start moving along its path. glquake says "movetype push with a non-bsp model", winquake says "R_RenderView: called without enough stack", winquake-bjp already crashes when loading the map with "unbalanced unlock".
what do (could) these error messages mean? i know the first one, but it most likely is not caused by a trigger/func without a brush - i checked the .map file line per line several times.
you'll be able to play the map on sunday or so, depending on when headthump releases the pack - i probably won't be able to read possible answers until next week, that's why i'm asking now.

2: a question that came to my mind recently: is it possible to reduce the size of the monster's bounding boxes with qc? because the hit radius of some is way to big (or high). would something like this make sense/be useful? would it bring disadvantages of some sort? 
I Have No Idea About 1, 
but in answer to 2:

one important thing to keep in mind about bounding boxes is how quake handles the collision of these suckers.

as you know, bsp makes 3 hulls, one is the hull you yourself made in the map editor, and the other two are progressively more extruded versions of that original hull.

quake does collision by using whichever extruded hull of the bsp corresponds to the proper size of the bbox as a point entity.

This means, there are only two possible sizes for bboxes for movement collision: player size and shambler size. (well, and point sized, but that's mostly useless for a monster)

However, you can use different sized bboxes for tracing weapons and collisions of point entities on those bboxes.

the problem is, quake will still use one of the three bbox sizes.

if all you are doing is *reducing* bbox size, you should be ok, since quake rounds bbox size to the highest bbox size when it decides what collision hull to use, ie:
a bbox of 48x48x70 would use the 64x64x96 bbox size and a 23x30x40 bbox would use the 32x32x64 bbox size.

this just means that you can't make a monster's bbox smaller so that it will be able to move through thinner areas. the only impact it will have is to make it harder to shoot.

this won't work very well if you are *increasing* the size of the bboxes, because monsters will be able to move inside walls (well, not the models, but the box will) and if you increased the size of a smaller bbox monster (player size) then it would start using the larger sized bbox (shambler size) for movement collision and wouldn't be able to fit through passages it used to be able to.

bleh, i'm too verbose and too lazy to go back over it and fix it. o.0 
Neg!ke 
Try running my WinQuake in a window instead (there's a bug I've fixed for the next version) or just run my GLQuake. You'll then get more information about this problem.

I'd suspect it's the same problem as with the rat in your sm100turtle map; there's a brush entity without a brush. Using my engines will hopefully tell you which one. 
Hm... 
aguirre: i suspected the same, but couldn't find such an entity. your glquake doesn't tell which one it is (it does not crash there, either) - or do i have to use any special commands (besides developer 1)?
fitzquake and dp work, as well.
i'll check it again and if i really made that dumb mistake again, i'll try to send a fixed version to headthump.

necros: thanks so far. yes, it is supposed to make the monsters harder to hit. i wanted to take the ogre's bbox as an example, as it extends over the full length of the chainsaw (idle mode) with a lot of unused space above, but i just realized that making the bbox generally smaller would leave the arm with chainsaw - which the ogre holds up while running - out of the hit area...
is there a way to individually adjust the each side of box? like making it a rectangle or something? 
Neg!ke 
If that error occurs, you'll be thrown out of the engine with a messagebox, so you don't need to do anything other than provoke the error. If it only happens in software engines, did you try running my WinQuake in a window (use option -startwindowed)?

If you wish, you can send me the zipped map+wad and I'll take a look at it. 
Ugh 
i typed out an answer, but i pressed the back button on my mouse. �_� the short answer is that yeah, you can do it, but that it will suck and won't work properly, so don't do it. :P 
Gl_fullbrights Setting In Pack File 
After CDA project, I'm starting a new project based on DKT1/DKT4 episode texture sets. I have a small issue with these "fullbrights" texture, which are considered as "lights" ingame (i.e. FitzQuake), and which have a very bad look ingame (BTW I didn't modified the initial textures to fit Q1 palette... like I already did in CDA without so much problems)... I found a quick turnaround setting gl_fullbrights to 0, and also adding this setting in my config file (in order to not have typing the line in console each time I test the map)... Anyway..

My concern now is much more about the method to add this feature in a pack file: how to include a config file without causing troubleshouting with the player's current settings ?
OTOH, I could add a note stating that it is recomended to set gl_fullbrights to 0 in order to have a better rendering...
I guess the answer will be obvious, but I would like a good advice there ;) What do you think ? 
Custom Config 
You can add the custom commands/cvars to a new xyz.cfg file, copy the original quake.rc file and insert a call to this xyz.cfg file just before or after the call to autoexec.cfg.

You put it before if you want to let the player's own settings override yours (nice) and after if you absolutely want to force the player to use your settings (less nice).

This way you can distribute a pak without forcing the player to modify his startup procedure and still get your console commands to run.

Both files xyz.cfg and quake.rc, you just put in the game directory outside the pak file to make it easy for the player to alter or get rid of them if he wants to.

You can of course also put them inside the pak in its root directory and finally put the whole pak as usual in the game directory.

In any case, be sure *not* to add or alter any other commands or the sequence in the quake.rc file, e.g. loading the map. 
AguirRe 
Thanks ! 
JPL 
For me at least, the answer is obvious... don't try to turn off my fullbrights... just fix the textures.

Its pretty easy to do it on a per-texture basis in TexMex... open the .wad file, select the texture you want, right click, adjust brightness, remove brites.

This should replace the fullbright color/s with the closest possible substitute in the palette. Unfortunately it seems you can only do one at a time this way, but perhaps someone else can suggest a way of doing a whole .wad at once.

Generally, this will probably produce acceptable results, but watch out for any dodginess (i.e. just make sure the program doesn't swap the colour to something completely inappropriate).

Its far preferable to modify the textures than to change the engine settings. Consider the following points:

- you can then also use fullbright textures on your buttons and lights
- Other people may copy and use the textures from your .bsp file
- doesn't require engine specific commands... gl_fullbrights 0 isn't going to do much for someone using WinQuake...
- I like fullbrights and I don't want you to turn it off for me! 
Mr Fribbles 
Regarding the DKT1/4 texture files size, considering I don't have TexMex installed, and also considering I don't know how to use it... (RTFM I know ;)... ), I guess it will take much more time to convert the texture to Q1 palette (one by one, unless there's a way to convert the full file at one time) rather than typing the gl_fullbrights 0 command into console...
OTOH, I can understand your point of view... And like you, I wouldn't like to change my personnal settings..
Furthermore, as you already noticed for my previous projects, I'm also very "slow" to produce a map (i.e remember CDA took me around 9 months, regardless of fullvis process runtime... I only map 1 or 2 hours per evening, and not all days of the week...:(... family stuff there...).. so "wasting" time to convert a wad file to Q1 palette sounds ungood to me... I would not like to spend 1 year before releasing another map...
In anyway, I will try to take a look to TexMex (download ans use), and see if it's possible to use it for a "massive" texture conversion... Otherwize, I will not use it... ;P
Thanks for your point of view :) 
First | Previous | Next | Last
You must be logged in to post in this thread.
Website copyright © 2002-2024 John Fitzgibbons. All posts are copyright their respective authors.