|
Sweet Home 3D Forum » List all forums » » Forum: Forum en français » » » Thread: Vélux ou sa barre dans le mauvais sens » » » » Post: Re: Vélux ou sa barre dans le mauvais sens |
Print at Dec 16, 2025, 12:48:35 PM |
| Posted by Keet at Aug 24, 2023, 10:08:08 AM |
|
Re: Vélux ou sa barre dans le mauvais sens Vous avez commis quelques erreurs. Votre objectif final est d'obtenir un toit avec la fenêtre, remarquez "toit avec fenêtre". Vous avez essayé de créer une fenêtre inclinée autonome que vous pouvez insérer dans le toit, mais cela ne fonctionne pas, vous devez créer l'objet entier : toit+fenêtre. Modifiez d'abord la fenêtre à la taille voulue et définissez les couleurs et/ou les textures que vous souhaitez. Dessinez ensuite le mur horizontalement. Définissez la taille et l'épaisseur du toit et définissez les couleurs et/ou les textures. Insérez la fenêtre dans le mur à la position souhaitée : élévation et gauche/droite par rapport aux côtés du mur. (Assurez-vous que l'intérieur pointe vers le nord, comme dans l'exemple). Jusqu'à présent, vous n'avez rien incliné ou tourné ! Le mur et la fenêtre sont toujours orientés horizontalement et verticalement comme un mur normal. Exportez maintenant le mur+fenêtre, pas la fenêtre seule, mais le mur et la fenêtre. Importez l'objet créé. Il s'agit du toit (mur)+fenêtre. Il n'est pas nécessaire de cocher 'Door or window', c'est juste nécessaire pour insérer la fenêtre dans le mur afin de créer un trou et la fenêtre que vous avez utilisée en a déjà un. Il n'est pas nécessaire de décocher "Moveable", si c'est le cas avec un objet, laissez-le. Inclinez maintenant l'objet de 49°. C'est votre toit+fenêtre. Vous pouvez l'utiliser comme ça ou vous pouvez l'exporter et l'importer pour que l'inclinaison soit fixe. (Si vous voulez d'abord exporter votre fenêtre, gardez-la verticale et avec la taille et les couleurs que vous voulez. Si vous n'importez que cette fenêtre, vous devez cocher la case "Porte ou fenêtre" afin de pouvoir créer un trou dans un mur avant d'exporter le toit+fenêtre). Voilà pourquoi vous avez perdu votre verre. Lorsque vous exportez un objet, cela crée non seulement un fichier .obj mais aussi un fichier .mtl portant le même nom. D'ailleurs, attention à l'utilisation du caractère ° dans le nom du fichier, cela peut poser des problèmes d'utilisation des fichiers. Il est préférable de se limiter aux caractères, chiffres, _ et -. Le fichier .mtl contient les définitions des matériaux. Si vous regardez dans le fichier .obj, vous verrez des lignes avec "usemtl ...". Il s'agit d'une référence au matériau décrit dans le fichier .mtl dont les blocs commencent par "newmtl ...". Vous avez probablement perdu votre verre parce que l'importateur n'a pas trouvé le fichier .mtl lors de l'importation. Avez-vous déplacé le fichier .obj sans le fichier .mtl avant l'importation ? Si ce n'est pas le cas, le caractère ° dans le nom du fichier peut être à l'origine du problème. Déplacez toujours les fichiers .obj et .mtl ensemble. Vous pouvez même les zipper ensemble et importer le fichier zip pour ne pas en perdre un. Traduit avec www.DeepL.com/Translator (version gratuite) English: You made a few mistakes. Your end goal is to get a roof with the window, notice 'roof with window'. You tried to create a stand-alone tilted window that you can insert into the roof but that doesn't work, you have to create the whole object: roof+window. First modify the window to the size you want and set the colors and/or textures you want. Then draw the wall horizontally. Set the size and thickness you want the roof to be and set the colors and/or textures. Insert the window in the wall at the position you want: elevation and left/right from the sides of the wall. (Make sure the inside points north as in the example) So far you have not tilted or rotated anything! The wall+window are still oriented horizontal and upright like a normal wall. Now export the wall+window, not the window alone but both the wall and the window. Import the created object. This is the roof(wall)+window. No need to check 'Door or window', that was just needed for inserting the window in the wall so it creates a hole and the window you used already has that. There's no need to un-check 'Moveable', if it's checked with any object leave it. Now tilt the object 49°. That is your roof+window. You can use it like that or you can export and import it so the tilt is fixed. (If you want to first export your window, keep it vertical and with the size and colors you want. If you import just that window you need to check 'Door or window' so it can create a hole in a wall before you export the roof+window.) Now why you lost your glass. When you export an object it not only creates a .obj file but also a .mtl file with the same name. By-the-way, be careful with using the ° character in the file name, it might create problems using the files. It's best to limit yourself to characters, numbers, _, and -. The .mtl file contains the material definitions. If you look in the .obj file you will see lines with "usemtl ...". That is a reference to the material described in the .mtl file with blocks starting with "newmtl ...". You probably lost your glass because the importer couldn't find the .mtl file when importing. Did you move the .obj file without the .mtl file before import? If not the ° character in the file name might be the problem. Always move both the .obj and .mtl together. You can even zip them together and import the zip file so one doesn't get lost. ---------------------------------------- Dodecagon.nl 1300+ 3D models, manuals, and projects |
|
|
Current timezone is GMT Dec 16, 2025, 12:48:35 PM |