nicked on 21/2/2016 at 14:56
Anyone got these working? I've been messing around and had no luck so far.
I want to have different environment maps for different areas, specifically for water reflections. I can get the reflections working globally, no problem by adding lines to an mtl file with the water texture.
e.g. From the material-format notes with NewDark:
env_map 0.75 2 tex\envmaps\reflection1(0.75 is VERY reflective, but I can tone it down once I've got it working)
Then the documentation says:
Code:
env_map <alpha:float> <scale:float> * <texture>
-----------------------------------------------
Variant of "env_map" that also enables "use_location_envtex", to allow mission defined environment maps
to be used, if available, instead of the specified default texture. Optionally the texture name can be
omitted which enables "use_location_envtex 2" instead.
Ex:
env_map 0.5 1 * tex\envmaps\envcube1
So I tried
env_map 0.75 1 * (omitting the texture name).
This gives me 2 monolog errors:
WARNING: skipping unknown param 'use_location_envtex' in material 'grin.mtl'
WARNING: 'env_map' param in material 'grin.mtl' failed to load texture ""In Dromed, I have set Env Zone 1 to
tex\map\FirstArea and this is also the filename of the DDS cubemap in that folder. I've then set the
Room > Render Options > Env Zone to 1 on the room brush and rebuilt the room database.
With this setup, I get nothing, no reflection at all.
I don't really understand any of this new mtl stuff, so I'm basically groping in the dark. If anyone has got this working, is there a demo or clear tutorial available anywhere?
ZylonBane on 21/2/2016 at 17:22
It would have been helpful if you'd actually posted the content of your material file. "use_location_envtex" is supposed to go inside a render pass block. And I suspect you're supposed to provide a default envmap texture after the asterisk.
nicked on 21/2/2016 at 19:12
Code:
force_ani_settings 1
terrain_scale 512
ani_rate 60
use_location_envtex 2
env_map 0.75 1 *
Basically just modified the existing one that came with vurt's water.
LarryG on 22/2/2016 at 00:03
Just a guess, but when was the last time you did a Complete Processing. Something tickles my memory about that being needed for any changes to weather zones. Maybe this needs that too?