US
Joined: Jul 7, 2023
Post Count: 3
Status:
Offline
Problem with imported object normals
I'm having difficulty importing sets of books I created in Blender. In Blender, they look fine
but when I try to import them to Sweet Home 3D they look like this:
It seems like there's something weird going on with the normals, but they render correctly in every other program and as far as I can tell they're correct in Blender. When I turn on backface culling in Blender every face still renders correctly.
Netherlands
Joined: Apr 8, 2022
Post Count: 1366
Status:
Offline
Re: Problem with imported object normals
Your zip file is missing/invalid so I can't take a look at it.
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects
Netherlands
Joined: Apr 8, 2022
Post Count: 1366
Status:
Offline
Re: Problem with imported object normals
Looking from the right at the books they are fine, from the left they are missing textured faces. Looks to me like you missed something in Blender, i.e. the books left side faces.
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects
Joined: May 18, 2021
Post Count: 255
Status:
Offline
Re: Problem with imported object normals
Looking quickly in Blender one thing I notice is that the facing sides of each pair of books are at the exact same y coordinate. This is probably the source of the weird rendering in SH3D. SH3D is using OpenGL, and overdrawing of exactly aligned faces can can cause weird artefacting in SH3D. Try separating them by a tiny amount.
Netherlands
Joined: Apr 8, 2022
Post Count: 1366
Status:
Offline
Re: Problem with imported object normals
And check that all faces are oriented outward. You might have a few faces that are facing in the wrong direction. Wouldn't be the first time that happened with models created in Blender
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects
US
Joined: Jul 7, 2023
Post Count: 3
Status:
Offline
Re: Problem with imported object normals
I had a weird thought and tried changing the .png file to .jpg and that appears to have fixed the problem. I've also had issues importing PNGs as textures so I think the issue is a bug in PNG support in Sweet Home 3D.
Netherlands
Joined: Apr 8, 2022
Post Count: 1366
Status:
Offline
Re: Problem with imported object normals
If the problem is solved by converting the PNG to JPG it's probably that tranparency in the PNG caused it, not a bug in Sweethome3D. I have never had problems with PNG's in Sweethome3D which of course respects the transparency in PNG's. Very useful to add an overlay text PNG with a transparent background for signs.
---------------------------------------- Dodecagon.nl 1000+ 3D models, manuals, and projects
Joined: Jan 28, 2023
Post Count: 8
Status:
Offline
Re: Problem with imported object normals
I've had this issue as well. If it's just because of transparency when using .png then at least that's an easy fix. I can just rebake my textures into jpg.
Not my thread I know but helpful nonetheless, thanks OP!
Italy
Joined: Nov 17, 2021
Post Count: 466
Status:
Offline
Re: Problem with imported object normals
The problem is caused by the way raster 3D graphic handles transparent objects. Although your object is not transparent, it is treated as such because the texture has some transparent pixels. You can still use the PNG format as long you fill the whole image with fully opaque pixels (i.e. try to fill the transparent area with white). The alternative is to divide the object in multiple shapes so that the rasterizer can draw them in the proper order.