Jump to content
The Dark Mod Forums

Animated Grass beta


Dragofer

Recommended Posts

5 hours ago, Wellingtoncrab said:

On the gameplay side any plans for the denser area grass to have something like a configurable light gem modifier when the player is crouched in them?

I could whip up a custom script that does this by comparing the player origin with the bounds of grass models and then applies a lightgem modifier.

No idea about a "proper" in-engine solution - maybe it'd be something similar.

Link to comment
Share on other sites

Just now, JackFarmer said:

Since the terrain is very bumpy, it does not really work (a

Do you mean because of difficulties aligning the grass with the floor? That wasnt easy for me either, at least with the large grass models.

Link to comment
Share on other sites

@JackFarmerThe “patches” are a good fit for this type of circumstance - a few go a long way

@Dragoferyeah I would say crouching in the grass occludes the player vision in such a way it would not really be fair for the ai to look right through it, but maybe this can just be done via a trigger volume placed by the mapper?

Edited by Wellingtoncrab

-=  IRIS  =-    ♦    = SLL =

Link to comment
Share on other sites

On 1/7/2023 at 8:15 PM, Daft Mugi said:

After reading some quips about Thief HD Mod, I looked at its moddb page.

By coincidence, there's an animated grass demo for Thief. Dropping a video here for those interested.

https://www.moddb.com/mods/thief-gold-hd-texture-mod/news/wind-simulated-vegetation-natural-water-mod

 

I don't know if this simulation is hardware intensive but dark mod got to have this (optimised). It will change the face of the game positively. The only thing missing is the vegetation alpha texture casting shadows.

 

edit: Wait am I reading correct, is this simulation for thief 1&2? Still got to have it in dark mod too. Amazing!

Edited by kin
Link to comment
Share on other sites

That's frame-by-frame image animation, he uses 99 frames per grass piece and these are 2k to 4k textures(!). The resolution alone is insane for a grass piece, not to mention flipping between 99 textures of such resolution. There's no point in recreating that approach unless you want your computer to explode. Frankly, it's a miracle that NewDark is able to run this thing at all.

  • Like 1
Link to comment
Share on other sites

peter_spy is right that is total overkill, for grass at lest and imo the wrong approach (specially with such high rez textures), thou I know is the "easy" and only approach for those that can't use shaders. The right approach but harder to those that don't know shader coding, is to create a vertex shader that moves each vertices of the grass plane.

Btw this is possible to do, more or less realistically, even in the original idtech4, without making a new shader or using frame animations. 

 

textures/nature/grass  
{
   nonsolid
   noimpact
   noShadows
   noSelfShadow
   
	qer_editorimage textures/nature/plant_ed.jpg
	
    {
        blend   diffusemap
        map    textures/nature/plant_d.tga
		rotate	.003*sintable[ time *.2 ]
    }
	
	
	{
		blend bumpmap
		map	textures/nature/plant_local.tga
		rotate	.003*sintable[ time *.2 ]
	}
}

 

Edited by HMart
  • Like 1
Link to comment
Share on other sites

On 1/5/2023 at 10:04 PM, Dragofer said:

Kingsal has graciously converted the highly map-specific animated grass from Arcturus' gorgeous "moonlit castle by a lake with grass plains blowing in the wind" demo map into something that can easily be used by mappers, now also featuring different varieties of grass, different sizes, 2 different wind speeds and LOD stages:

Capture.JPG

I'd like to run a small beta of this asset here for mappers to try it out in their FMs, so feedback on it (i.e. animation, performance impact, looks) before it gets added to core assets would be very appreciated. I won't go too much into the details because the entity & spawnarg tooltips are part of the testing.

You can grab the asset here and just drop the .pk4 in the folder of your FM, no need to unpack it. Look for the animated entities in the entity menu. Once the assets are in core you can just delete the .pk4.

This is perfect and it seems it can easily be applied on existing missions dramaticaly improving the looks. Only thing missing (wich I am sure it will eventually implemented) is this grass casting shadows.

 

Link to comment
Share on other sites

6 hours ago, kin said:

Only thing missing (wich I am sure it will eventually implemented) is this grass casting shadows.

SSAO exists for that :)

