It is good and it is bad

Tech support and suggestions forum. If you only have a basic question on how to get started, please use the "newbies" forum in the community section.

Moderator: joepal

It is good and it is bad

Postby jpujolar » Fri Sep 11, 2020 2:37 pm

Hello,

It may be a bug. Maybe I do something unexpected. The issue is:

1. I have created through Blender a set of eyeglasses that work fine in MakeHuman, except...
2. MH does not display its texture correctly; it displays the default texture design.

But

3. If I import the character and eyeglasses back to blender, they appear fine. See attached.

I have tried changing the name of the PNG that defines the colour in various ways (also attached)
Attachments
Eyeglasses_4_diffuse.png
Screen Shot 09-11-20 at 04.29 PM.PNG
Compare glasses as they appear in MH and in Blender.
jpujolar
 
Posts: 16
Joined: Fri Jul 17, 2020 2:49 pm
Location: Girona

Re: It is good and it is bad

Postby joepal » Fri Sep 11, 2020 3:03 pm

Can you attach the MHCLO and the MHMAT files too? Or paste their contents in a reply?
Joel Palmius (LinkedIn)
MakeHuman Infrastructure Manager
http://www.palmius.com/joel
joepal
 
Posts: 3851
Joined: Wed Jun 04, 2008 11:20 am

Re: It is good and it is bad

Postby jpujolar » Sat Sep 12, 2020 9:45 am

joepal wrote:Can you attach the MHCLO and the MHMAT files too? Or paste their contents in a reply?


Here they are. It seems that these extensions are not allowed as attachment. So I have simply entered the extension "zip." Do not unzip it. Just change the extension.

It does not happen now with other trials I have made. Now the eyeglasses appear colorless, whether I activate "use skin" or not. I may have to do with the way Blender handles textures and the texture paint function, which I find somewhat unpredictable.
Attachments
Eyeglasses_5_mhmat.zip
(424 Bytes) Downloaded 48 times
Eyeglasses_5_mhclo.zip
(2.29 MiB) Downloaded 48 times
jpujolar
 
Posts: 16
Joined: Fri Jul 17, 2020 2:49 pm
Location: Girona

Re: It is good and it is bad

Postby punkduck » Sat Sep 12, 2020 2:42 pm

this was easy to find.

Code: Select all
diffuseTexture Pasta ulleres.png


(it is a line in the .mhmat file, both files are text-files)

instead of using the Catalan version for the glasses MakeHuman tries to read a texture named "Pasta". :?

I don't know, I first thought, our module replaces letters to "clean the names" (especially letters like "/" will create trouble), but I am pretty sure the texture-names we do not change, because then we have to change the filenames not created with our tools also.

There must be a message in the left lower corner in MakeHuman when you try to load it, like "cannot get texture for file path Pasta"

Atm you must rename it to something without blanks. That's a limit inside Makehuman. I also tried a version with diffuseTexture "Pasta ulleres.png" but that does not work,

The fastest way to repair that: rename the .png file and use a simple text-editor to replace the line in the .mhmat file. Otherwise recreate the glasses with a different texture name the same way you did before.
User avatar
punkduck
 
Posts: 956
Joined: Mon Oct 17, 2016 7:24 pm
Location: Nuremberg, Germany

Re: It is good and it is bad

Postby jpujolar » Sat Sep 12, 2020 2:59 pm

It was silly enough... Thanks!
jpujolar
 
Posts: 16
Joined: Fri Jul 17, 2020 2:49 pm
Location: Girona

Re: It is good and it is bad

Postby flute » Sat Sep 12, 2020 4:18 pm

Very pretty glasses: once "repaired", don't you want to put them in the assets? It would be very useful to me! :)
flute
 
Posts: 41
Joined: Mon Dec 25, 2017 11:39 pm
Location: France

Re: It is good and it is bad

Postby MTKnife » Sun Sep 13, 2020 5:08 am

I assume putting quotes around the filename will also work.
MTKnife
 
Posts: 290
Joined: Tue Sep 01, 2015 5:22 am

Re: It is good and it is bad

Postby Aranuvir » Sun Sep 13, 2020 8:28 am

MTKnife wrote:I assume putting quotes around the filename will also work.

Unfortunately no. The parser is kept quite simple. Each line of the file is piped through Python's split() function, using white spaces as separator. The expected result is something like key, value1, [value2 ...]. If you split up a line like word1 "word2 word3", you'll get the result key = word1, value1 = "word2, value2 = word3". This still won't work. That's the reason why it is good practice to avoid white spaces in file names, not only for Python but also for example in shell environments this could quite a pain in the a...
Aranuvir
 
Posts: 1208
Joined: Sun Oct 12, 2014 2:12 pm


Return to Bugs, problems and feature requests

Who is online

Users browsing this forum: No registered users and 1 guest