Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-layers not exported #10

Open
MyMaia opened this issue Mar 8, 2012 · 27 comments
Open

Multi-layers not exported #10

MyMaia opened this issue Mar 8, 2012 · 27 comments

Comments

@MyMaia
Copy link

MyMaia commented Mar 8, 2012

Hi,

I have a 3D model designed by Makehuman. It has several layers, and only the skirt is exported.
Cedric, how can I send you this file ?
Maia

@cedricpinson
Copy link
Owner

If it's a blender file you can try this service http://www.pasteall.org/blend/ and put the url of the model here

@MyMaia
Copy link
Author

MyMaia commented Mar 9, 2012

Hi,

I paste the blend file on pasteall.org, I could'nt see any url though. The name of the file is: test_dressed_02.blend.
The textures are at:
https://picasaweb.google.com/114451333218591663090/Textures?authkey=Gv1sRgCKHy5d2slKj4jAE#

Thank you very much,
Maia

@cedricpinson
Copy link
Owner

To make it easier could you pack your texture in the blend file ?

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

MyMaia [email protected] wrote:

Hi,

I paste the blend file on pasteall.org, I could'nt see any url though. The name of the file is: test_dressed_02.blend.
The textures are at:
https://picasaweb.google.com/114451333218591663090/Textures?authkey=Gv1sRgCKHy5d2slKj4jAE#

Thank you very much,
Maia


Reply to this email directly or view it on GitHub:
#10 (comment)

@MyMaia
Copy link
Author

MyMaia commented Mar 9, 2012

Hi,

I uploaded the image file of the exported example (in test_dressed_02.blend) in pasteall.org: the name is test_dressed_02_exportedBlender259.jpg.

Cheers,

Maia

@MyMaia
Copy link
Author

MyMaia commented Mar 9, 2012

Could you tell me how to do that ?

Did you have problem to download the textures at picasa?

--- En date de: Ven 9.3.12, Cedric Pinson [email protected] a crit:

De: Cedric Pinson [email protected]
Objet: Re: [osgexport] Multi-layers not exported (#10)
: "MyMaia" [email protected]
Date: Vendredi 9 mars 2012, 16h53

To make it easier could you pack your texture in the blend file ?

Sent from my Android phone with K-9 Mail. Please excuse my brevity.

MyMaia [email protected] wrote:

Hi,

I paste the blend file on pasteall.org, I could'nt see any url though. The name of the file is: test_dressed_02.blend.
The textures are at:
https://picasaweb.google.com/114451333218591663090/Textures?authkey=Gv1sRgCKHy5d2slKj4jAE#

Thank you very much,
Maia


Reply to this email directly or view it on GitHub:
#10 (comment)


Reply to this email directly or view it on GitHub:
#10 (comment)

@MyMaia
Copy link
Author

MyMaia commented Mar 9, 2012

Hi,

I packed the texture in .blend file but it's too big: 46 Mb (more than the 30mb allowed).
The name is test_dressed_03.blend), I got erroe "No file selected".
Maia

@MyMaia
Copy link
Author

MyMaia commented Mar 13, 2012

Hi Cedric,

I'd like to know if you could get at last the file test_dressed_02.blend with the separate texture files on picasa. As I told earlier, I couldn't transfer the packed blend file since it is bigger that the 30Mb allowed on pasteall.org.
Maia

@cedricpinson
Copy link
Owner

I dont have the url of your model in pasteall.org to get the url of your model uploaded get it from the adress bar ? leave the texture I will have a quick look without them

@MyMaia
Copy link
Author

MyMaia commented Mar 13, 2012

Hi,
This is the url:
http://www.pasteall.org/blend/12560

I didn't see it before ;-)
Maia

--- En date de: Mar 13.3.12, Cedric Pinson [email protected] a crit:

