Jump to content
The Dark Mod Forums

Recommended Posts

Posted

The latest dev build (dev16629-10139) contains some changes regarding frob highlight.
The full explanation is given in 5427.

Most importantly, the material stages are now generated by default if they are missing.
The core materials will be cleaned accordingly in near future.


Also we added new syntax for customizing frob-highlight in simple cases.

First of all, you can set frob-highlight with custom texture (e.g. it can be specular map) and arbitrary coefficients:

  • frobstage_texture textures/darkmod/sfx/whiteglass2 0.25 0.5

Since diffuse texture is used in most materials, here is a shortcut for it:

  • frobstage_diffuse 0.1 0.35

The first number is the multiplier applied to texture, and the second number is the amount of white color added.
You can also make non-white multiplier or addition by putting three numbers in parentheses, e.g.:

  • frobstage_diffuse (0.15 0.35 0.15) 0.4

Of course, the most recommended approach is to not write any frob text, in which case frobstages are added implicitly as "frobstage_diffuse 0.15 0.4".
The implicit frobstages are added only if there are no frobstages specified explicitly.

If you want to suppress implicit generation of frobstages (not recommended), you can write:

  • frobstage_none

Finally, if you want to make something special and customizations listed above are not enough, then you can just write frobstages the old way via parm11 parameter. The old frob-highlight stages should continue to work properly.
If you write frobstages manually, please follow the rules (or you'll get warnings):

  1. Start every frobstage exactly with if (parm11 > 0) condition.
  2. Do not mention parm11 outside frobstages.

 

P.S. Here is previous discussion of frob highlight, in case anyone is interested:

 

  • Like 3
  • Thanks 1
Posted
1 hour ago, stgatilov said:

The old frob-highlight stages should continue to work properly.

So do the new frob-highlight stages look different? A lot of missions include their own materials with material stages included. This could mean, that sometimes in the mission the highlight looks different, depending of using their own materials or use of core files.

Sorry if this is total nonsense.

Posted
50 minutes ago, datiswous said:

So do the new frob-highlight stages look different? A lot of missions include their own materials with material stages included. This could mean, that sometimes in the mission the highlight looks different, depending of using their own materials or use of core files.

There is nothing like "new frob-highlight", nothing has changed in the way highlight works.

What's new is:

  1. Rule for generating frobstages implicitly.
  2. Some new "frob macros" that you can use for the rare cases where default looks too bad.

Under the hood, there is nothing new.
Both implicit stages and the macros are 100% equivalent to frobstages which are all over the core materials (and missions, I suppose) right now.

The existing materials should look the same as they did.
Although there is some risk that added implicit frobstages could break something.

  • Like 2
Posted
3 hours ago, stgatilov said:

Most importantly, the material stages are now generated by default if they are missing.

Very nice that we don't have to add these manually for every material anymore, if I understand correctly.

Posted

I'm currently cleaning frobstages in core materials.

I noticed that the macros I listed above are broken 😳
It is strange because I tested all this stuff... perhaps I reordered generates frobstages in the end, which triggered the bug.

Just keep in mind that the macros don't work as intended... maybe implicit generation also.

Posted

Thanks. This is basically what I was asking for in that frob outline thread. Nice to see some cleanup happening on our materials and a default frob highlight as well to fix missing frob highlight definitions.

In what way are your macros broken? Can you post screenshots? Does the default frob highlight work?

Posted
7 hours ago, STiFU said:

In what way are your macros broken? Can you post screenshots? Does the default frob highlight work?

On the latest dev build, the wrong texture name is used.
For instance, frobstage_diffuse often uses _white instead of diffuse texture, so things look "milky".

  • 3 weeks later...
  • 8 months later...
Posted

Hi,

I recently created a mod (script) that makes use of the parm11 parameter to force a blink when some objects are within frob distance.

I was made aware by @stgatilov of some changes in relation with parm11 in the development branch and I gave dev16818-10434 a try and I noticed the beat or blinking pattern is slower than in 2.11a and therefore slower than intended.

While I don't expect any support for mods I thought it was worth mentioning it because something definitively isn't as before.

TDM_Modpack_Thumb.png

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

    • JackFarmer

      "The Year of the Rat." 
      😄

      Al Stewart must be proud of you!
      Happy testing!
      @MirceaKitsune
      · 1 reply
    • datiswous

      I posted about it before, but I think the default tdm logo video looks outdated. For a (i.m.o.) better looking version, you can download the pk4 attached to this post and plonk it in your tdm root folder. Every mission that starts with the tdm logo then starts with the better looking one. Try for example mission COS1 Pearls and Swine.
      tdm_logo_video.pk4
      · 2 replies
    • JackFarmer

      Kill the bots! (see the "Who is online" bar)
      · 3 replies
    • STiFU

      I finished DOOM - The Dark Ages the other day. It is a decent shooter, but not as great as its predecessors, especially because of the soundtrack.
      · 5 replies
    • JackFarmer

      What do you know about a 40 degree day?
      @demagogue
      · 4 replies
×
×
  • Create New...