Hello,
Recently after using later updates of Z3D I have noticed that when I export a model with embedded textures, the env does not export with it. I am creating clothing for GTA5 and I can have the BUMP and SPEC embedded but the env does not export with them, this is the same when creating new models, or re-exporting older ones which used to have working env.
I put this here in bug reports because I am not 100% sure if it is a bug with the newer versions of Z3D as older projects of mine which did work no longer when re-exported or if I am just being daft and doing it wrong. (Hopefully I don't think I am)
env not working
Moderator: Oleg
Re: env not working
Environment mapping texture is assigned in ZModeler on ENVMAP slot to have a reflection rendered on material. The game uses real-time dynamic environment probes (cube maps) and applies them onto materials. You can't embed or use pre-defined environment texture on material, as game shaders do not have texture assignment for environment reflection.
Re: env not working
Hi Oleg, thank you for replying.
It is really strange, because we used to be able to add an env.dds into the material properties for 'PED' or 'PED_ALPHA' etc.. and then if we embedded it into the .ydd then in gta the model would have reflective properties. Now when we do exactly the same thing, ZModeler only exports with the SPEC and BUMP embedded and forgets that the env.dds is also present, and then in gta the model does not have reflective properties, even though it does in ZModeler.
It used to look like this in game as well as ZModeler, now only ZModeler due to env.dds not being embedded. (Image Attatched)
Because the model I am using for gta is being exported as a prop, I can change the material type to 'Normal Spec' which allows me to embedd the env.dds still and with some tweaking of the material properties allows for the reflective property in gta to still work. However this alternative isn't preferred, as we should still be able to use 'PED' to achieve this.
It is really strange, because we used to be able to add an env.dds into the material properties for 'PED' or 'PED_ALPHA' etc.. and then if we embedded it into the .ydd then in gta the model would have reflective properties. Now when we do exactly the same thing, ZModeler only exports with the SPEC and BUMP embedded and forgets that the env.dds is also present, and then in gta the model does not have reflective properties, even though it does in ZModeler.
It used to look like this in game as well as ZModeler, now only ZModeler due to env.dds not being embedded. (Image Attatched)
Because the model I am using for gta is being exported as a prop, I can change the material type to 'Normal Spec' which allows me to embedd the env.dds still and with some tweaking of the material properties allows for the reflective property in gta to still work. However this alternative isn't preferred, as we should still be able to use 'PED' to achieve this.
Re: env not working
may you show a close-up shot of this object in game?
If you take a look in OpenIV on object properties "More information -> Shaders ->" you can find your "ped" shader there with its parameters list. There are no parameters to specify reflection/environment texture. gta_spec shader neither has any reflection-assignment slots. The game does apply reflection texture dynamically. The strength of this texture is controlled by specular's texture channel. So, I do not see any reason or purpose for the environment texture to be embedded in a model file as the game will not use it.
If you take a look in OpenIV on object properties "More information -> Shaders ->" you can find your "ped" shader there with its parameters list. There are no parameters to specify reflection/environment texture. gta_spec shader neither has any reflection-assignment slots. The game does apply reflection texture dynamically. The strength of this texture is controlled by specular's texture channel. So, I do not see any reason or purpose for the environment texture to be embedded in a model file as the game will not use it.
Re: env not working
Hello, I don't know if it is in line with the rules to ask you under this post, but I have something urgent to solve now. After I open zm3 and import yft, it tells me that I have encountered inappropriate parameters. Do you know what the problem is? How to solve it? I would appreciate it if you could provide a solution!Oleg wrote: ↑Fri Feb 16, 2024 4:05 am may you show a close-up shot of this object in game?
If you take a look in OpenIV on object properties "More information -> Shaders ->" you can find your "ped" shader there with its parameters list. There are no parameters to specify reflection/environment texture. gta_spec shader neither has any reflection-assignment slots. The game does apply reflection texture dynamically. The strength of this texture is controlled by specular's texture channel. So, I do not see any reason or purpose for the environment texture to be embedded in a model file as the game will not use it.
Re: env not working
this doesn't sound like scenario I was expecting ZModeler to run. At least this is an error message I have in a code. may you attach a screenshot of this message and specify when exactly it appears? do you see a ZModeler's logo or ZModeler's main window before getting this error?