Navigation überspringen
Tried a mesh decal alternative for rendering damage effects.
0:00 / 0:43

Tried a mesh decal alternative for rendering damage effects.

Amit Mehar

@amu_mhr5389 Follower

Auf X besuchen

48.454 Aufrufe #UE5 #Niagara

Tried a mesh decal alternative for rendering damage effects. * Does't require writing data to RTs or doing per pixel checks for each hit location. * Can be rendered as overlay mesh or written into DBuffer for material blending :) #UE5 #Niagara

12 Kommentare

Kommentare aus dem Originalbeitrag auf X (Twitter)

  • Profilbild von Cloudwalker

    @HurricaneVr

    Skinning the extra vertices a second time, no?

    2 Likes

  • Profilbild von Amit Mehar

    @amu_mhr

    Niagara can read from skin cache, so no skinning required :)

    2 Likes

  • Profilbild von The Information

    @theinformation

    Microsoft and other top Nvidia AI chip customers have cut some orders of Blackwell AI chip server racks due to overheating.

    13 Likes

  • Profilbild von The Only One Paulo

    @theonlyonepaulo

    Tutorial on this ?

    1 Like

  • Profilbild von Jack

    @itsBaffled

    Ooh, any resources or tips on your approach?

  • Profilbild von Amit Mehar

    @amu_mhr

    It's based on my NiagaraProceeduralMesh plugin. You can loop over triangles in mesh and add to procedural mesh if it passes distance/overlap check with decal positions. You can also write additional data in vertex color and texcoords to sample texture/opacity mask.

    5 Likes

  • Profilbild von GameDevMicah🤩NaniteNiagaraPlugin UE5 UEFN

    @GameDevMicah

    🤘🤘🤘

  • Profilbild von ɪᴠᴀɴ ʀᴍᴘɢ

    @vanormpg

    Looks good! What about performance, how does it work with many characters?

  • Profilbild von Amit Mehar

    @amu_mhr

    Each character would probably require a unique Niagara system. Not collected any stats on the setup, but maybe it would be quicker for a lot of localized hit locations (not covering a large area as that would increase procedural mesh gen cost)

    2 Likes

  • Profilbild von W

    @blackholebrah

    Is there a way to sample the underlying material? Such as using the height data to help "fill" in the damage.

  • Profilbild von Jacob Brown

    @JacobBr81319923

    Looks cool! But for most projectiles it's using raytraces, why not get the hit location, surface normal and then spawn a deferred decal at that location parented to a bone socket? I'm trying it in my game but maybe it's really unoptimized 😄

  • Profilbild von Amit Mehar

    @amu_mhr

    Not sure if decals would perform too bad (increased draw call + CPU cost for updating decals). But I think deferred decal could look 'floaty' since the collision trace is done against physics collider (not actual surface) + wont follow mesh deformation?

    1 Like