Jump to content
The Dark Mod Forums

[2.11] Frobstages: automatic generation and customization


stgatilov

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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".

Link to comment
Share on other sites

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

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 4.0

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

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 6 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...