After my Crit with my group members
I have taken note of a few things that could be improved:
- Learning how to collaborate with others and fusing many ideas together ( relates to working with clients later on in our careers).
- Thinking outside the square.
- Making light switches actually emit light.
- That a 'Virtual Library' does not necessarily need to be a building.
- Not putting furniture in the 'virtual library'.
Overall I'm quite pleased with how the crit turned out and i hope i will get a decent grade!
Friday, 17 June 2011
Thursday, 16 June 2011
Wednesday, 15 June 2011
More Photos from Virtual Library - Finished!
Tuesday, 14 June 2011
Changing of Virtual library in Second Life to suit journals
Monday, 13 June 2011
Making a rotating screen
I began with applying a texture on a flat, square prim that was reminiscent of white noise on a television.
Then I applied the following script in order to animate it to show movement on the screen:
default
{
state_entry()
{
llSetTextureAnim(ANIM_ON | LOOP | SMOOTH | ROTATE, ALL_SIDES,
1, 1, 1, 1, -0.025);
}
}
Layer this on top of a another flat prim (as your monitor) and add buttons wherever you would like in order to increase authenticity.
Then I applied the following script in order to animate it to show movement on the screen:
default
{
state_entry()
{
llSetTextureAnim(ANIM_ON | LOOP | SMOOTH | ROTATE, ALL_SIDES,
1, 1, 1, 1, -0.025);
}
}
Layer this on top of a another flat prim (as your monitor) and add buttons wherever you would like in order to increase authenticity.
Making a light switch
Today i found out how to make a light switch in my library :)
Here's an easy way to make a basic light switch:
The switch is made of 3 parts/prims: The rotor, switch and light source.
The script for the rotor is as follows:
{
state_entry()
{
llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,FALSE]);
}
link_message(integer sender_num, integer num, string str, key id)
{
if(str=="stop")
{
llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,FALSE]);
}
if(str=="start")
{
llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,TRUE]);
}
}
}
Here's an easy way to make a basic light switch:
The switch is made of 3 parts/prims: The rotor, switch and light source.
The script for the rotor is as follows:
myon_state()
{
rotation rot = llGetRot();
vector vrot = llRot2Euler(rot);
vrot+=<-30*DEG_TO_RAD,0,0>;
rot=llEuler2Rot(vrot);
llSetRot(rot);
}
myoff_state()
{
rotation rot = llGetRot();
vector vrot = llRot2Euler(rot);
vrot+=<30*DEG_TO_RAD,0,0>;
rot=llEuler2Rot(vrot);
llSetRot(rot);
}
default
{
state_entry()
{
myoff_state();
}
link_message(integer sender_num, integer num, string str, key id)
{
if(str=="stop")
{
myoff_state();
}
if(str=="start")
{
myon_state();
}
}
}
The script for the switch is as follows:
integer myswitch;
default
{
state_entry()
{
myswitch=FALSE;
llSetText("Light Switch", <1.0, 1.0, 1.0>, 1.0);
}
touch_start(integer total_number)
{
if(myswitch==FALSE)
{
//Turn Light Bulb ON
llMessageLinked(LINK_ALL_CHILDREN, 0, "start", NULL_KEY);
myswitch=TRUE;
}
else
{
//Turn Light Bulb Off
llMessageLinked(LINK_ALL_CHILDREN, 0, "stop", NULL_KEY);
myswitch=FALSE;
}
}
}
And finally, the script for the light source is as follows:
default
{
state_entry()
{
llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,FALSE]);
}
link_message(integer sender_num, integer num, string str, key id)
{
if(str=="stop")
{
llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,FALSE]);
}
if(str=="start")
{
llSetPrimitiveParams([PRIM_FULLBRIGHT,ALL_SIDES,TRUE]);
}
}
}
One you have made these 3 prims and scripted the above, simply link them together into one prim (this can be done by holding down shift or alt and selecting the 3 prims) Once selected, press CTRL-L in order to fuse them into one prim and voila! A lightswitch.
Sunday, 12 June 2011
Thursday, 9 June 2011
Subscribe to:
Posts (Atom)