|
Sweet Home 3D Forum » List all forums » » Forum: 3D models and textures » » » Thread: Custom 3D Model being imported without texture |
|
| Print at Feb 6, 2026, 3:33:56 AM | |
| Posted by Sivor at Mar 5, 2024, 10:05:16 PM |
Custom 3D Model being imported without textureHello people! I recently started importing my own custom 3D models in Sweet Home 3D. However, they are always imported without their textures at all. For example, I have a 3D model which has an image in it, how can I import it in a way that the image will be displayed in the editor? Thank you guys! ---------------------------------------- Sivor |
| Posted by Keet at Mar 6, 2024, 8:13:57 AM |
|
Re: Custom 3D Model being imported without texture What file format are you importing? (OBJ/MTL, 3DS?) Usually the problem is that the path reference to the textures is wrong or there simply are no textures. With an OBJ/MTL file you can check the MTL file. The texture references on the map_Kd lines tell you where the textures are expected to be found. Make sure the textures are at the listed location. It's common to have the textures in the same directory as the OBJ/MTL file and no path reference in the MTL file. If there are no textures you should check that the program you use for creating the 3D models (Blender?) exports the textures along with the mesh file. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Sivor at Mar 6, 2024, 2:15:28 PM |
|
Re: Custom 3D Model being imported without texture Hello! I am taking a GLB format and converting it into an OBJ format. No, I'm not using blender, I am still a newbie so I'm creating 3D models using Paint 3D. I even tried importing models from the 3D library provided by Microsoft and upon converting them into OBJ and importing them, they all came in as a dull grey model without texture. ---------------------------------------- Sivor |
| Posted by Keet at Mar 6, 2024, 3:00:55 PM |
|
Re: Custom 3D Model being imported without texture Check your export from GLB to OBJ. You should have an .OBJ file, a .MTL file, and one or more texture image files. If the MTL file is missing you won't have any meterials, if the texture images are missing you won't see any textures. Both the OBj and MTL files are just text files you can edit with a plain text editor. In short, the OBJ file is the mesh, the model itself. The MTL file is the materials file where the different materials are defined. If you do have the MTL file and the texture images, check the OBJ file Close to the top in the OBJ file there should be a line "mtllib ????.mtl" where ???.mtl is the name of the MTl file you got with the GLB conversion. If that line references a non-existing MTL file you will not have any material, i.e. textures or predefined colors. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by [email protected] at Mar 12, 2024, 2:17:27 PM |
|
Re: Custom 3D Model being imported without texture Hi, Keet I use this Post to continue my experiments. As mentioned in the Post "Problem to 3d view", following your indications, I am in the process of preparing the model that joins windows/french windows to the relevant external shutters with the related movements. Here you will find the initial stages of the project and the finished (but to be refined) model of the high shutter with jealousies to match the French door under construction. https://www.mediafire.com/file/xuktironst2eu0i/shutters_french_windows.rar/file I repeat that the high shutter needs to be refined (translated and simplified) but it expresses the concept of the movements I wanted to subject it to. In the window leaning against the wall (also in the experimental phase) there is the plane external to the movement which acts as a landing in the wall and on which as an idea the shutters with jealousy will have to be fixed (I mean in the space of transparency delimited by the landing plane) ( for windows) which I have yet to complete. Tell me if you want what you think |
| Posted by Keet at Mar 12, 2024, 2:34:21 PM |
|
Re: Custom 3D Model being imported without texture Looks like you mastered the chained deformations very well. (hinge_on_hinge) Take care that too much detail will grow the size of the objects. If you have a lot of those in a project things will slow down and make rendering a photo a very long process. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by [email protected] at Mar 12, 2024, 2:37:42 PM |
|
Re: Custom 3D Model being imported without texture Ahhh the window shutters have an error in the assignment of the hinges and the opening of the shutters which I am correcting, similar to the shutter on the French window |
| Posted by hansmex at Mar 12, 2024, 2:42:23 PM |
|
Re: Custom 3D Model being imported without texture good start, very interesting when ready H ---------------------------------------- Hans new website - under constuction hansdirkse.info |
| Posted by [email protected] at Mar 12, 2024, 2:47:21 PM |
|
Re: Custom 3D Model being imported without texture "Take care that too much detail will grow the size of the objects. If you have a lot of those in a project things will slow down and make rendering a photo a very long process." Unfortunately, shutters are necessarily complex objects (composed of numerous solid objects spaced by transparencies), I know that this involves a large OBJ file and heavy rendering speed.... but in homes (especially in Italy) they exist and will exist ....the historic centers are full of them |
| Posted by [email protected] at Mar 12, 2024, 6:00:00 PM |
|
Re: Custom 3D Model being imported without texture Keet as you know, I fill my free time with my experiments. After I have corrected the opening error of the "jealousies" of the window shutters (it will be sufficient to change the size of the relative Hinge, center it, position it correctly and reduce it to 1 for "jealousy"...I will have to deal with the union of the various objects (and each movement of the same) in a single object (which is not simple and a source of errors and import blocks).... And as I write this I am thinking of using that same Hinge to produce the "jealousies" together with the opening movement the movement of their stop (which rotates on the jealousy, however, should visually then be fixed to the frame).... but why don't I stop for a little... instead of causing trouble for myself.... ![]() |
| Posted by [email protected] at Mar 12, 2024, 10:46:14 PM |
|
Re: Custom 3D Model being imported without texture Excuse me I tried to correct the opening error of the jealous shutters on dektop3d. I had hypothesized (and written) that it derived from the shape or width of the hinge on which they moved......but the problem reoccurs on both objects created (I also finished the shutter with "jealousies" for the windows). ...QUESTION WHAT AM I DOING WRONG??? In the movements panel everything works perfectly while on the desktop 3D when the door to which the "jealousy" is linked is opened it seems to rotate in the center of the Hinge |
| Posted by [email protected] at Mar 12, 2024, 10:56:23 PM |
|
Re: Custom 3D Model being imported without texture Could it be caused by placing several separate points of the same Hinge in the movement of the frames? That is, must a single hinge be positioned/created for a single frame, which has the total length of the frame? |
| Posted by Keet at Mar 12, 2024, 10:57:11 PM |
|
Re: Custom 3D Model being imported without texture Objects turning wrong in the 3Dview is a bug in the Pan3Dview plugin as I have mentioned before. Movement in the deformation dialog window should be correct. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by [email protected] at Mar 12, 2024, 11:31:44 PM |
|
Re: Custom 3D Model being imported without texture Thanks Keet for the confirmation. This heartens me. I can continue the creation with the most difficult part: joining the window to its shutters and the French door to its own Then if I get an idea I'll try closing the "jealousies" once I've seen one live. Thank you |
| Posted by [email protected] at Mar 15, 2024, 5:18:13 PM |
|
Re: Custom 3D Model being imported without texture Hi Keet, Attached is the progress of my experiments on opening shutters, contained in the project. I don't know if this post is accurate, it's a discussion of models, movements and also the related pan3dview errors (which you have already fully explained to me. As indicated in the various levels of the project (one for each type of shutter), I still have two movement problems to solve. The first concerns moving the stop of "jealousy" in a coordinated way with its opening and closing. It would look a lot like a movement on a "Rail-to-Hinge" but it doesn't seem to work that way for me. I even tried to insert, as a test, an additional hinge on the rail thus set but the latter does not have any movement......am I wrong or is it not foreseen? The second would concern being able to open, as if it were a single block, several independent openings... but, honestly, I only hypothesized the possibility. Any kind of answer will be appreciated. Greetings https://www.mediafire.com/file/1ht6079mtqtl6uw/My_movable_shutters.rar/file |
| Posted by Keet at Mar 15, 2024, 5:52:17 PM |
|
Re: Custom 3D Model being imported without texture I have to dissapoint you. You can't limit the movement between two points because that feature is not implemented. That has been requested before but it is a very complex thing to implement. And again I have to dissapoint you when you want different parts to move together. Parts can only move using the hinge or rail they are connected to. You can't move parts that each have their own hinge or rail. I personaly requested that before but that too is a complex feature to implement. (I can't find the topic but it was about a collapsable fire escape ladder where you can pull and lower one side and all threads fold out at the same time on their own hinge. Unfortunately not possible.) From what I see in your project you have pretty much everything that is possible. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Puybaret at Mar 15, 2024, 5:53:13 PM |
|
Re: Custom 3D Model being imported without texture Very nice, Veroniq is going to love your shutters. She requested such models in the past ![]() Please submit them in 3D models tracking system. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by [email protected] at Mar 15, 2024, 7:05:31 PM |
|
Re: Custom 3D Model being imported without texture As always, thanks Keet. Too bad...not so much for the impossible movement of the shutters (this can always be done manually without the need to tie the objects...not nice but doable) but for my project (still mysterious to you) of a pull-out table that can be rolled up in as if I understood correctly, driving a plane that rolls up on a hinge (done) and slides along a rail (done) cannot be pushed into action by anything, much less making movements always in axis with the rail.....on the rail it can only slide and the shape created manually by its rolling will slide. Unfortunately there is no manual solution to this that works. For Puybaret...... "Very nice, Veroniq is going to love your shutters. She requested such models in the past wink Please submit them in 3D models tracking system." for now Veroniq will have to be satisfied with what is attached, the models as I explained are still experimental (to be refined and perhaps translated (the terminology is ITALIAN), there are only visual objects to be removed (for example only in some residual opening keys which are displayed as objects but not used in motion), some imperfections in the stops (hastily built with cylinders to have only a logical shape) etc etc) |
| Posted by [email protected] at Mar 16, 2024, 1:31:13 AM |
|
Re: Custom 3D Model being imported without texture For Keet I did this test of the possible movements on a RailToHinge (I'm quite old with poor memories)... In the end I understood that no movement on the mobile rail is allowed when sliding...the rail behaves like an extension of a hinge, losing its properties and therefore at this point it does not allow any movement on its axis...so it is a useless thing if not to keep the hinges aligned on a rail that moves in space outside the object. There are 2 objects, one that binds the RED object to the rail and the second to the Hinge. The GREEN object is a solid linked to the RailToHinge. Greetings https://www.mediafire.com/file/qjv0zytm07d536f/Test_RailToHinge.rar/file |
| Posted by Keet at Mar 16, 2024, 7:48:44 AM |
|
Re: Custom 3D Model being imported without texture The rail doesn't work because you effectively have no rail. This doesn't work because it doesn't create a rail: sweethome3d_opening_on_hinge_1_and_sweethome3d_rail_1_You get a rail when you start a g group with "g sweethome3d_rail_1_". To that you can add openings and another hinge or rail. And to that added hinge or rail you can add openings and yet another hinge or rail. You see the chain that's forming? You should have only 4 'types' of possible groups: g just_a_static_object g a_hinge_or_rail g opening_on_a_hinge_or_rail g another_hinge_or_rail_AND_opening_on_a_previous_hinge_or_rail. Notice that specifically the last group can only exist once in your object. Everything that is opening on another_hinge_or_rail will move along the previous_hinge_or_rail too because another_hinge_or_rail itself is opening on the previous_hinge_or_rail. The chain that you must preserve is like this: g rail_1_ g hinge_1_ and_opening_on_rail_1_ g hinge_2_ and_opening_on_hinge_1_ g rail_2_ and_opening_on_hinge_2_ Take notice of how and where the same colors are listed. All other parts can only have an opening_on_ for a single rail or hinge. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by [email protected] at Mar 17, 2024, 2:37:30 PM |
|
Re: Custom 3D Model being imported without texture Very very thans Keet |
| Posted by [email protected] at Apr 17, 2024, 8: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 |
| Posted by [email protected] at Apr 17, 2024, 8:52:21 PM |
|
Re: Custom 3D Model being imported without texture I noticed a proto...they are not "texturable wall indentations" but texturable indentations in the walls. This experiment of mine is aimed at creating only rectangular recesses for now (they were usually present when a French window was replaced with a simple window, above the new window a void remained which could be equipped with a grid or ornament (flowers)). If I can, I will try to create a SPLAYED object independent of the window/door. My idea would be to use open corner walls in 2D with the same floor area as the current one and then see its behavior. |
| Posted by Keet at Apr 17, 2024, 10:25:20 PM |
|
Re: Custom 3D Model being imported without texture If I understand you correctly you want to have an indention in a wall that you can texture. You are on the right path but here are some remarks. Understand that a face only has one side. This means that you can only see it from one side, from the other side there is nothing. When you look at a box from the outside you see the box because the 6 faces (sides) of the box are oriented to the outside. Sometimes when you download an object from another site one or more "holes" seem to appear in the object. It's most likely that those holes have the face point in the wrong direction. You can fix such a thing by using Blender: select the face and choose mesh>normals>flip normals. This flips the face around and shows the correct side. The back part you created for your inset object is only one face, meaning that you can only see that back part from one side. As you can see in your example a single face "inside" the wall causes the texture to "mix" with the wall texture. (The flickering you see when you move the 3Dview.) This is because the object-back and wall textures are fighting for the same space. Don't do that. Just make the back a little thicker so it's not just a single face. There's really no reason to use a single face because the whole back is inside the wall and you only see the front face of the back part. I don't know if it was intentional but your object works as it does because it's exported vertical instead of horizontal. This makes the sides of the object the front and back of the 'window'. A regular window must be exported horizontal in the 2Dview. If you would drag your object in the wall it will turn 90°. Because you import as door-or-window the hole is still cut but only as far as the object is inserted in the wall. I'm sure you noticed that and now you know why. Because you did it this way and placed the object manually the hole in the wall is only as deep as you place the object. With a normal window the hole would be all the way through the wall no matter how thick the window is. Nice trick that other users will appreciate to read about. I don't know why you used a room and walls to create your frame. You could have just as easily used boxes. I usually create shapes with a nice 45° cut at the ends to match them together in a 90° corner. You will see the difference when you set a wood texture on a thicker frame. Wall sides are horrible to texture. By-the-way, your room with height 0 you got because there was only one level. In that case the floor thickness is 0 and you can't change it. Add a level below and the floor thickness becomes available and you can set it to the thickness you want. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by [email protected] at Apr 17, 2024, 11:33:39 PM |
|
Re: Custom 3D Model being imported without texture As always, thanks Keet. I will try to do as you suggested. The import with those modes was intentional... I discovered the mode BY CANCEL while exporting for my test the old object in the HATCH+INVISIBLE library to only make indentations in the walls... (I was preparing an electrical system (without the plugin) and I needed to physically make tracks in the walls in which to place the pipes on one level, the wires on another and the walls on another in order to view them simultaneously or separately or view only the finished walls with the relative sockets, the junction boxes etc etc) when re-importing it I rotated it thus obtaining the possibility of sizing the trace without drilling the wall but it was only a trace without the possibility of limiting the window direction except by acting on rotations and dimensions, but it did it. on the contrary, this object does so regardless of the dimensions assigned and has TEXTUREABLE internal walls which allows it to also be made into a purely decorative element and at most a...FLUSH WALL PAINTING. |
| Posted by [email protected] at Apr 18, 2024, 12:19:25 AM |
|
Re: Custom 3D Model being imported without texture Keet, I was reading your notes. Is it right to think that if I impose transparency or apply a transparent texture to one of the two faces of a hypothetical background of the same object I will obtain the same effect? That is, the possibility of drilling a wall with the same object or drilling it only partially depending on a depth? |
| Posted by [email protected] at Apr 18, 2024, 1:53:31 AM |
|
Re: Custom 3D Model being imported without texture Hi Keet Keet, Maybe by trying I found the solution to transform any window object into an object with the same characteristics as the one I created, a simple solution but which seems to work even with complex objects such as my movable shutters.... POSSIBLE????? I simply imported the movable shutter as a door/window and I INVERTED THE DIMENSIONS, WIDTH AND DEPTH....... try and give me your result.....if it were it would be possible with any door/window object to just drill partially a wall???? |
| Posted by [email protected] at Apr 18, 2024, 2:08:04 AM |
|
Re: Custom 3D Model being imported without texture NO!! It certainly doesn't work with movable objects...it deforms them!!! Tomorrow I will try with simple objects, certainly with the one created by me horizontal and transformed into vertical it works great, re-imported it behaved like only a door/window...reversed the data instead like the original horizontal object |
| Posted by Keet at Apr 18, 2024, 9:26:29 AM |
|
Re: Custom 3D Model being imported without texture I was reading your notes. Is it right to think that if I impose transparency or apply a transparent texture to one of the two faces of a hypothetical background of the same object I will obtain the same effect? That is, the possibility of drilling a wall with the same object or drilling it only partially depending on a depth? Yes. The 'back-side of the back can be transparent (using d 0.0. in the MTL file) but I see no reason why since you can't see it anyway. The front side of the back can be transparent too (again using d 0.0 in the MTL) and the functionality of the object will remain. Then you will see the inside of the wall.---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
| Posted by Keet at Apr 18, 2024, 9:50:34 AM |
|
Re: Custom 3D Model being imported without texture Maybe by trying I found the solution to transform any window object into an object with the same characteristics as the one I created, a simple solution but which seems to work even with complex objects such as my movable shutters.... POSSIBLE????? You can use any window to create an object like you did. But you don't do that by swapping width and depth. You rotate the object vertical in the 2Dview and export, then import again as door-or-window. The rotation swappes the 'technical' sides with the front and back (the thicker dark line you see in the 2Dview when an object is selected). You manually place the object like you did before. Deformations will remain and work as before.I simply imported the movable shutter as a door/window and I INVERTED THE DIMENSIONS, WIDTH AND DEPTH....... try and give me your result.....if it were it would be possible with any door/window object to just drill partially a wall???? I don't see how an existing window is usefull because it will become a window that looks inside the wall. I can see a use for creating a closet or cabinet that you can sink into the wall with an opening door. Like adding a door to the object you already have. When you open the door you can see the inside of the cabinet. Might look good with glass doors closing the indention. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
|
|
Current timezone is GMT Feb 6, 2026, 3:33:56 AM |