Hello good folks of the metaverse!
Here is a thing i’d like to share: A scripted mesh fireplace.
Now, I didn’t create the mesh, I didn’t create the scripts, I just downloaded an *.obj file, did some tweaking in Blender, and uploaded it on Metropolis. I added some nice scripts from Jopsy Pendragon, added some sculpts and voilá: A scripted mesh fireplace.
I can show you where I found the original *.obj file, and what I did with in Blender, and I can show you where I got the scripts (Particle laboratory on SL) and how I uploaded the original fireplace in to Metropolis, textured it, added scripts, bla, bla…
I tried to export the fireplace with the scripts in it, but that failed. After some digging around I learned that there is no easy way to export meshes with content in it.
So, a work around is this, a new category: Odds Freebies. Here I’m gonna share stuff, show you how to upload it, and if necessary, where to put scripts and things.
Odds Freebie #1: A scripted mesh fireplace!
First the important stuff: a download link!
Download the *.zip file and un-pack it with Winzip, 7-zip, winrar or something similar. Remember where you unpack-ed the folder!
There should be a couple of things in the *.zip file:
- ~OD~ Mesh Fireplace.dae
- 3 text files that contains the scripts. (Light, fire and touch)
- 4 textures.
- A readme text file. This is the original readme that came with the mesh object. It contains the license and a link to the gallery (on shareCG.com) from the original creator)
Uploading the mesh model.
Lets start with uploading the mesh item. (I use opensim worlds, so I don’t have a clue what it costs to upload it to SL, or what the land impact nonsense thingy is )
- Open your favorite viewer (with mesh upload capabilities) and find the ‘Upload Mesh Model’ button. When the browse window opens, find the ~OD~ Mesh Fireplace.dae file, and open it.
- A new window pops up, and after some time you will see a little preview of the model. (click the pic to enlarge it)
You can change the name of the model and “This model represents…” in to “smaller, non moving, etc”.
In lower right corner, below the preview window, you can play with the display settings.
You can zoom in/out, rotate, etc, in the little preview window to check the model.
Don’t change anything else in this tab.
- Open the physics tab and change the Level of Detail to “Lowest” (see pic).
- Open the Upload options tab and check “Include Textures”
- Hit “Calculate weights and fee”. The viewer starts to calculate stuff, this can take a while.
When it’s done calculating stuff, the button changes to “Upload”.
When the model is uploaded, the “Upload Mesh model” goes poof, and you will find your mesh fireplace in your inventory.
rezz it on the ground and you have a mesh fire place!
A couple of easy steps:
- Create 3 new scripts in your inventory.
- Name the scripts fire, light an touch.
- Open the 3 text files on your HD, and copy the content from light.txt to your light script, fire.txt to your fire script, and touch to touch.
- Save the scripts.
Putting things together.
- Right-click on the fire place, and open the edit window.
- Check the “Edit Linked” box, and click on one of the logs inside the fire place. (See Pic)
- Drag the fire and light script from your inventory in to the content tab of the log.
- Un-check the “Edit Linked” option.
- Drag the touch script from your inventory in to the content tab of the root prim.