De: Cedric Pinson [email protected]
Objet: Re: [osgexport] Multi-layers not exported (#10)
: "MyMaia" [email protected]
Date: Mardi 13 mars 2012, 15h00

I dont have the url of your model in pasteall.org to get the url of your model uploaded get it from the adress bar ? leave the texture I will have a quick look without them


Reply to this email directly or view it on GitHub:
#10 (comment)

@MyMaia
Copy link
Author

MyMaia commented Mar 13, 2012

Hi,

The url is:
http://www.pasteall.org/blend/12560

Maia

@MyMaia
Copy link
Author

MyMaia commented Mar 13, 2012

Cedric,

By the way, I'd like to know the pros/cons of using Blender osgExporter compared to Collada exporter (it is also avalaible in Blender).
Thanks,
Maia

@cedricpinson
Copy link
Owner

The collada exporter did not work enough well on previous blender version. I dont know now if it's better.

@cedricpinson
Copy link
Owner

http://yfrog.com/b866umj here the result when I export it

@MyMaia
Copy link
Author

MyMaia commented Mar 13, 2012

Could you give your Blender version and the options you checked ?
I got this result:
https://picasaweb.google.com/114451333218591663090/Dressed_MH?authkey=Gv1sRgCPuz9unkueXXKQ#

(just the green skirt + a strange cube that I don't know from where)
Maia

@MyMaia
Copy link
Author

MyMaia commented Mar 13, 2012

Hi,

See comments on:

http://yfrog.com/nndmwrj
http://yfrog.com/0dg063j
http://yfrog.com/mtg2vlj

Cheers,
Maia

--- En date de: Mar 13.3.12, Cedric Pinson [email protected] a crit:

De: Cedric Pinson [email protected]
Objet: Re: [osgexport] Multi-layers not exported (#10)
: "MyMaia" [email protected]
Date: Mardi 13 mars 2012, 15h55

http://yfrog.com/b866umj here the result when I export it


Reply to this email directly or view it on GitHub:
#10 (comment)

@MyMaia
Copy link
Author

MyMaia commented Mar 13, 2012

Hi,
I put another photo here:
http://yfrog.com/f6jkqj

with the body layer only: do you have these textures ?

@MyMaia
Copy link
Author

MyMaia commented Mar 22, 2012

Hi Cedric,

Sorry for bothering you with that, but I tried to export only nude character, but I got nothing. In the log file, I got for example this:

Type of NudeMesh is MESH
exporting object NudeMesh
mesh_object is Mesh
mesh NudeMesh with material NudeSkin
vertexes reduced from 37968 to 11375
faces 9492
WARNING group has no vertexes, skip it, if really unsued you should clean it
WARNING group has no vertexes, skip it, if really unsued you should clean it
WARNING group has no vertexes, skip it, if really unsued you should clean it
WARNING group has no vertexes, skip it, if really unsued you should clean it
WARNING group has no vertexes, skip it, if really unsued you should clean it
vertex groups 115
uvs channels 1 - dict_keys(['UVTex'])

WARNING update material animation not yet supported

and the exported file has nothing though the size is 5Mb !!!

The blend file is at:
http://www.pasteall.org/blend/12726

and the textures at:
https://picasaweb.google.com/114451333218591663090/Textures02?authkey=Gv1sRgCLTs-9KE_tKvKA#

Thank you for you time,

Maia

@cedricpinson
Copy link
Owner

I used the last version of the exporter on the this repository. Were you able to try the source version ? you can build it with build.sh script

@MyMaia
Copy link
Author

MyMaia commented Mar 26, 2012

Hi Cedric,

I re-install the last version of the exporter on this repository and I get better results with the nude model.
http://www.pasteall.org/blend/12928
The exported result is here:
http://yfrog.com/9hwla8j

I needed to change the texture file (in tif format) to png format otherwise I don't get the texture.
It works almost but not for the eyebrows nor the clothed model (all in black).

Could you change the exporter so that it can accept .tif format file ? I looked at osgdata.py but it does not support *.tif format.

What is strange is that even I changed the eyebrows file as texture.png, the eyebrows are still missing (see blend file).

Thank you very much for your time, really appreciate :o)

Maia

@MyMaia
Copy link
Author

MyMaia commented Mar 26, 2012

Please, have a look at :
http://yfrog.com/j3xc5vj
for the eyebrows option.

Thank you,

@MyMaia
Copy link
Author

MyMaia commented Mar 26, 2012

Also, here is the image when rendered in Blender:
http://yfrog.com/3uv1hp

Maia

@MyMaia
Copy link
Author

MyMaia commented Mar 26, 2012

Hi Cedric,

Just an explanation: Makehuman only have .tif files for textures.
Maia

@MyMaia
Copy link
Author

MyMaia commented Mar 27, 2012

Hi Cedric,

I put the a clothed exported model on:
http://yfrog.com/n03n2sj
the green skirt is well exported but the others are black.

Thank you
Maia

@MyMaia
Copy link
Author

MyMaia commented Apr 2, 2012

Hi Cedric,

Maybe an interesting way to follow for understanding what happens, I found this post:
http://www.makehuman.org/forum/viewtopic.php?f=13&t=2324

Though it is for Unity3D, maybe something similar could be bw done withing the exporter: " Unity3D made the eyes, brows, and mouth a separate material. All I did was changed them from diffused to transparent diffused and that made the material transparent. The underlying skin now shows."

Is it possible this within the exporter ?
Thank you,

Maia

@cedricpinson
Copy link
Owner

Could you isolate only the part that does not work correctly, I dont have free time to dig the whole things

@MyMaia
Copy link
Author

MyMaia commented Apr 5, 2012

Hi Cedric,

Thank you very for your time.

To summarize:

  1. The nude model is almost well exported right now. To do so:
     I had to change the “texture.tif” file to “texture.png” file, otherwise I get grey model with no texture. I used Gimp to save the .tif file as .png file (I used to use Irfanview before but Gimp is better to do so).
     If I don’t change “texture.tif” to “texture.png”, a file called “texture.unknown” is created in the texture directory (and the texture is not shown on the osg model).
     To have the eyebrows exported, I deleted the eyebrows mesh groups: this seems to be more related to Makehuman bugs than to the OSGExporter ones since other people complain about that (ex: Makehuman -> Unity), but I am not sure (http://www.makehuman.org/forum/viewtopic.php?f=13&t=2324)

  2. For the clothed model, everything is black except the green skirt, even if I changed all texture files in .tif format to .png format.

So, let’s say that the most problem is about the clothed model which has more than one layer (clothes and body layers).

The files are at:
http://www.pasteall.org/blend/13157
http://www.pasteall.org/pic/29661
http://www.pasteall.org/pic/29662
http://www.pasteall.org/pic/29663
http://www.pasteall.org/pic/29664
http://www.pasteall.org/pic/29667
http://www.pasteall.org/pic/29668

Thank you very much,

Maia

@MyMaia
Copy link
Author

MyMaia commented Apr 20, 2012

Hi Cedric,

Finally, I resolved the problems cited above with the following steps:

  1. Create two models with Makehuman (Nude and Clothed)
  2. Import into Blender to two different blend files
  3. Save all .tif texture files as .png files with Gimp (Paint doesn’t work since transparency will be lost)
  4. Change all texture with .tif format files as .png files in the two blend files
  5. Append the clothed model to the nude model
  6. Delete the mesh associated to the clothed model
  7. Delete eyebrows and eyelashes meshes
  8. The nude model is now clothed with the appended clothed model
  9. Export to OSG: the clothed final model is well exported to OSG (see http://www.pasteall.org/pic/30521)

My next step will be to verify that the animation of the resulted model is working as in the original imported clothed Makehuman model.

Thank you,

Maia

cedricpinson pushed a commit that referenced this issue Sep 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants