FYI
#546 posted by mfx on 2014/12/15 21:25:22
QS 0.90 draws this "correct"
http://imgur.com/JYx8dDG
#547 posted by Baker on 2014/12/15 21:39:01
Will fix.
I was going to remove alpha masked (fence) texture support on world brushes because it is technically wrong and leads to mapper newbie pain (a mapping newbie guy always says "I see void").
Then you guys made a map using it and then Quakespasm copied the Mark V implementation.
So now my "correction" becomes "bug".
Anyway, when I revisit I will "re-add" that back in.
#548 posted by mfx on 2014/12/15 21:52:37
Its all cool Baker, i was trying to not overuse func_illusionaries for performance reasons, but yeah, its wrong to do it like this i know..
Thanks for your precious work anyway, it is very appreciated!
Imo
#549 posted by ericw on 2014/12/15 21:55:06
I would just make them func_wall/func_illusionary on new maps, and consider the fences-as-world-geometry support in qs deprecated / not recommended for future use.
arguably I shouldn't have added that to qs 0.90, because you'll get HOMs/a view in to the void if the brush touches the rest of the world, plus vis might cull stuff behind the fence texture because it thinks they are opaque.
Oops, Redundant Post
#550 posted by ericw on 2014/12/15 22:11:17
Anyways, sorry for this Baker, I take responsibility for spreading the mis-feature :P
mfx, it should be safe to go crazy with a lot of func_illusionary, unless you're measuring a performance hit.
In glquake/fitzquake the brushmodel drawing does a bunch of setup per-poly of the model, so you want to avoid a single very complex func_wall (this is fixed in qs 0.90 though, and probably engines with more advanced renderers). But on the other hand, I'd expect drawing a lot of simple func_walls/illusionaries should be fairly fast on all engines. They're vis-culled too, so even having several hundred spread around the map should be fine. (famous last words.. )
Yup
#551 posted by mfx on 2014/12/15 22:13:48
the visculling is another thing that prevents this usage. My nooby brains was thinking "when i keep this brushes small and "freefloating" and use them like decals for wall deco and such, that would be cool for blending textures..."
Func_wall/func_illusionary
#552 posted by mh on 2014/12/16 00:04:27
An option - if you want to have better performance but still let people go nuts on them - is to merge them into the world model.
As a general rule this is safe to do. Inline brush models only appear once each, are already in the worldmodel surfaces/textures/etc lumps, and if they have the same animation frame as the world, and origin and angles of {0|0|0}, you can add them to the world model texture chains quite safely.
For id1 maps there is no measurable performance gain, but for cases where using lots of them is a bottleneck, it works well. The only cost you'll pay is in overdraw, but you can set up the chains so that the inlines are drawn first and then you'll get early-Z rejection on the world polys.
The exception of course is when someone post-processes a compiled BSP to allow sharing of surfaces between inlines and inlines, or inlines and the world. But that would be evil and we'll assume nobody does that, right?
(As an aside: the way stock Fitz handles texture chains doesn't permit this optimization. I can't remember right now if it also sorts it's chains back-to-front (like stock GLQuake does) rather than front-to-back (which would also run faster).)
Another Opinion(ated) Mapper
#553 posted by ijed on 2014/12/16 12:35:10
If the user wants to make bad content with a feature, let them. No engine coder ever blocked the use of, say, fog 1.
Protecting the newbs seems like a strange reason to limit the feature as well. Why not disable map hacks while you're about it, just in case.
mh's solution sounds good, basically handling the process better. Just disabling stuff seems like prohibition.
Yes, my last map did have a couple of wafter thin parts of void clipping caused by this issue, but it was my fault :)
Mh
#554 posted by ericw on 2014/12/16 21:46:39
thanks for the tips, will play with the merging brush models into the world sometime.
Fitz walks through the surfaces in the order of the cl.worldmodel->nodes array - there's no R_RecursiveWorldNode - then reverses the order per-texture from the chaining. Not sure if cl.worldmodel->nodes has any meaningful order to it.
ijed, that's a good point.
Yeah...
#555 posted by metlslime on 2014/12/16 23:26:23
the idea was that iterating a list is much better on CPU than walking a tree, and the order wasn't that important. This idea was taken from darkplaces at the time.
I have no idea if it's the correct tradeoff with current hardware. If GPU bound I guess front to back would be best.
Fitz Walks Through The Surfaces...
#556 posted by mh on 2014/12/17 01:40:40
Fitz walks through the surfaces in the order of the cl.worldmodel->nodes array
The big problem is that it only regenerates texture chains when the PVS changes. Merging brush models really requires texture chains to be regenerated each frame.
It's actually quite trivial to write a GL renderer that runs twice as fast as Fitz on ID1 maps (much more on big maps), but much of that is down to batching rather than BSP tree traversal (this isn't including dynamic lighting which is it's own separate problem).
So adding some good batching and accepting the CPU overhead of building the chains each frame is a reasonable tradeoff that you're going to come out on the good side of on any hardware (unless you're totally fillrate or ROP bound, which the original 1996 hardware was, and therefore none of this was a problem back then), and then you get the ability to merge as a bonus.
Happy New Bump
#557 posted by NightFright on 2015/01/15 22:51:01
Any progress on fixing the vs2008/OpenGL build of the latest snapshot? I'd hate going back to r15 after all the improvements which have been applied since then.
Source
#558 posted by ericw on 2015/01/17 02:13:30
any chance you can post the source for that last snapshot Baker? (no rush, just curious to have a look at it)
#559 posted by Baker on 2015/01/17 04:51:08
@ericw -- of course! I'm deep in the middle of possibly finally handling some frustrating math calculations that have been owning me all week at the moment, will upload first opportunity tomorrow.
@nightfright -- Don't want to promise a timeframe at the moment. At same time, I do want to get a revision out.
#560 posted by Baker on 2015/01/18 00:46:39
Thanks!
#561 posted by ericw on 2015/01/18 04:32:02
#562 posted by Baker on 2015/01/18 06:31:43
Also: There needs to be an SDK folder above the source code with this. Contains DirectX, Curl, a very heavily modified "FDFramework" (the Mac build was derived from Fruitz of Dojo), some headers and some things moved out of the engine folder.
(More complex than I prefer ...)
Crash On Quickload F9
#563 posted by Ian K on 2015/02/15 16:06:14
Getting Quake Error
R_Renderview: NULL worldmodel
When pressing F9 to quickload after previously saving with F6.
Fitzquake mark V 0.94
#564 posted by Spirit on 2015/02/15 20:11:19
try again without any mods
Fitz With .mp3 Files Etc
Any idea how to get this to work?
I just can't it working in FQ, but it seems to work fine in quakespasm.
Quickload Crash
#566 posted by Ian K on 2015/02/18 13:56:54
Can't work out why this is happening. Workaround: put the following in autoexec.cfg:
bind "F6" "echo Quicksave...; wait; save s0 "
bind "F9" "menu_load "
So the top save slot is the quicksave one.
Bizarre...
#567 posted by necros on 2015/02/19 02:16:17
can you try this:
in the console, type load quick.sav
the 'load' command can load any save by filename and quicksave just saves to a quick.sav file. There should be no difference between loading a normal save and loading a quicksave via quickload. A crash there would indicate something up with quickload code? Or the order in which things are done with quickload vs load??
Happens With V0.94 For Me Too
#568 posted by ericw on 2015/02/19 02:58:03
but it seems to be fixed in v0.99, maybe try that version?
http://www.celephais.net/board/view_thread.php?id=60831&start=507
necros: "load quick" in the console causes the same crash. For some reason loading via the menu works.
#569 posted by Spike on 2015/02/19 03:06:24
Maybe it disconnects first.
Quickload
#570 posted by Ian K on 2015/02/19 13:25:01
Thanks, 0.99 vs2008 version works. The winquake version wouldn't start. (Win7 Pro x64 i7-4770 integrated graphics)
|