Map of the site:
Index -- Have the virtual green thumb -- Roleplay basis -- Enter the virtual
YichTrains -- Lysaer Fine elven art -- GortaX Robots Scripts
November 26, 2020
by Yichard Muni, elf bard
(Permalink) This page gathers tips and suggestion for virtual plants builders in the Halcyon virtual worlds system, to better meet the needs of users and landscapers (including planter robots). Plants are often overlooked, but they are one of the most important elements of landscapes, and ubiquitous in virtual worlds. So we need a wide variety of good quality plants, and especially with low land impact and proper LOD to remain visible in large landscapes.
For diagonal readers, important points are highlighted like this.
This page was created by Yichard Muni (Richard Trigaux) to help the progress of Halcyon virtual worlds. You are encouraged to save and reproduce it, as long as you retain this attribution. It is in the Wayback Machine dated Nov 27, 2020.
If you have other ideas to share with all the other virtual gardeners, please send a word, so that this document can be enhanced.
Since I lost the credentials of many of the authors of these ideas, any further suggestion will be added anonymously, as the lore of real gardeners.
(Permalink) Given their different properties, a vendor should always tell if his build is prims, mesh or sculpties.
☻ Prims will remain, as the most appropriable way to build. But they create an overall squarish look, while quickly escalating in land impact.
☻ Sculpties were a transition system, which allowed better shapes than prims. But they have a large actual land impact, even if counted as 1 per sculptie. Worse, they look bad at a distance, as we cannot control the lowest LOD. Second Life is bound to keep them, but Halcyon can be the occasion of a fresh restart.
☻ Meshes allow for more natural shapes, better control of the far LODs, and much lower land impact. Another good point is that Collada 3D files are not bound to a single virtual worlds system. However creating them need to learn a complex software like Blender. Hopefully simpler software will appear.
So it is recommendable to use meshes for all new project.
For non-mesh-savvy people, there still are some tips:
☻The simple plant shape formed with three prims at 120° angles is still usable, for small plants, or for forests if we don't look from too close. These prims must be slightly tapered to reduce their actual land impact, but they are still counted each as LI = 1.
☻A better way is to use the simple meshes provided at the end of this document, that anybody can use without learning mesh making. Their land impact (when linked) are much lower, 0,066 for the 3 prims plant, and 0.047 for the other.
☻There also are mesh prims, of much lover land impact, that you can use like prims, save that shape-changing parameters do not work.
(Permalink) Gardeners and landscapers are often annoyed with plants with illogical origin or rotation. So, ideally:
☻ Plants must come with a <0,0,0> rotation. (At a pinch, a planter robot may understand that a non-null rotation must not be changed, for instance a plant with a sunny side)
☻ The origin must be at ground level, and centered in the stalk, trunk, pivot, jar, etc. In plants made from a single mesh, this can be done with a small extra triangle way under, in order to center the trunk mesh at ground level. In plants made from prims or multiple meshes, a properly centered root prim must be provided, or you use prims with a slice from 0.5 to 1.
☻If your plants are mod, check that no prim is near the minimum 0.001m size (x, y or z) (0.01 in SL), because this prevents the user from shrinking the plant beyond that point. Think at dioramas, where plants can be reduced by 10 or more.
☻ With larger and larger landscapes, we need automated planter robots. But they need the criteria above strictly implemented , or they will plant stuff butt above head. And after, you say robots are stupid.
☻ Automated planter robots need to know the overall dimensions of the plants, but they can see only the dimensions of the root prim. With mesh, you can add some small extra triangles for this purpose, and also center the root at ground level. With prims, you can add a flat prim for the shadow.
☻ If your plant is entirely phantom, you can also use for this purpose the LowestLI.dae minimum land impact mesh provided at the end of this page.
(Permalink) A planter robot is a scripted object able to scan a land and rezz plants automatically, in a smart fashion, and thus able to create realistic landscapes without the tedious work of manually placing hundreds of plants. With large and cheap regions, they will become more and more indispensable.
The idea would be to allow a parcel owner to put any plant in the planter's inventory, and let it run alone automatically to create landscapes.
If we consider plants have a life, they may be scripted to grow, blossom and die of their own. The planter robot should be able to know that, and replace them.
A planter robot can detect and rezz objects without problems. But if we want it to modify these objects, they need to be scripted. If we want the scripts to be updated, they must have allocate it a pin number when rezzing. See the function llSetRemoteScriptAccessPin
(Permalink) It is annoying to be stuck in a scene because a plant is making an obstacle. The rule here is that, in most cases, a plant must be set globally phantom.
However a hedge, a vase or a big trunk may need to be a solid obstacle. This is the physical shape, and this property can be adjusted prim per prim, in the features tab in the build window:
☻None: the prim (or mesh) is like phantom.
☻Convex hull: the prim is solid, but simplified to an entirely convex shape. This saves server load, and can be used for simple shapes: trunks, jars, flower beds, rocks, etc.
☻Prim: This time, hollows are respected, for instance the physical shape of a branching tree appears as such, not as a blob. But this has the highest server load.
In a general way, the simplest the physical shape, the better. This can be set in the mesh importer, where you can select any of the LODs as the physical shape, which is thus simplified compared to the visible shape.
You can also create a collada file for your physical shape, and import it in the physics thumbnail of the mesh import window.
But the best remains to add an invisible solid prim with a very simple shape, or a very simple invisible mesh.
(Permalink) Perms are an important point for a buyer to make his decision. They must always be indicated by the vendor.
☻ As a creator, you decide which perms you want. But please consider what follows:
☻ Landscapers like modifiable plants, that they can resize, take parts of them, or change textures and colors. Textures are usually protected from copying when mod, so that if you want to offer them, you must provide them as content of the root prim or in a box with the plant.
☻ It is also desired that we can change parts of the prims, like the flowers colors or the flower textures. For this they must be a separate side (in world) with a separate texture (material in Blender).
☻ There is a Halcyon project of an export perm (of your stuff only).
☻ Mundo Market will also allow the same object to appear in several worlds. If you bought it in one, it should be deliverable in all related worlds. The creator can control in which world it can appear.
(Permalink) This is very important. A common problem with plants is that textures are more gray than natural , creating this dark and gray «Second Life style», contrasting with other virtual world system, like There.com, with natural or merry colors.
But especially, providing grayish textures removes choice for the landscaper. Indeed, it is still possible to gray a vivid color, but not to make vivid a grayish color. So that:
☻ Have textures with saturated colors. This way the final user can add gray if he really wants that.
☻ Have plant textures with light colors allows the builder to add an overall tone, darker if needed.
☻ Have contrasted textures, to keep the details even when mixed with a plain color.
☻Use the tip described about alpha textures, which automatically surrounds all shapes with a color of your choice, making foliage more visible.
(Permalink) For an user, it is desirable to have separate textures for leaves, flowers, trunk, fruits, etc. instead of a single texture for all. This allows the final user to specifically change the color or the tone of a part, like a flower.
The custom inherited from movies modelers is to totally wrap an object with a single common texture. But they do that with expensive 3D creation tools like 3DSmax, able to rewrap instantly after any modification, while updating the texture. This works well for movies props, which are used only once, and are not constrained by usability, Internet transfer or land impact as in virtual worlds. But there is is no free tool to do that in Second Life, Blender or Halcyon, and manually calculating or modifying this common UV map is a nightmare. So it is much better to use separate textures, one per side, which are much simpler to UV map, much more maintainable, and modifiable for the final user.
(Permalink) These are important items, usually done with a network of vertical mesh faces. The difficulty is to join several seamlessly. There are two solutions:
☻ A blurry border with tapering height. This way, two overlapping objects look like a continuous cover, with a large tolerance on their position.
☻ A neat border. In this case it is harder to get a continuous cover, and this needs several sizes, and smaller sizes to fill the holes.
☻ The best solution seems to blend the two ways, like a quarter of a circle. The radiuses are frank birders, while the curve has its height varying progressively.
☻ Tapering height also compensates for a common problem: many stalks look like a wall with a defined height. Both the stalks and the faces must have different heights. The user can somewhat remedy this by placing each grass prim slightly tilted.
☻ Higher LODs must not disappear with distance, while still having decreasing number of triangles. This needs to UV map the same texture more densely, to compensate for less overlap. Think same number of stalks for each LOD.
☻The highest LOD may be very simple, but it still needs to fully occupy the same volume, in order to the grass cover remain visible whatever the distance. The best seems to use a flat top pyramid, UV mapped with many times the texture, to keep the feeling of partial transparency.
(Permalink) A light gray or light beige texture allows for coloring the rocks after the context. Dark textures do not allow for this freedom.
It is better to have geologically exact rocks, and also textures coordinated with angles or layers in the shape. Photos of real rocks give excellent results, if they are homogeneous and if needed oriented after strata. We find some seamless textures like that, and they are relatively easy to be made seamless in a graphic software, without art talent.
(Permalink) They are usually done with a texture animated on a mesh. A different UV mapping ratio at bottom will make water fall faster at bottom than at top. A section of a sphere elongated vertically can give about the same result. But with a mesh you can make the center of the stream run faster than the sides. With Several such prims, with some particles for foam, you can make stunning cataracts.
(Permalink) Flexy prims or flexies are a common way to have plants swaying in the wind. But they have a large land impact. Ideally we should have flexy flat meshes for this purpose, and a better more customisable wind system.
☻ (Permalink) The alpha bug happens when we see through several prims with alpha transparency textures: only one of the texture appears at random, and often they flicker. There is a relatively simple fix which works for most plants, save intrinsically fuzzy parts like cotton or wheat ears. In the build window, textures tab, near the mini image of the texture, there is a check box called «Alpha Mode». Select «Alpha masking», which opens a value field called «mask cutoff», that in a first approximation you set at 128. Alpha masking replaces progressive transparency by an all or nothing transparency, which is much faster for the viewer to process, thus cutting lag. This also eliminates the alpha bug, giving better results for plants. Depending on the alpha cutoff value, the whole texture is visible, or part of it, or nothing. Since often parts like leaves have a fuzzy border, a high alpha cutoff will eat part of them, or on the contrary a low alpha cutoff will leave a darker edging, which can be desirable to avoid all the leaves to merge in a single green blob. This also allows for smaller textures, as they still appear with neat edges, not pixellated.
☻ Another issue is that, when not fully loaded, alpha textures often appear as an unsightly black square s blocking the landscape. This is because all 100% transparent pixels of a texture are considered black by default. To avoid this, you can add to your texture a 99% transparency layer of an appropriate color, like darker green for foliage.
This trick is especially interesting with Alpha Mode set to Alpha masking, as it automatically creates an edge all around the leaves, which color you can set. Usually it is darker than the leaves, improving visibility.
(Permalink) Vendors should always tell the land impact of their creation. Sometimes per meter or per square meter.
In worlds where surface is cheap, plants can be thousands in a scene. So great care must be taken to have them with an as low land impact as possible. Here again meshes beat the other solutions by far, but this section also provides help for non-meshers.
☻ Prims: each system prim in an object contributes to 1 to the calculus of the land impact, regardless of their complexity. Still this complexity varies widely: 12 triangles for a tapered box, 108 for the common box, and 1152 for a torus. All count the same against the land impact figure, but it is very advisable to use tapered boxes to lower the actual land impact.
☻Sculpties: a 16x16 sculpt map has 512 triangles, and a 64x64 sculpt map has 8192 triangles, that is 40 prims. But the land impact is still counted as 1. Thus a forest of big sculpties would be awfully laggy.
☻Meshes: Today both SL and Halcyon calculate the land impact after the number of triangles in an object, instead of the number of prims. Add to this that, Halcyon using better servers, it allows for a more favorable calculus of the land impact. This is very advantageous for plants, which can be very numerous, but with few triangles each.
☻Of course even a beginner modeler can do better meshes than the old three boxes trees. But even the three boxes beat sculpties by far, especially if you taper them. For this reason:
☻For the non-meshers, several simple Collada files are provided at the end of this document, with instructions to get them in world. The first contains a 3 120° meshes plant, the second a two faces box and two triangles with two sides. You can use them to create trees or plants, or even more complex foliage, with a LI nearby as low as complex meshes. This is enough in many cases, and anyway better than nothing. These meshes are so light that they can be linked by hundreds before significantly raising land impact. Add to this that, since you imported them, you appear as the creator: you can save them on your drive, sell them, OAR them, with my full licensing provided for Halcyon.
(Permalink) Normals are vectors associated to each face of a mesh, to make it look rounded, instead of faceted.
If the mesh you are importing has no normals, the «☑ generate normals» check box allows to create them. But the importer then needs that you set a «crease angle», under which two adjacent faces will look rounded, instead of faceted. For instance, to make a cylinder look round, but still with square ends.
When a low crease angle is selected (or the box is unchecked), the importer creates a lot of supplementary vertices, which are not in your file. Problem, the land impact is calculated after the number of vertices, while it is the number of faces which actually matters. This certainly was a poor design decision, which gives falsely high values of the land impact.
But there is a fix:
☻Checking «☑ generate normals» and setting «crease angle» to 180° corrects the calculated land impact, while not changing the actual land impact (per triangles) as felt by the viewer. The inconvenience however is that your plant will appear entirely rounded. Up to you to see, but in objects intended to be thousands, the land impact passes first, while the rounding is not so visible than we may think.
☻For this to work, you have to «remove doubles» vertices in Blender before. The importer does not do that.
(Permalink) LOD stands for Level Of Details. They are different versions of the same object: High LOD, medium LOD, low LOD and lowest LOD, also called LOD1, LOD2, LOD3, LOD4 respectively. The higher LOD is what you upload or build, while the others are simplified. In order to minimize land impact, the viewer shows the high LOD at short distance, and the simplified LODs at a longer distance.
The substitution to lower LODS is what makes object look distorted at some distance, or even to disappear with distance. This is especially bad for sculpties which often disappear beyond some distance. But it is problematic for meshes too, if you blindly rely on the automatically generated LODs when importing a mesh (the four lines in the import window)
☻ setting LOD factor to 4 works for you, but not for the others, especially newbies. Furthermore, this increases lag in your viewer.
☻ In the import window for meshes, setting proper triangles reduction for each LOD. Best values seem to be:
☺High LOD: this is the number of triangle of your mesh, as you created it
☺medium LOD: set same number as high LOD
☺low LOD: set half or medium LOD
☺lowest LOD: set a third of low LOD.
Check that you are still having at least a gross outline of the object in the lowest LOD, or it will disappear with distance. Also consider that in objects, small but important meshes may disappear before the larger ones. Maybe import them separately.
☻Create your own LOD collada files, and import them separately in each LOD line, using «from file». The difficulty is that all the materials (Blender) or sides (in world) must be in the same order and with the same names, in each LOD file. But Blender messes a lot with material names. In Blender you can set the order of materials with the up and down arrows just right of the materials list. But the best seems to import each prim separately, with its own LOD files.
☻With plants, the best way seems to take pictures of the plant from some distance, and use them for a three boxes simple mesh for the low or lowest LOD. The problem however with this approach is that all the textures (materials in Collada and Blender, sides in world) must be present in all the LODS, and in the same order (see the previous point). This can be done by adding small hidden triangles of the unused materials in each LOD mesh.
(Permalink) Here under are provided collada files featuring simple mesh elements covering most plants needs, allowing for in-world building of simple mesges mesh by non-mesh savvy people.
☺click on the links under to download the files (they will usually go in your download folder).
☺upload this file in world as a mesh.
☺In the upload window, in the four LOD lines, it is better replace «generate» with «use LOD above». If you don't your plant will disappear in the distance. Well, if this is what you want, you must then reduce triangles in the lowest LOD.
☺Since the system sees you as the creator, you can share, sell, export or OAR your builds made with these files.
☺This content is licensed by © Yichard Muni (Richard Trigaux) as free to use for any purpose in Halcyon worlds. Attribution requested when reasonably possible. Do not modify the author name. Do not claim authorship. You can share these files, but not resell them.
3BoxesPlant.dae contains a base plant mesh with 3 prims at 120° and a ground plane as root. LI=0.066 in Halcyon
☺Once in world, un-link and re-link the root prim (the ground plane)
Box2sides.dae Contains 1 square prim and two triangular prims with 2 sides only. LI = 0.046 in Halcyon
☺These two triangles show each a different half of the same texture, which allows to bring more variety.
PhantomRootTellingItsSizeToRobots.dae Contains 1 prim with only two triangles, the lowest possible LI to define a volume. It can be used to add a proper root prim to (phantom) plants and objects, or to mark places. Making it the size of the whole plant gives this information to planter robots. Beware that it is not visible from all angles, even with transparency made visible. LI = 0,014 in Halcyon.
4cones4trees.dae Contains 4 cylindro-conical prims allowing to make trunks and branches. LI=0,209 in Halcyon.
☺Once in world, un-link and re-link the root prim (the bottom of the trunk)
☺If you add the two triangles in Box2sides.dae, you can build realistic trees.