Netherlands
Joined: Apr 8, 2022
Post Count: 1248
Status:
Offline
Re: Modifier un modèle de porte ?
Pour faire tourner la roue, il faut une charnière au centre de la roue, pas un rail. Vous pouvez utiliser n'importe quoi comme charnière, à condition que sa plus grande longueur soit verticale. Peut-être une boîte de 1x1 mais de 10 de haut (objet plus petit qu'un cylindre et que vous n'avez pas besoin de voir de toute façon). Une charnière est mise en œuvre de la même manière qu'un rail, il suffit de remplacer "rail" par "hinge".
To turn the wheel you need a hinge at the center of the wheel, not a rail. You can use anything for the hinge as long as it's longest length is vertical. Maybe a 1x1 box but 10 high (smaller object size than a cylinder and you don't have to see it anyway). A hinge is implemented the same as a rail, just replace 'rail' with 'hinge'.
---------------------------------------- Dodecagon.nl 950+ 3D models, manuals, and projects
Belgique
Joined: Aug 17, 2023
Post Count: 83
Status:
Offline
Re: Modifier un modèle de porte ?
Mais je n'ai pas besoin que la roue tourne, ça sera bien un rail invisible. La roue est juste là pour le design du modèle dans mon esprit. Je devrais penser pour moi et pas penser au travers du forum.
But I don't need the wheel to turn, it'll just be an invisible rail. The wheel is just there for the design of the model in my mind. I should be thinking for myself and not thinking through the forum.
But hey, I don't think a track is really necessary. A door can't slide beyond its track, can it? In this case, if the door is wide and the track is very small, it creates stops for the door.
But hey, I don't think a track is really necessary. A door can't slide beyond its track, can it? In this case, if the door is wide and the track is very small, it creates stops for the door.
Unfortunately it can. Sweet Home 3D has not implemented limits for deformations. It's one of the wishes mentioned in the forum before. (You can move one of your Japanese doors way outside the frame, try it.)
---------------------------------------- Dodecagon.nl 950+ 3D models, manuals, and projects
Yes, I understand that. And it's precisely because the track and the door (the part of the door that slides along the track) are the same length that it overflows. I think that if there were a 'physical' constraint, it would work better. And that constraint is to use only a tiny part as the track, or this tiny, invisible part as the sliding part of the door. It doesn't matter if it's visible, it's better if it's not. If one of the two parts is very small, the long part will only be able to slide along this small part, and then there will be a stop because they have to remain connected vertically. Although in my opinion, there must be a way of creating a sliding door with a vertical opening, there is an American window that does it.
In fact, the sliding part of a door and the track should be invisible and half the width of the door and threshold. In this case, the translation of one element over the other would stop where it should.
Traduit avec www.DeepL.com/Translator (version gratuite)
The track (the rail) can be invisible but only through the "d 0.0" line in the obj file (this is how the invisible box is created). It doesn't even have to be precisely under the door and it doesn't have to be as long as it is. In fact, a rail can be anywhere as long as the direction is correct. That means that a rail can be much shorter, as long as the longest side has the rail_1_ string. Yes, that's correct, you don't have to give all the "g " lines of the track the rail string, just one that determines the correct direction is enough. With all parts having the string Sweet Home 3D will determine which one is the longest and use that one for the sliding direction. That's also why you could remove all sides of a rail object except the single one that you use for the direction.
While the rail can be positioned further away, the other deformations (hinge, ball, etc) must be at the correct position because they are the center of the movement where a rail only supplies a direction. A hinge on the side of a door will turn the door at the hinge position. You know those garage doors that tilt and lift against the ceiling? I created one of those and the hinge to rotate it upward is invisible and somewhere in the air behind the door, halfway up the door height because the position of the hinge determines the rotating point.
As said, thresholds are not available (yet). This was asked about in the forum for the mannequin to avoid moving body parts in unnatural positions and for doors to avoid rotating all the way around the hinge. It will probably be implemented some day but for now we will have to restrict to a limit by look-and-feel. For a door or window you could draw the sashes to show the intended limit but they will not actually enforce the limit.
---------------------------------------- Dodecagon.nl 950+ 3D models, manuals, and projects
Maintenant, je me demande si on peut faire un rail courbe ? Pour un volet, un rail en spirale serait parfait.
‑‑‑‑‑‑‑‑‑‑‑‑‑
I tested it to see for myself and it's true that the length of the rail doesn't count towards the stop. My idea doesn't work. And impossible to lock a door opening in the plan, I guess.
Now, I wonder if we can make a curved rail? A spiral track would be perfect for a shutter.
Now, I wonder if we can make a curved rail? A spiral track would be perfect for a shutter.
Aaaand of course I had to try that but of course it didn't work. The moving object just moved horizontally between the end points, as expected. But if you have a regular curve like a half circle you could place a hinge at the middle between the end points and an object referencing that hinge. That should move the object along the curve. Still not useful for shutters though.
---------------------------------------- Dodecagon.nl 950+ 3D models, manuals, and projects
A roller shutter is a bunch of hinges wound around an axis and sliding between two rails. It would be a shame to send all that into space, just as it would be a shame for infinitely sliding doors to never reach Australia because the Earth isn't flat.
That is possible with chained deformations: https://www.sweethome3d.com/support/forum/viewthread_thread,11818 (almost halfway down the page), but you will have to move each segment one-by-one so no real rolling down or rolling up.
---------------------------------------- Dodecagon.nl 950+ 3D models, manuals, and projects