Shader Param and .mhmat files

Discussions about user contributed assets. This is a good place to request new assets, as well as requesting support on existing assets that have been downloaded from the user contributions repository.

Moderator: joepal

Shader Param and .mhmat files

Postby MargaretToigo » Tue Feb 12, 2019 6:38 pm

I've just spent the last hour figuring out a problem and re-uploading the .mhmat files for all of the 15 skins I have uploaded to the repository.

I saw a comment on about how this skin... ... akeup.html

...fails to render.

And I knew what the commenter was talking about, but since I usually only render my MH stuff in Blender, I didn't think very much about it, or how to solve the issue -- which is the same for all of the skins I've shared here.

This seems to only happen with skins ( not clothes, hair, eyes, etc ), and only under the Render tab.
Screen Shot 2019-02-12 at 1.01.19 PM.png
Skin in Render tab

Screen Shot 2019-02-12 at 1.01.07 PM.png
Skin shown in Main and other tabs

It must have something to do with the shader configs because adding one line to my .mhmat files seems to have solved the problem.

By default, the Shader programme section of an .mhmat file looks like this:

Code: Select all
// Shader programme
shader data/shaders/glsl/phong

But I noticed that some other skins I've downloaded from the Repository -- which do show up correctly under the Render tab -- contain an additional line:

Code: Select all
// Shader programme
shader data/shaders/glsl/phong
shaderParam litsphereTexture data/litspheres/lit_standard_skin.png

All I did was copy/paste that line from another skin .mhmat file into my skin .mhmat files, and lo and behold, all 15 of my skins now show correctly in all the MakeHuman tabs. ... akeup.html ... akeup.html ... akeup.html ... inger.html ... inger.html ... _eyes.html ... ckles.html ... akeup.html ... liner.html ... ronze.html ... akeup.html ... ckles.html ... ger_2.html ... akeup.html ... ronze.html
Posts: 175
Joined: Thu Feb 16, 2017 6:46 pm
Location: Tampa Bay Florida, USA

Return to Assets, asset repositories and asset downloader

Who is online

Users browsing this forum: No registered users and 1 guest