Print at Dec 18, 2025, 10:41:21 PM

Posted by [email protected] at Apr 17, 2024, 6:19:39 PM
Re: Custom 3D Model being imported without texture
Hello KEET
Here I am again, my work on the shutters is almost finished and, hopefully soon, if you want, I will send it to you again for any criticisms to improve the objects created.
Precisely while I was creating said objects, they are for historical houses not modern ones, I came across a strange object in the creation of an object to create texturable indentations in the walls and not totally perforating EVEN IF IMPORTED AS WINDOWS/DOORS therefore with the appearance of solid objects.

IN 2d AT LEVEL 0
1) I created a completely closed wall with thickness 0.1 and height 2 (then you will see that the height is irrelevant)
2) I created the relevant floor (without area and ceiling)
3) I placed a small object (I used a mini cube to then be able to recognize it)
4) I exported everything into an obj
5) I deleted the minicube information from the obj file (to avoid having to use an editor, I imported it into sweethome3d, made the parts of the cube invisible and exported it again)
6) I corrected the obj file by identifying only the internal parts of the originally imported wall with the right MTL definitions

THEN I imported the object by ROTATING IT APPROPRIATELY in sweethome3d first as a solid to visually check any transparencies on a colored wall.....when, after OK, I imported the same object as a door/window.

RESULT
The object worked but behaved strangely, then looking at it closely I noticed the distance between the exported part of the wall and that of the floor and therefore I repeated the exports to produce 2 separate objects (the wall and the floor). I assembled everything in 2D obtaining a final object. Checking the separate objects I realized that the floor had a thickness of 0...I thought it was my mistake (sweethome doesn't allow thicknesses of 0) and I corrected it to 0.1 (the minimum)
I made the usual corrections and this time I immediately imported as a door/window.

THE RESULT was a door/window object that could only be used to drill holes in walls and whose bottom didn't seem to exist at all.
I then re-imported the object that I had corrected (floor), this time leaving the thickness at 0, then made the correct positioning and recreated what my purpose was.
I redo the import and now the object behaves as it should, that is, it partially pierces the walls with a texturable bottom and sides.
Well I said to myself, done
All I had to do was verify the behavior by changing the thickness of the final object when, while wandering in virtual 3D, I placed myself behind the pre-assembled object on the opposite side to the one used to correct it... AMAZING... the background was totally transparent THEN I move and instead on the opposite side it was textured....
I go to the wall on which I had tried positioning the finished object and the thing repeats itself only when I EXCEED the wall IN DEPTH, that is, the textured object pierces the wall partially only until its depth exceeds (in my case by about 1 cm) the depth of the wall then pierces it and the background (even if textured) becomes transparent. NOT ONLY the same effect is obtained only by using the reverse button on the object itself.
Did I make any mistakes while creating??
I'll send you the link that contains the file with all the tests, they are tests and they will have names in Italian


https://www.mediafire.com/file/8kdo79lnucbqqk..._hole_texturable.rar/file