Edited by lowenz

Task is not so much to see what no one has yet seen but to think what nobody has yet thought about that which everybody see. - E.S.

Link to comment
Share on other sites

I know this has been said before but when creating a pk4 for mission please stop including consolehistory.dat and qconsole.log.

When you do this and install the map, you can open the console and cycle through all the commands that the author typed on their computer.

Instead of cycling through your own console command history. It's really annoying having to retype a bunch of commands that should be in my history when pressing up in the console.

I always assumed I'd taste like boot leather.

 

Link to comment
Share on other sites

3 hours ago, lowenz said:

SSAO exists for that :)

I meant casting shadows from a light source. Though still looks good. I could even compare it to modern game implementation of grass without any real difference.

Edited by kin
Link to comment
Share on other sites

On 1/7/2023 at 12:32 PM, Dragofer said:

I've tried using SEED to automatically clone and distribute a model across a large terrain patch, but the performance was single-digits, probably a lot worse than if the same number of models had been hand placed.

I've always wanted to ask about this, because I had the same problem; even on a minimally detailed map, the framerate immediately went down dramatically, and so I took it out again (though it looked fine).

Link to comment
Share on other sites

Yeah SEED is kind of a strange beast. In some situations its tanked my FPS as well. 

There's definitely no competing with modern engines here, there are other options: animated UVs, switching to static mesh LODs at long distance (I might try this), but all of them have pros and cons. I'll keep messing around with them and see if I can get them more performant and still looking decent. 

  • Like 1
Link to comment
Share on other sites

On 1/14/2023 at 3:16 PM, AluminumHaste said:

Well I covered my valley map with grass and while LOD tries it's best, FPS drops from 250 fps to 50ish.

Still not gonna compete with modern engines with grass everywhere.

It would be interesting to see how the FPS is when you use func_static versions of the grass instead. This way we would know how much of this drop is caused by (A) lots of transparent textures and (B) lots of animated models.

If the problem is more the latter, then it could be remedied by using larger merged models, and maybe there are some low-hanging fruit for optimising the animation code.

The former would require simplification of the mesh, to the detriment of the visual quality.

Link to comment
Share on other sites

  • 2 weeks later...
On 1/11/2023 at 7:06 PM, peter_spy said:

Modern games are using modeled blades of grass these days; that eliminates problems with transparency overdraw and technically you can make every single blade cast a shadow, but that's probably quite sub optimal ;)

So if someone modeled vegetation with low count polygons (grass, tree leaves) would that cast stencil shadows? Wouldn't the gain in fps from using stencil cover the lag caused from maps and alpha?

Edited by kin
Link to comment
Share on other sites

Yup, it would cast both types of shadows.

In terms of performance, it always depends on how you execute it. But in terms of geometry, the engine seem to be able to handle a few millions of tris per scene, if you keep other factors (like drawcalls) low. Clever LODing should do the trick here.

Edited by peter_spy
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • Sotha

      WIP mission name confirmed: "The Last Offering"
       
      · 5 replies
    • Sotha

      Today I started writing readables for my WIP mission.
      I wrote my usual text and then crammed it into AI and boom, high quality stuff comes out.
      I used to say that clipper is the mappers best friend, but now it seems it is more like "AI is the mappers best friend."
      · 2 replies
    • The Black Arrow

      Just saw further into 2.13 development, or is it 2.14? Anyway, proper Parallax Mapping...Absolutely fuck yes, please!
      · 2 replies
    • nbohr1more

      Happy Halloween! "Gem of Souls" is out:
       
      Psst, someone let Darkfate know...
      · 1 reply
    • The Black Arrow

      Is there a thread for "Moving Day 2: Look Who's Moving Now"? If not, could someone hint me on what is Dick's birthday? This mission is quite enjoyable on its disturbing creepy implications.
      · 3 replies
×
×
  • Create New...