Jump to content
The Dark Mod Forums

HMart

Member
  • Posts

    1541
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by HMart

  1. Like AluminumHaste said MSAA is for edge of geometry/polygons, if you want to affect textures/shaders/transparencies, you need to use a post-process AA like TAA (it will blur the scene a little contrary to old school MSAA thou).

    You can use Reshade for TAA. 

    Ops: MirceaKitsune sorry you already knew msaa was for geometry only, didn't read your reply well sorry...

  2. 1 hour ago, stgatilov said:

    I think there is no problem with noshadows parallel lights: they are well-defined in the current engine.

    It can be used as local light to brighten the window, as @HMart does.

    I don't deserve that credit, using parallel lights to light windows is user thebigh process. ;) 

  3. 50 minutes ago, thebigh said:

    Here's two windows lit by two lights with the same dimensions, colours, and relative positions. Specular is turned off. The left one is just a pointlight and the right one is a parallel light. I think it's clear which one looks more like there's a lit room behind it. The illusion's not perfect, but it's significantly better.

    Sorry for the off topic but nice out of the box thinking thebigh. :)  But IMO doing that light from behind effect, would be best done through the window material using a blend add stage.

    Or I would use a cheap blend light instead of a real parallel light. (just put the global material keyword 'blendLight' in the light material and do a blend add) Blend lights don't support specular and normal mapping, but for such effect I don't think that matters anyway, but I could be wrong.

    Plus you can project a texture with blend lights as well and so you could create a blend add (black&white) mask texture that would light the glass parts and not the wood parts of the window, where on real life, light wouldn't never show though. 

    • Like 1
  4. Personally have really no good opinion on this, mostly because I have almost no knowhow, on how TDM (or idtech 4 for that matter) low level render works. So I really don't know, if killing old parallel lights, would be good or not, but if you think they are more trouble than good... And how many daylight missions exist in TDM anyway? Honest question.

    But, to those that perhaps want to do day light, would making sun light, still be mostly the same using the parallelSky?

    One thing that IMO was cool about the parallel light, compared to other lights, is that it doesn't care where it is on the world, it only cares about its axis rotation, and it afaik was capable to "project" light from any direction, is that conserved with parallelSky? I'm asking because the sky part, in its name to me makes it sound, like it only can cast light in a semi-sphere, like a dome.

     

    Edit: Reading this on TDM wiki explained a few more things, it seems I was wrong when I thought parallel lights didn't cared where they were on the world, it seems they do for portal flowing at lest.  

  5. Indeed I saw a big increase in performance has well. This new light culling system is doing wonders, fantastic job.

    Btw to test this new version, I played Volta 2 for a while and in that part where you need to swim against the current, to get too the gold bottle, I was unable to do so, no matter how much i tried, but I remember being able to do that very easily, does the swimming system got changed or is a bug?

  6. Agree on FXAA indeed but it would be cool if you looked at SMAA (Enhanced subpixel morphological antialiasing) as well, is a upgraded version of MLAA (rival of FXAA) from AMD, made by Crytek and Universidad de Zaragoza.  Is always subjective but many say it looks better than both FXAA and MLAA while being almost as fast.

    Never tried it in TDM but I know that Reshade has a SMAA shader, could be a way for you to test how it looks in comparation to FXAA ingame and later decided if is worth to write a inhouse one.

    And IMO no need to replace multisampling it can work along side post process AA systems very well. 

    • Like 1
  7. $speaker_sausages.setKey("s_volume", 2);    That is a spawn time script function meaning what it does, only happens when a entity spawns, so would need to restart the mission for it to make effect, if you want to change something during gameplay, you need to call other functions like

    /**
     * Fades the sound on this entity to a new level over a period of time.  Use SND_CHANNEL_ANY for all currently playing sounds.
     */
    scriptEvent void		fadeSound(float channel, float newLevel, float fadeTime);

    or

    /**
     * Set the volume of the sound to play, must be issued before startSoundShader.
     */
    scriptEvent void		setSoundVolume(float newLevel);

     

  8. I'm not anti frame rates if that was the idea i passed ;D nor I think playing at 30fps is equal to 60fps or higher, I'm just saying that in a uneven frame timing scenario, playing at constant 30fps can feel smoother (less stuttery) than at very uneven 60fps or higher and that is true, but in a equal situation, I will prefer 60fps (or more) above 30fps any day! (real frame rates not AI fake ones...)

  9. 7 hours ago, demagogue said:

     

    I was just reading a post over on TTLG about Thirith's experience playing Sable when he realized the game played significantly more smoothly, and the movement control was less wonky, at 30 fps than 60 fps, and then I see your post explaining just that.

    Edit: I should have double checked the date. I didn't realize when I clicked the thread that it didn't take me to the latest page but evidently to the last point I had read up to, which was more than 2 months ago. Sorry about that. Well it's still an interesting thing to point out anyway.

    Not only that but IMO today with Nvidia AI frame generation (or any equivalent tech that AMD may eventually come up with), frame rate numbers lost all their meaning (at lest with frame generation turned on), with DLSS3 FG you can have a "60" fps game that can feel like a or less than a 30 fps game ( on input lag and if that is the base frame rate from where DLSS AI is working from).

    High frame rate numbers are a good way to sell GPU's ...

  10. I'm sure they will create a stable 2.12 version, when its done! But the official game release is at version 2.11!

    The 2.12 is still in heavy development and so, will have bugs and most probably break very easily, it shouldn't be used for real play, only to help TDM code team, to test, find bugs and regressions.

    This dev version is accessible to the general public, only by courtesy of the TDM team, so we can experience and see how the game engine is developed, bugs and all, don't make them regret it, if more people start complaining, instead of helping, they will more than likely closed it behind doors, like they did before and do the public testing, only way later when is more stable. 

    But that also makes it longer to release, because they will have less people testing, will have to do most of the testing themselves and because, afaik 1 or 2 people, are working on the engine at the moment, it will take way more time to develop and then test to the final release. And it will very probably come with more bugs, than if they did early public testing like they do now. 

    Unlike paid comercial developers, TDM team doesn't have a dedicated paid bug testing team, we the players are the tester, is the lest we can do for be giving this fantastic free game.

    And so IMO complaining the development branch is not stable, doesn't help, they know that, if you want a more stable version and not experience bugs, then use only the oficial 2.11 release, wait for the final oficial 2.12 release, again, when its done.

    • Like 2
  11. I was thinking about this the other day, after seeing that Source engine add a func_occluder entity, while idTech4 has not, Valve at lest thought they were still useful for something, I bet they are used to help optimize the HL 2 outside areas, that game has plenty of those.

    That lead me to search about the subject and saw this two links, imo they have some useful info.

    https://www.gamedeveloper.com/programming/rendering-the-great-outdoors-fast-occlusion-culling-for-outdoor-environments

    https://bazhenovc.github.io/blog/post/gpu-driven-occlusion-culling-slides-lif/

     

    • Like 1
  12. 41 minutes ago, minimii said:

     

    @HMartlike I said: I could not see a big difference between stencil and maps, so I Stick to stencil. 

    I comprehend but you do lose volumetric effects with stencil but only the really recent missions have volumetric lights.

    Btw In reality there's a big difference between what shadow maps are capable off and stencil maps are capable off, unfortunately because of backwards compatibility with old missions and the fact that for a long time, only stencil was available, TDM team add to limit shadow mapping capabilities mostly to what stencil can do.

  13. 14 hours ago, chakkman said:

    16x AA is a complete hog in TDM for some reason. I also lowered it to 8x, and got about double the frame rate.

    MSAA   is heavy specially at 16x because is more or less a type of super sampling (rendering the scene at higher rez than displayed), but unlike the later is way faster, but like SSAA, MSAA still increases pixel count.

    6 hours ago, minimii said:

    Yes.

    The other settings did not change a lot.

    Changing from stencil top map on the shadow settings resulted in more GPU load, but visually no difference for me.

    I played one level (pearls and swine) yesterday with AA to 8x and with Reshade activated, that was pretty fine. In the mansion there are a few light sources and performance was still good.

     

    Yes i'm not surprised AA was the main culprit good it was not something else. 

    Btw Stencil shadows are mostly CPU based, shadow maps are GPU based and because you were already GPU bound, changing to to maps wouldn't make any diference, perhaps even make it worse, because maps are normally slower than stencil, thou today because of some exclusive effects to maps, I would recommend them to everyone.

    • Like 1
    • Thanks 1
  14. Was this model made in DR? The uvmap is all over the place, meaning it falls outside the 0 1 area. 

    But that is not the problem, the problem is that It add a missing face in the back of the lamp thing, so you could see to the outside thought it.  I put a face there that should solve the problem.

    mod_playerlamp_model.lwo

  15. 53 minutes ago, snatcher said:

    You maintain it for FMs and I offer it for general use. The more people toying with the lamp the more feedback / support we may get.

    I noticed the lens part of the model is transparent. We need a modeler.

    lamp.jpg

    Link the model here and I will solve that, is easy (famous last words.... 😜 ).

    To me no need to link the material or textures just the raw model. Btw is the model lwo? I can only open .lwo models in Modo my tool of choice.

    • Like 1
  16. 33 minutes ago, minimii said:

    Hello togehter,

    I am just wondering.

    I got a PC with good specs (Ryzen 5700X, 32GB DDR4-3800 and RTX4090) but in some missions with many light sources I have high GPU utilization or even drops below 60fps.

    CPU util is low.

    My Monitor is an ultrawide wth 5120x1440 @ 60hz, FPS capped to 60fps.

    Is there a trick ? 

    That is slightly less than 4k but imo is still a really a high rez, specially for this engine, that is ~7.3 million pixels that the engine has to calculate/shade, per pixel 60 times or more, every second! also why MSAA (multisampling anti-alising) can be very expensive on this engine, it increases pixel count.

    So like nbohr1more said, if you have it on, lower it or better disable MSAA, at that rez IMO you don't need it anyway and it has no effect on geometry faces/surfaces, only on geometry edges and if you really want AA, also like nbohr1more said, force a post process one (FXAA or better if possible TAA) using the Nvidia driver.

    You can also try to lower the rendering scale and increase the sharpening filter to counter balance the loss of definition in the video options menu.   

    About the CPU the fact you have low CPU utilization and high GPU utilization, shows you are getting GPU bound in this case, so increasing thread count in the game console, I don't think will help but try it.

    Btw sorry if you already know this but if you don't, at lest may explain to you why this "old" game, is so heavy even for your modern very expensive GPU, this game uses a modified Doom 3 engine, with better support for multicore CPU's and other modern stuff making it way faster than original Doom 3 engine, but is still using the old forward render and unlike more modern renders like deferred render or forward+, that can render hundreds of (non shadow casting) dynamic lights, before getting slow, a old forward render like of Doom3/TDM, can get really slow with a relatively low number of dynamic lights in a scene, worse if they all cast shadows, and on this game all lights are fully dynamic and in many missions most of them cast shadows, real time shadows, there's no light baking of any kind.

     

    • Like 1
  17. 14 hours ago, BlackMagic said:

    I have been out of this for four years (cancer, diabetes,COVID) but am trying to RE-learn Dark Radiant, and going back to the mission I started to create back then. But no matter what I add, delete, change in DR it does not show when running the FM! I can see the map file in the map folder under the FM is updating. I have also tried loading it via console, but same problem. Another issue is the dang AAS files. No mater how many time I DMAP it still says out of date. No AAS files show up in the map folder either, which might be why.

    Can someone help this old guy out? GRRRR

    If dmap doesn't show a leak and there's a leak into the void (a gap in the world into the void or a model origin in the void) that is really strange, too see if is a leak and dmap somehow fails to show it, try to start your map with "devmap mapname.map" instead of using "map mapname.map"  devmap afaik ignores leaks, if the map/mission opens then is a leak.

    But the fact that you are having AAS out of date warnings after dmap, sounds like you are opening a old version of the map not the one you dmap a new, perhaps you have DR badly setup and it is saving the fresh maps and files into a different folder than you think? 

  18. Personally I really don't know if that is available or not but that does sound too a specific guard behavior, so perhaps is not defined? 

    If is possible to have that? Yes, if is not available already, unfortunately there's no other way but code it into the guard AI, in c++ or script yourself, if you know how to code....

    Btw the civilian AI does have "fear" and runs away from danger, is that AI type really entirely separate from the guard AI, or the guard behavior is just "dormant" on the civilian AI and vice versa?

    If all AI's are done through the same AI system then perhaps is just a matter of turning some stuff on or off.

    If they are totally separate AI's, they are still so similar in parts that perhaps so you could adapt/transfer the civilian fear behavior into the guard AI for specific types of danger.  But all of this requires coding.

    Sorry for not being more helpful than this, I really don't know much about TDM or even Doom 3 AI stuff.

    • Like 1
    • Thanks 1
  19. 1 hour ago, Dragofer said:

    This is true, but the fact is that the viewmodel only consists of a bare arm (animated model), with something bound to it (static model). The depth hack only applies to the arm model itself.

    If you want to stop the lantern clipping through walls you have to make a new version of the animated arm model that has the lantern integrated into it.

    Yeh that is also how Doom 3 weapons were done, but perhaps this can be worked around? Next to weaponDepthHack there's also a modelDepthhack bool I assume for every other model, perhaps that just needs to be put in the model def file or enabled by a spawn argument? I really don't know, or if that spawnarg even exists, if not then is something to put in the roadmap.   

  20. Quote

    The lamp clips through walls when up close (no idea how to fix this)

    Is the lamp a weapon? Unless TDM weapon system is different from Doom 3, weapon models should have the "depth hack" thing enabled, that "hack" (that is how idSoftware calls it :D ) makes sure the weapon never intersects with geometry. 

    in the code:

    bool weaponDepthHack;	// squash depth range so view weapons don't poke into walls

    Don't know if there's a way to enable that without messing with c++, stgatilov or others may know. 

    • Like 2
  21. 7 hours ago, kin said:

    I asked someone that has no idea about dark mod to play for 10 min and describe player foot steps. She said that it sounds more like you are trying to actively make noise walking or running (very clappy) rather trying to be silent. Definately we would benefit with some kind of adjustment.

    Perhaps but the game, has gameplay features that can muffle your footsteps sounds, carpet and other ground textures, the vine arrows also, so by making them more silent/quiet, imo you may end removing the incentive, for mission makers and players to make use of those.

    To me, If a player thinks the footsteps are to loud then maybe the mission maker, didn't put enough ways for the player to walk more silently in the level and so he always hears loud footsteps and thinks that is bad/broken.

    Btw what about incentivizing mission makers to do certain things, by the older more experienced mission makers, agreeing on a small list of "best practices for mission makers" for performance, looks and gameplay and pin that at the top of the forum? Then any new developer may learn something from that and avoid some rookie mistakes, like for example, not putting enough ways in a level for a player to walk more quietly.

    Just my two cents. 

×
×
  • Create New...