Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

I need help with a roof...

Aylah Hope
Registered User
Join date: 6 Dec 2004
Posts: 133
01-23-2006 14:27
Can somebody tell me messurements and angles and how to build a roof about like this?

Thanks in advance:)
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
01-23-2006 16:05
EDIT: It's been correctly pointed out to me that my assessment in this post of the above drawing was erroneous. It's a bit of an embarrassing mistake on my part, since upon second glance, my slip-up is pretty freakin' obvious, but I've decided not to delete the post anyway. The technique it outlinesfor creating a building template from a drawing still may be of use to some readers, even though the particular drawig in question does not fit the bill. If anyone has any questions on this, let me know.
-------------------------

It's not hard to do the math on this, but for a more universal solution, how about just uploading your diagram and building right on top of it?

It'll be easier, by the way, if you trim the margins off so that your 50M base line extends all the way from one end of the canvas to the other. Then just apply the texture to five adjacent 10X10 prims, set the repeats per face to .2 on both the horizontal and veritcal, so that each one is showing 1/5 of the texture. Then line them up by setting the horizontal offsets to increase on each one by .2, starting from -.4 all the way on the left to +.4 all the way on the right. Finally, set the vertical offset for all of them to -.4, so that the bottom of the texture aligns with the bottom of the prims. The end result should be a single 50M image, spread across the five prims. It looks like the whole thing will be about 25M tall, so just add a second row of prims and repeat the process, but this time, set the vertical offset to -.2 instead of -.4, and then add a third row with a vertical offset of 0. Now the whole broadside of the building should be displayed as a single image, spread across the 30 cubes.

For the narrow side, use the same process, but use different offsets so that the top part of the image lines up instead of the bottom part.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Cottonteil Muromachi
Abominable
Join date: 2 Mar 2005
Posts: 1,071
01-23-2006 17:36
That was one of the funniest answers I've ever read. :D
Anyway, to answer the question, the roof pitch can be any angle that you want, since this isn't RL. In traditional roof construction, both sides will have the same pitch / angle. The angle is only determined depending on how much snow or rain its going to put up against.

There are several ways to build a roof. Here is a simple one.

1. Use a 10x10 cube and use 'cut begin and end' to cut it into a triangle (prism).
2. Put this cut cube back to back so it forms a roof pitch.
3. Since its 10x10, the pitch now should be 45 degrees.
4. Stretch the height of these cubes if you want a different pitch.
5. Now copy a couple of sets of this to make it longer.
6. For the narrow side of the roof, you need to experiment with using the 'top size' and 'shear' functions.

If you want a roof that has rafters and volume on the underside, then it has to be built differently. Mostly from flat planes.
I'll send you a copy later, when I get home. Hee hee.
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
01-23-2006 19:04
What was funny about it? She's got a diagram of a building she wants to make, and that diagram appears to have been drawn to scale. Therefore, it can serve as a template. With that in mind, I thought it would be beneficial to explain how to turn the drawing into a full size template, so that she can build right on top of it. To me, that's a more sensible approach than calculating the angles on just the one building, since learning to use templates is a technique that will help with each and every building she ever wants to make, and there's no angular math required. It seemed pretty obvious to me that angular math was something she wanted to avoid doing, or else she wouldn't have asked for someone else to calculate the angles for her. I create templates for my builds all the time, and I fail to see how explaining the technique could be interpreted as humorous.

If you read the question differently, and your view of its meaning lead you to supply a different answer, great! The more, the merrier. There's absolutely no need to laugh at answers that are different than yours though. That just makes you look all kind of silly.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Cottonteil Muromachi
Abominable
Join date: 2 Mar 2005
Posts: 1,071
01-23-2006 21:52
The diagram is obviously not to scale when seen with the naked eye. Proportionately, if the 20m was correct, then the side thats labeled as 50m would in actual fact be around 35m or so. The height of the roof from the side is also lower than the front. The angle of the roof pitch also looks about 10 degrees different from side to side. This simply makes it impossible to use the diagram effectively as a template. Someone new to building will be totally exasperated trying to make it work by building on top of it unless the diagram is corrected somehow.

To actually know how to draw the roof to scale correctly in elevation for it to be used as a template, the person would have already known how to determine the roof angle and project them accordingly as an orthogonal drawing. In which case, just build it in SL straight away. The math, although not required, is elementary school maths. I had a worry however, since Aylah might be new to building, that the UV offsetting is even more math than she might want to get involved in. That's why I suggested something easy and mathless.

In this case, there isn't really a need to have an exact roof angle. So you can actually stretch a cut cube until you have an eye pleasing angle by snapping on the grid to get a nice seamless roof. The building, after all, is just a 20 x 50m rectangle.

The template technique is great for building from floor plans. But the question was how to build a roof. Not how to get several elevations on a flat screen? Whats next after you have them? Besides, you can just build it at 1/10th the size over the template and then just scale the whole build to its maximum. Why bother with all the offsetting for this?

I did not realize though that I'm not allowed to find things funny. I wouldn't even bat an eyelid if someone said my suggestions were hopelessly useless or wrong.
Hunter Stern
Web Weaver
Join date: 7 Oct 2004
Posts: 377
01-23-2006 23:20
very nice break down of the solution in steps, Cottonteil. And you included approx. to what degree the angle (slant) might be.

