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
Checking Double Sided doesn't export as double-sided geometry
#154
Comments
|
Will this option be supported in near future? Is there currently a workaround to export double sided meshes properly? I currently duplicate the mesh and flip the normals of the copy, but this is very data intensive. |
|
@mholthausen I'm not sure if this will work for your use case, but in some cases I was able to use the Just be sure to remember to check the |
|
This might interest you: |
|
Hello, I asked Andreas to submit the patch here to manage it upstream |
Thanks. But this modifier makes no difference in the file size when duplicating the layer and flip normals, because the modfier duplicates the triangles and faces, too. |
Hmm. I could be wrong, but I was under the impression that duplicated geometry and flipped normals is the expected result after exporting when trying to achieve a double-sided mesh. Does the older workflow with the glTF shader nodes not result in a larger file size? |
|
The Note that with #255, you can use the old glTF PBR nodes to set the double sided flag (while still using Principled BSDF for the rest of the material). |
|
Ah, good to know. I guess I had the wrong impression. Thanks, @donmccurdy. |
Technical nitpick, it's not actually rendering each face twice. What happens in most engines is that "backface culling" is disabled for double-sided materials. At the same time, back-facing fragments have their normal vectors automatically flipped (this is sometimes called "double-sided lighting"). For reference, glTF doesn't offer a single-sided lighting mode, but Blender does. In glTF you either get double-sided lighting (when But the rest of what @donmccurdy wrote is correct: The file size is unchanged, and there can be a (usually minor) performance hit from rasterizing all the backfaces. It's much better than using the solidify modifier, in terms of file size and memory footprint. |
|
Interesting. Thanks for clarifying, @emackey. |
|
Fixed in #304. |

Checking the
Double Sidedcheckbox underObject Datadoesn't export a double-sided geometry.Is this the preferred method for doing so, or is there another way?
The text was updated successfully, but these errors were encountered: