Closed aplatyps closed 10 months ago
Which file format were you trying to export to?
.obj .mtl and .png
Ah, this seems to be an issue on MeshLab's end, which is what I assume you are using based off of the video. Try changing the Render settings for "Back-face" from Single to Double.
Before:
After:
Ah, I got the inverted texture when visualising it with Trimesh library and Pyrender as well. Maybe they're not compatible with the way bpy encode the faces information.
Could you send the original blend file and exported zip if possible? Could not replicate the error locally.
Here you go
At least from what I can see, the textures are not inverted when I do a side by side comparison of the objects. It seems to me the "upwards" part of the flower being dark is caused by a simple lack of illumination on that face (as I can just about replicate it if I turn off all light sources in Blender). We don't bake the scene lighting into the exported textures, so you'll have to add lighting in your renderer of choice.
I see, that explains it! I just need to find a way to illuminate the top part then. Thanks for the promptly replies :)
Hi @David-Yan1 :) I saw that the file
infinigen/worldgen/tools/export/export.py
is written by you. I think the textures are baked inversely. I tried exporting an asset's (e.g. a flower) mesh and texture after generating viainfinigen/worldgen/tools/generate_individual_assets.py
and noticed all the textures are upside-down. Could you help take a quick look at it? Thanks!An example would be as below: https://github.com/princeton-vl/infinigen/assets/103926799/7c06a52c-d953-49bd-8a90-11afedd43fb9
Steps to Reproduce
Run
infinigen/worldgen/tools/export/export.py
on a .blend file generated viainfinigen/worldgen/tools/generate_individual_assets.py
Version of the code were you using? : latest
Platform