I assume in mirroring the rectangle one could simply assume -45 degrees in the retangles rotation for the other side or however steep one wants it?
Cottonteil Muromachi
Abominable
Join date: 2 Mar 2005
Posts: 1,071
01-24-2006 00:06
Yes, you can get anywhere from 1 to 45 degrees. It can also be built this way.

For the sides.

1. Rez cube.
2. Set X top size to zero
3. Set X top shear to 0.50
4. Place it back to back against another similar prim.
5. Scale the Z axis up and down to get desired slope.

For the ends,

1. Copy the above prim.
2. Set Y top size to zero as well.
3. Set Y top shear to 0.50 or -050, depending on side.

This should get you very plain roof to work with.
If you want to, you can hollow out every one of the prims and apply an alpha texture on on the insides to make rafters and beams. I'll hand you an example too.
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
01-24-2006 01:35
From: Cottonteil Muromachi
The diagram is obviously not to scale when seen with the naked eye. Proportionately, if the 20m was correct, then the side thats labeled as 50m would in actual fact be around 35m or so. The height of the roof from the side is also lower than the front. The angle of the roof pitch also looks about 10 degrees different from side to side. This simply makes it impossible to use the diagram effectively as a template. Someone new to building will be totally exasperated trying to make it work by building on top of it unless the diagram is corrected somehow.

To actually know how to draw the roof to scale correctly in elevation for it to be used as a template, the person would have already known how to determine the roof angle and project them accordingly as an orthogonal drawing. In which case, just build it in SL straight away. The math, although not required, is elementary school maths. I had a worry however, since Aylah might be new to building, that the UV offsetting is even more math than she might want to get involved in. That's why I suggested something easy and mathless.

In this case, there isn't really a need to have an exact roof angle. So you can actually stretch a cut cube until you have an eye pleasing angle by snapping on the grid to get a nice seamless roof. The building, after all, is just a 20 x 50m rectangle.

The template technique is great for building from floor plans. But the question was how to build a roof. Not how to get several elevations on a flat screen? Whats next after you have them? Besides, you can just build it at 1/10th the size over the template and then just scale the whole build to its maximum. Why bother with all the offsetting for this?

I did not realize though that I'm not allowed to find things funny. I wouldn't even bat an eyelid if someone said my suggestions were hopelessly useless or wrong.

You're absolutely right that the drawing is not to scale. I'm rather embarrassed, actually. It's quite obvious. All I can say is that it's been a long day and I'm not immune to mistakes. I've now edited my original post to acknowledge my error.

Anyway, there's a big difference between appropriately pointing out that something someone said is incorrect, which you would have been perfectly justified in doing here, and laughing at them. The former is done for the sake of factual truth, which is always a worthy cause, but the latter is done just to be mean, which as I said, makes the one doing it look pretty silly, regardless of how factually correct either party may or may not be. Had you simply said "Whoa, Chosen, take another look at the drawing because it's definitely not to scale," I would have been fine with that. I'm not fine with you making fun of me or anyone else over a mistake. I've seen you post some pretty outlandish stuff yourself on occasion, but I don't recall anyone ever deliberately having tried to belittle you over it.
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Hunter Stern
Web Weaver
Join date: 7 Oct 2004
Posts: 377
01-24-2006 02:30
From: Chosen Few
You're absolutely right that the drawing is not to scale. I'm rather embarrassed, actually. It's quite obvious. All I can say is that it's been a long day and I'm not immune to mistakes. I've now edited my original post to acknowledge my error.

Anyway, there's a big difference between appropriately pointing out that something someone said is incorrect, which you would have been perfectly justified in doing here, and laughing at them. The former is done for the sake of factual truth, which is always a worthy cause, but the latter is done just to be mean, which as I said, makes the one doing it look pretty silly, regardless of how factually correct either party may or may not be. Had you simply said "Whoa, Chosen, take another look at the drawing because it's definitely not to scale," I would have been fine with that. I'm not fine with you making fun of me or anyone else over a mistake. I've seen you post some pretty outlandish stuff yourself on occasion, but I don't recall anyone ever deliberately having tried to belittle you over it.



Dude, take two Torley pills and call us in the morning

the sky might be falling but our Roof sure isn't :D
Chosen Few
Alpha Channel Slave
Join date: 16 Jan 2004
Posts: 7,496
01-24-2006 02:50
Glad you and Cottontiel seem to be such kindred spirits, Hunter. Everyone needs a friend.

I'm sorry if my asking for a modicum of politeness is too over the top for you. All I can do is call it like I see it, and when I feel someone's being rude, I say so. That's it. Have a great day.

Now, before this thread gets closed, anyone have anything on topic to say?
_____________________
.

Land now available for rent in Indigo. Low rates. Quiet, low-lag mainland sim with good neighbors. IM me in-world if you're interested.
Cottonteil Muromachi
Abominable
Join date: 2 Mar 2005
Posts: 1,071
01-24-2006 02:56
From: Chosen Few
That just makes you look all kind of silly.


I actually don't mind people belittling, insulting or making me look like an oaf, since it rarely has any consequence. All insults and abuse, whether politically incorrect, racist or just plain offensive is welcome. And being laughed at or being able to make someone laugh is the greatest honour anyone can bestow on my semi sane self. I actually have no idea where all that pent up paranoia you have is coming from, and am not about to begin psychoanalyzing it.
Aylah Hope
Registered User
Join date: 6 Dec 2004
Posts: 133
01-24-2006 08:23
Thanks a ton for all the answers:D

SL have been unavailable for me all day... websites and all ;( , so now I'm going to examin all the examples.

Thanks again!