Tuesday, 29 October 2019

Common tin can sizes

Common tin can sizes

All measurements are in cm.

Metric


Diam Height Typical use
250 ml ? ?
300 ml 8.5 5.5 Corn, Mushrooms (mini boxes)
500 ml 7.5 11 Tomatos, Beans
750 ml ? ?
900 ml 10 12 Stew, , Soups, Meat balls
1 l ? ?

U.S.


Diam Height Typical use
6Z 5.48.9
8Z Short 6.87.6
8Z Tall 6.88.3
No. I (Picnic) 6.810.2
No. 211 Cylinder 6.812.4
No. 300 7.611.3Cranberry Sauce. Pork & Beans
No. 300 Cylinder 7.614.1
No. I Tall 7.811.9
No. 303 8.111.1Fruits. Vegetables. Soups
No. 303 Cylinder 7.614.1
No. 2 Vacuum 8.78.6
No. 2 8.711.6Juices. Soups. Vegetables
Jumbo 8.7314.3
No. 2 Cylinder 8.713.7
No. 1.25 10.36
No. 2.5 10.311.9Fruits. Vegetables
No. 3 Vacuum 10.88.7
No. 3 Cylinder 10.817.8
No. 5 10.514.3Fruit Juice. Soups
No. 10 15.717.8Fruits. Vegetables

Sources

  • Metric dimensions: My own measurements (more info needed here)
  • U.S. dimensions: Wikipedia

Common container sizes

Index: Common measurement: Common container sizes

Common container sizes

Wednesday, 25 September 2019

AO animation settings

Index: Assets: Animations

AO animation settings


Recommended settings for AO animations:

Type Priority Looped Duration Comments
AO Run 3 y 20 sec
AO Walk 3 y 20 sec
AO Stand 1 or 2 y 20 sec
AO Left turn 3 or 4 y
Priority is messed up here. To fully override the default, it must be a 4. You can use a 3, but there will be issues.
AO Right turn 3 or 4 y
Priority is messed up here. To fully override the default, it must be a 4. You can use a 3, but there will be issues.
AO Crouch 3 or 4 Depends

AO Crouchwalk 3 y

AO Prejump 3 or 4 n 1-2 sec
AO Jump 3 or 4 Depends generally 2-3 sec
AO Landing 3 or 4 y generally 2 sec
AO Hard Landing 3 or 4 n generally 3 sec
AO Stand up 3 or 4 n

AO Fly Up 3 or 4 y

AO Fly Left turn 3 or 4 y

AO Fly Right turn 3 or 4 y

AO Fly 3 or 4 y

AO Fly Slow 3 or 4 y

AO Fly Down 3 or 4 y

AO Falling 3 or 4 y

AO Sitting 3 y

AO Sitgrounds 3 y

AO Swimming 3 y

AO Swim up 3 y

AO Swim down 3 y

AO Swim Left turn y


AO Swim Right turns 3 y

AO Typing 3 y

AO Away 3 y

AO Busy 3 y


Sources

Tuesday, 24 September 2019

Creating LoD models, case study 1

Tutorials: Creating LoD models, case study 1

Creating LoD models

Case study 1: Bent tube

This is based on a question at the official Second Life forum. The OP was trying to make a shackle for a padlock, simply a bent cylinder, and although the question wsn't about LoD, the shape is such a great example of the most basic principles of LoD optimisation so I thoguht I'd post an extended version of my reply here.

