Jump to content

trying to build a working flask


Joetic Whitman
 Share

You are about to reply to a thread that has been inactive for 3288 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I am not sure how much you know already about building and scripting, or using 3D software. But I will list a two ways this may be done.

 

First, a link that will help: wiki.secondlife.com. It has all kinds of information about building, scripting, texturing, and animation of various kinds.

Ok, now the two major ways this may be done:

1. All prims. You can build it with prims and then use a shape inside the class and the script would do the following:

Step one. It is rez (resolved) in world and the fluid object is invisible in the glass.

Step two. When the bottle object is activated to pour and animation of pouring is triggered and the bottle sends a message to the glass via a channel.

How does the bottle work? It would be scripted to be worn and maybe be clickable, clicking the bottle makes options available: pour, set on table. Options in the menu OR listen channel opened and it waits for you to type in a command to the channel. Lets say channel 123. You would type /123 pour. Other methods, like using a gesture to say "/123 pour" would also work easily. Triggering a cork or pouring sound to work as the thing is moved may also require preloading of the sounds. Maybe the bottle could also use a particle system script to make it look like it is pouring.

Step three: The glass responds to the bottle. The liquid prim turns into a color instead of being set invisible by the script. Then it rises, using the control for prim parameters. Is the drink fizzy? Maybe bubbles using  a particle system.

Step four: More realism via putting a pri object, lets say a torus that is cut to make a pouring shape out of the bottle and then animated texutres added.

2. All mesh. Basically similar to the above but now you may "bake" some frames of a fluid simulation (blender can do this) and then invisible switch the meshes you are using as frames in the animation. More or less just better shapes, same process.

 

Removing a few of the elements (like particles and sounds) will maybe make this easier. Also, working on just the major parts first (bottle and glass with filling just turning from nothing to half full, no scaling or other primitive params used just one to change size) may be easier and faster.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3288 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...