Alice Community Comprehensive Explanation Needed

 Comprehensive Explanation Needed
 x2495iiii Super Moderator     Status: Offline Posts: 3,508 Join Date: Dec 2008 Location: Somewhere in the Continental U.S. Comprehensive Explanation Needed - 12-02-2008, 04:36 PM I have been working with Alice for quite some time and I've scoured the textbook I have and have not found any explanation as to how some of the built-in functions in Alice work. Could someone explain: World Functions 1. mouse distance from left edge/top edge (tried to use but didn't understand how numbers were calculated) 2. IEEE Remainder of A/B (probably some math I haven't learned yet) 3. right, up forward (no idea at all about this one) Object Functions 1. Object's quaternion (????) 2. object's part named key (does that have to do with subparts?) 3. object's variable named variablename and of class valueclass Also, all of the seldomly used properties for objects would be nice, especially specular highlight exponent
 Functions and Seldom Used Properties
 x2495iiii Super Moderator     Status: Offline Posts: 3,508 Join Date: Dec 2008 Location: Somewhere in the Continental U.S. 12-02-2008, 09:50 PM i tried to experiment with is pivot showing, but it didn't change anything visibly also, i tried using right,up,forward, but it wont go anywhere. what methods/functions accept it? otherwise this was excellent help thank you Dr. Jim
DrJim
Guest

Status:
Posts: n/a
12-03-2008, 04:01 PM

The attached example should help with both issues.

1. It moves the chicken using right,up and forward coordinates. You can add an "as seen by" reference to make the coordinates absolute but I don't remember the exact details (either the ground or the world sets the (0,0,0) cordinate reference). A forum search on offset or something similar should find it and I think there is an explaination in Dick Baldwin's tutorials - or it's not too hard to figure out with a couple of experiments.

2. I also toggled viewing a pivot (origin and axis) on and off. This works fine on a PC but I believe the axis are not visable on a Mac for Alice 2.0 - though I think this is fixed in 2.2b
Attached Files
 Offset - RightUpForward.a2w (230.0 KB, 46 views)

 x2495iiii Super Moderator     Status: Offline Posts: 3,508 Join Date: Dec 2008 Location: Somewhere in the Continental U.S. 12-03-2008, 09:56 PM strange, I'm not using a Mac (I hate Macs, but that's neither here nor there) and I actually have another question: Is there any way to include audio clips in Alice 2.2 in such a way so as not to freeze the video when the clip is played? I've included music and small sound effects before with no problems, but for some reason it froze when i tried to have it play a voiceover for a character. The file is in .wav format and is only 28 seconds long...
 Audio in Alice
 DrJim Guest   Status: Posts: n/a Audio in Alice - 12-04-2008, 08:47 PM Personally I gave up on trying to do any audio other than the very basic stuff in Alice (actuallly this was also the recommended approach in the first edition of the Dunn, et al text). The timing never seems to work right and for videos I usually use a screen capture program and go into a movie editor anyway. You might look at a program called music box that was posted in the forum a while back. Think it solved some of the problems.

 Thread Tools Display Modes Hybrid Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements     Community News and Announcements Alice 3     How Do I?     Works In Progress     Share Your World     Share Custom Classes     Bugs and Trouble Shooting     Suggestion Box Alice 2     How do I...?     Works-In-Progress     Share Worlds     Share Objects     Bugs and Troubleshooting     Suggestion Box Educators     Teaching with Alice     Teaching Using Alice 3     Teaching Using Alice 2     CS Principles and Alice     AP CSA and Intro to Java and Alice     Workshops General Discussion     Questions and Comments     The Lounge