|
Davin Romano
jerk
Join date: 21 Mar 2008
Posts: 384
|
05-07-2008 06:55
I'm thinking of window shades and light switches.. Could there be a similar script that changes the textures in a room and the furnishings?
i.e. I want a western themed living room, but when needs be I'd like to click a switch and turn it into a red velvet lounge
I could just link all the furniture and redecorate really fast, but I'd like it to be simple like BAM BAM!!
cheers
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
05-07-2008 07:12
There are products available which allow for such things.
One such product would be the 'Holodeck' and another would for example be my MultiRoom scripts.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
05-07-2008 10:38
I'll try to answer in a way that is appropriate for the SCRIPTING TIPS forum rather than plugging a commercial product. Yes, it is possible. There are many ways to approach the problem. If you can link all the room's contents together, it might be as simple as having one object llDie() and then rezzing the other. If not, you might do the same thing with a set of objects. More complex solutions would involve re-texturing walls and/or furnishings, having objects reshape and reposition themselves (which might take building "transformer" objects built with the maximum number of prims needed from all configurations, then tucking away and hiding some of the prims when they aren't needed), or some combination of these techniques. Which approach, or what combination of approaches, is really going to be up to you and your particular requirements. However you do it, I suggest thinking carefully about how the scripts are going to communicate with each other. Maybe even draw out a picture of how the whole process is going to take place (e.g. http://en.wikipedia.org/wiki/Sequence_diagram).
|
|
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
|
05-07-2008 11:09
Hewee answered lovely ^_^
Here's my quick take on it
The quickest way, in my opinion, would be to use a menu driven rezzer. Each option rezzes a different set of furniture, and every time you rez one set, the last set is told to die via llDie.
At the same time, this rezzer would say something to trigger the walls, windows, etc to change to a different set of textures.
The layout of the whole thing would be as such:
Each piece of furniture has a script that listens to be told to die, and dies when told to.
The walls have scripts to change to specific textures when they hear specific words. Same for windows, floor, whatever else you'd want to change.
The rezzer would be an llDialog-run affair, with each button triggering the kill message for the current furniture, then rezzing the new set of furniture, and saying the command to make the walls and such to change to that set's textures.
=======
That is how I would do it personally. There are quite a few ways to do it (Multiple rezzers, with no dialog, single rezzer that is a 1/2 switch and no dialog, etc etc), and no one way is more correct, really.
All depends on your scripting skill, or willingness to pay, and on your needs for the situation.
I'd actually like to thank you for mentioning this, because it brought me back to the idea I had a little while back for a unique product.
_____________________
Tutorials for Sculpties using Blender! Http://www.youtube.com/user/BlenderSL
|
|
Davin Romano
jerk
Join date: 21 Mar 2008
Posts: 384
|
05-07-2008 11:32
Wow, thanks for the in depth answers! I will need to ensure than any furniture used is mod-ok then so that I may add the scripts to each.
My willingness to pay is key, since my scripting knowledge isn't to par with something like this.
I'm going to have to search for those holodecks, now.. always loved that idea when I was a kid.
|
|
Keira Wells
Blender Sculptor
Join date: 16 Mar 2008
Posts: 2,371
|
05-07-2008 13:37
From: Davin Romano Wow, thanks for the in depth answers! I will need to ensure than any furniture used is mod-ok then so that I may add the scripts to each.
My willingness to pay is key, since my scripting knowledge isn't to par with something like this.
I'm going to have to search for those holodecks, now.. always loved that idea when I was a kid. Also make sure you have COPY rights! Otherwise you have to actually place it back in the rezzers inventory, or it can't rez the object again. And llDie() with no-copy is baaaaad.
_____________________
Tutorials for Sculpties using Blender! Http://www.youtube.com/user/BlenderSL
|