Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Roof peak edges

Jack Tigerpaw
Registered User
Join date: 19 Nov 2007
Posts: 21
02-12-2008 07:14
How much taper do you use per degree of rotation to get a vertical edge to make the roof peaks line up?


So per 1 degree rotation of a roof board - how much taper on the top edge to make that a vertical edge?

I suppose it depends on the thickness of the roof board too?

Is there a formula?
Ceera Murakami
Texture Artist / Builder
Join date: 9 Sep 2005
Posts: 7,750
02-12-2008 09:38
The amount of taper or skew you use is highly dependant on the thickness of the roof prim, and there is no easy way to predict it. You'll likely find it is faster to just adjust it by eye.

Depending on the style and shape of roof that you're making, you might not want to use the roof surface prim for your facia board anyway. For example, a roof that tapers both ways, is easier to do on the corners if you flip the cube prim over on its side, placing the z-axis along the surface of the roof and running from eaves to ridge, so you can use the taper and skew to make trapezoidal panels. In that case, the prim you use for the soffet (the panel that encloses the area under the eaves with a plane parallel to the ground) can also be used to make a nice facia board (the vertical board that the roof gutters usually mount to).
_____________________
Sorry, LL won't let me tell you where I sell my textures and where I offer my services as a sim builder. Ask me in-world.
Jack Tigerpaw
Registered User
Join date: 19 Nov 2007
Posts: 21
02-13-2008 07:51
I can't believe there is no algebraic equation to compute this.

Any math experts out there??
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
02-13-2008 10:11
It's not the easiest thing to write an equation for. Remember, you have to deal with two 3-D objects, each of which can be any thickness and can be rotated with respect to the other (and with respect to the world grid), and each of which might also be twisted, cut, or otherwise tweaked. To do it right, you'd have to have an ungainly equation. That's a lot of trouble to go to when you can get very close by eyeball in much less time.
Jack Tigerpaw
Registered User
Join date: 19 Nov 2007
Posts: 21
02-13-2008 11:08
I found out the equation. Thanks to Kevyn :)

From: someone

The taper in meters would be simply tangent(degree of rotation) times the thickness.

The taper parameter (set in the edit box or via LSL) would be dimensionless, of course, and would be:

taper = 2 * tangent (angle) * thickness / (Length of prim in taper direction)
Beezle Warburton
=o.O=
Join date: 10 Nov 2006
Posts: 1,169
02-13-2008 11:49
I found it's easier to eyeball things rather than do the math because eventually the rounding will drive you mad. :D
_____________________
Though this be madness, yet there is method in't.
-- William Shakespeare

Warburton's Whimsies:
In SL
Apez.biz
Jack Tigerpaw
Registered User
Join date: 19 Nov 2007
Posts: 21
02-13-2008 14:39
From: Beezle Warburton
I found it's easier to eyeball things rather than do the math because eventually the rounding will drive you mad. :D


In which case you have to play with the rotation too.

I am sticking to values that I know look good and writing those down.

No more need to waste time "eye-balling" But to each his own.