First, lets look at the high model. Here it is with a generous 24 curve resolution (curve resolution numbers are always for the full circle btw so the bend only has 12 segment since it's just half a circle):


That gives it a triangle count of 672 which is way too high for a simple object like this. Let's try to delete every other edge loop to get the curve resolution down to 12:


Woops! That didn't work too well. The profile of the cylinder is fine - it's possible we could reduce that even more - but the bend is way too edgy. Solution? You guessed it: reduce the curve resolution for the profile only and keep the bend as it is:



That's more like it!

Before we go on getting rid of triangles, we should look at the normals. They need to be smooth. If they aren't already, change it here:


Smooth normals are essential for curved surfaces. What they do, is adjust the shaders so joined surfaces at different angles blend into each other.

With flat normals, the cylinder would have looked like this even with 24 curve resolution:


 With smooth normal we get this with only 12 curve resolution around the profile:


That's more like it, and this is with only half the triangles we started with!

Now, for the medium LoD model. This is so simple anybody who can handle a 3D modelling program at all can do it. Just remove edge loops to reduce curve resolution. Most people would probably remove every other loop here but we can actually take it further. Remove two out of three loops around the cylinder circumeference and every other loop around the bend:


Yes, it looks dodgy on closeup but this model si only seen at a distance. I promise you it will be fine. Note that I made the not-a-cylinder-anymore profile diamond shaped with edges rather than faces pointing along the axises. This is partly so that I don't have to mess around with the edge loop that is a seam but mostly because this tends to give a more credible circular look. Try both options and you'll see.

For the low model, let's go for a triangular circumference and curve resolution 8 around the bend:



This means we'll have to reposition some edge loops a bit to keep the volume of the cylinder but it's not that much work and it's sooo worth it when it means we can get a LoD model that looks perfectly fine with only 36 triangles. Here are the low and high models superimposed onto each other so you can see how their profiles fit:


Now for the lowest LoD model and an important thing to remember:

It's not always the high LoD model that is the main one!!!

In fact, it usually isn't. The main model is the one people usually see and which one that is, depends on the object's size. In this case, it's the lowest LoD model.

Fortunately this padlock shackle is so small you'll never see much details at any realistic view distance anyway so we can keep it very simple: triangular profile, square bend:


That gives us 18 triangles and 12 vertices and there's hardly any point going further than that.

But if you still want to reduce more, you can get it down to only 12 triangles by removing the inner faces:





Seen from below(ish):


And that's it.Triangle counts: 336, 64, 36 and 18 respectively.

For comparasion, the uploader wants to use 336, 82, 20 and 10 triangles for the LoD models of this item but the result it produces with those values is absolutely horrible. To get a decent look from the uplaoder's auto-generated LoD models, you have to increase the triangle counts to  336, 167, 82 and 82 that's a lot of wasted land impact and lag.

Monday, 6 May 2019

Road and Street dimensions

Index: Common measurements: Landscaping: Roads and Streets

Road and Street dimensions


Road width

4-6 m per lane is fairly reasonable.


Cobblestones

A cobble is defined on the Udden-Wentworth scale as a stone with a particle size of 64-256 mm and a genuine cobblestone road surface will be made of natural stones of varying size but approcimately within that range - perhaps mainly in the medium-to-small range.

What we usually call cobblestones today are strictly speaking "setts" or "Belgian blocks", cut stones of equal size. Typical dimension for a sett is about 10 cm. taking into account the space between them, expcet 8-9 stones per meter.

Wednesday, 1 May 2019

System Vegetation

Index: Assets: System Vegetation

System vegetation

System vegetation (aka "Linden plants") is an old feature for creating vegetation. It was introduced to Second Life by Linden Lab early in 2008 and seems to have been inspired by SpeedTree. It was a bit of a rush job though and it has never been updated so they are quite limited. They do have their uses though and some builders have done some remarkably good creative work with them.


System trees and grass

There are two different kinds of System vegetation, "System trees" and "System grass". Both names are rather misleading since they can be used for quite a bit more:
  • A "system tree" is a single relatively elaborate plant. In addition to trees, the feature is also used for bushes, ferns and grass clumps.
  • A "system grass" is made from 32 single sheets spread across an area. In addition to grass, the feature is also used for undergrowth shrubbery.


Limitations

  • System vegetation is limited to the old 10 m max size, so no tall trees.
  • System grass automatically aligns with the system ground. This can be an advantage but it also means it doesn't work on sky platforms.
  • The selection of plants available is very limited and, let's face it, not always very well chosen.
  • Many of the plants have rather dodgy textures. (I told you it was a rush job, didn't I?)


Variants

I've marked the different variants with different background colors depending on my opinion about them (you're free to make up your own mind of course). Green means can be useful, yellow means don't rue it out completely, red is useless.

System trees:

  • Actual trees:
    • Cypress 1
      • I'm not sure what kind of tree this is, it certainly doesn't look like a cypress to me. 
    • Cypress 2
      •  Not really a cypress. That is, the texture seems to be of a cypress (hard to tell with the low resolution) but the shape is all wrong. It's still quite useful as a generic small early summer hardoow tree though and there is a reason why it seems to be one of the most popular (or should I rather say least unpopular?) system tree.
    • Dogwood
      •  The texture may be a drawing or it may be an over-edited photo, not sure.
    • Eucalyptus
      •  One of the best textures in the set but the trunk shape is too angular.
    • Oak
      • This is not an oak, it's a maple! A very small one in brownish-red automn colors. I've makred it as yellow partly because of the diminutive size, partly because it's been so overused. In the right settigns it can actually be very effective.
    • Palm 1
      • A really nice and amazingly realistc looking coconut palm. 
    • Palm 2
      • A half withered coconut palm. This is one of the better system trees but it's so small. A palm as old as this one obviously is, should be twice as tall.
    • Pine 1
      • It looks more like a spruce than a pine to me but it's hard to tell withut more details. This is definitely one of the better system trees although the bark texture look a bit too simplistic.
    • Pine 2
      • This too looks more like a spruce than a pine to me but it's hard to tell withut more details. This is also one of the better system trees but I don't think it's quite as good as Pine 1
    • Winter Aspen
      • A with birsh branch and a bare branch edited to be all white. It can work in a winter fantasy setting.
    • Winter Pine 1
      • A spruce (or possibly pine) with some white blotches added to simulate snow. It doesn't sound very promising but it actually works.
    • Winter Pine 2
      • With even more fake snow than Winter Pine 1 and it still works quite well. At least in a fantasy settings. Trees hardly ever get their trunks covered by snow this way.
  • Bushes:
    • Plumeria
      •  Ridiculously oversized by default and with a rather tacky drawing based texture. I've marked it with red here but I have actually seen it been used effectively. The poor texture means it won't work anywhere near an upfront setting but if people could jsut be bothered to scale it down, it might do as a decent background plant and as a supplement to dense groups of other system plants.
    • Tropical bush 1
      • Really nice photo based texture
    • Tropical bush 2
      • Really nice photo based texture.
  • Other land plants:
    • Beach Grass
      • A clump of grass that should work everywhere, not just on beaches. It's very dense though and tend to look rather "blocky". The texture is a photo.
    • Fern
      • A susprisingly good system plants, one of the best and unlike so many of the others, it works in many settings. The only real limitation is that the color is very bright green. The texture is a photo.
  • Aquatic plants:
    • Eelgrass
      • A really good generic green plant. It works as a reular grass clump above water too and ir probably better that the beach grass for that.
    • Kelp 1
      • Brown kelp. This is one of the really good ones. The only real limitation is that you only get a single plant for one land impact. The texture seems to be based on a drawing, probably an illustration from an old textbook.
    • Kelp 2
      • Green kelp. Apart from that, more or less the same as Kelp 1.
    • Sea Sword
      • This is one of the gems of the set. The texture is a photo.

System grass:

  • Actual grass:
    • Grass 0
      •  A really good generic grass texture but like all the grasses, with only 32 scattered instances it's hard to make much out of it. The texture is a photo.
    • Grass 1
      • A very dense clump of grass, way too dense to be useful. The texture is a photo.
    • Grass 2
      • The same as Grass 0, only taller.
    • Grass 3
      • Another wayy too dense clup of grass. The texture is a photo.
    • Grass 4
      • Grass 0 with the tops of the straws tinted red to make it look like late summer/autumn grass. That idea works well but it still ahs the same limitations as Grass 0
  • Undegrowth:
    • undergrowth_1
      • A spread of low shrubs, I'm not sure abut the species but it seems like alder to me. One of the hidden gems of the selection.

Custom system vegetation

In theory it's fairly easy to make custom system vegetation. Each variant is made from a single texture and a small set of parameters and all the data is stored locally in two xml files. In reality this is only an option for closed single user grids though. System vegetation is all client-side, so unless you can convince everybody to use your custom xml files, only you wil be able to see your creations.

But if you want to give it a try, here are the parameters (no info aout what they do yet, sorry).

System trees:

  • tree name
  • species_id
  • texture_id
  • droop
  • twist
  • branches
  • depth
  • scale_step
  • trunk_depth
  • branch_length
  • trunk_length
  • leaf_scale
  • billboard_scale
  • billboard_ratio
  • trunk_aspect
  • branch_aspect
  • leaf_rotate
  • noise_mag
  • noise_scale
  • taper repeat_z

System grass:

  • name
  • species_id
  • texture_id
  • blade_size_x
  • blade_size_y

Common Staircase dimensions


Common Staircase dimensions

The most important measurement for a staircase is the sum of two risers (the height of each step) and one tread (the depth of each step). For a staircase to be comfortable to walk, this should be:



RL 133% 150% 200%
Min. 61 cm 81 cm 91.5 cm 122 cm
Ideal 62 cm 82.5 cm 93 cm 124 cm
Max. 63.5 cm 84.5 cm 95.25 cm 127 cm


Risers


RL 133% 150% 200%
Min. 12 cm 16 cm 18 cm 24 cm
Typical 16 cm 21 cm 24 cm 32 cm
Max. 21 cm 28 cm 31.5 cm 42 cm


Treads


RL 133% 150% 200%
Min. 25 cm 33 cm 37.5 cm 50 cm
Typical 30 cm 40 cm 45 cm 60 cm
Max. 40 cm 53 cm 60 cm 80 cm

Width

Since 2017 Norwegian bulding code regulations specify a minimum width of 1.10 m. Before that 0.9 m was the minimum. I haven't checked regulations from other coutnries but this seems fairly typical.