Author Topic: How to works with decals?  (Read 206 times)

0 Members and 1 Guest are viewing this topic.

bitterman

  • Sr. Member
  • ****
  • Posts: 262
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
How to works with decals?
« on: April 27, 2017, 10:18:19 AM »
It's not about how to create material for decals.

It's about when/how it can be generated/placed on the surface.

E.g. is it possible to draw decals (like scratch, dirt etc) if one brush/model collide/dropdown/touch with others?

In vanilla assets I see decals only for projectiles (like bullets).
If it collide with brush then engine generate a decal, which is defined in projectile.def.

What entities (except projectiles) can generate decals? How type of collision allowed for decals?

Thanks.

P.S. On modwiki I see link to 'Alphabet Decals manual' but it sends in nowhere ((



argoon

  • Sr. Member
  • ****
  • Posts: 275
  • Karma: +21/-81
  • Doom Newbie
    • View Profile
Re: How to works with decals?
« Reply #1 on: April 27, 2017, 09:21:21 PM »
It's not about how to create material for decals.

It's about when/how it can be generated/placed on the surface.

E.g. is it possible to draw decals (like scratch, dirt etc) if one brush/model collide/dropdown/touch with others?

In vanilla assets I see decals only for projectiles (like bullets).
If it collide with brush then engine generate a decal, which is defined in projectile.def.

What entities (except projectiles) can generate decals? How type of collision allowed for decals?

Thanks.

P.S. On modwiki I see link to 'Alphabet Decals manual' but it sends in nowhere ((


Is func_splat what you are looking for?

Btw Grimm has a custom system to splat decals on surfaces you could see how it was done.   

bitterman

  • Sr. Member
  • ****
  • Posts: 262
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: How to works with decals?
« Reply #2 on: April 29, 2017, 04:35:01 AM »
Thanks, it's works.

After some experiments:

bitterman

  • Sr. Member
  • ****
  • Posts: 262
  • Karma: +8/-5
  • Doom Newbie
    • View Profile
Re: How to works with decals?
« Reply #3 on: April 29, 2017, 09:54:07 AM »
... and seems like only for brushes  :(

For actors I can generate decals only via idProjectile (but this is more powerful thing with wound&splat decals and smoke particles).

Something like static stretched plasma's projectile.
« Last Edit: April 29, 2017, 09:57:37 AM by bitterman »