Alice Community  

Go Back   Alice Community > Educators > Teaching with Alice

Reply
 
Thread Tools Display Modes
Walk methods
Old
puzzler
Guest
 
Status:
Posts: n/a
Default Walk methods - 12-01-2005, 08:19 PM

Although people built with the heman/sheman builder have a few default methods (including a very useful walk method), the regular people models don't seem to have any of interesting methods pre-defined. Why not? Is there any way to import the walk method from a heman-built person into an Alice library person model?
   
Reply With Quote
Old
gabe
Administrator
 
gabe's Avatar
 
Status: Offline
Posts: 461
Join Date: Jul 2005
Location: Pittsburgh, PA
Default 12-19-2005, 01:21 PM

Quote:
Originally Posted by puzzler
Although people built with the heman/sheman builder have a few default methods (including a very useful walk method), the regular people models don't seem to have any of interesting methods pre-defined. Why not?
All of the models in our gallery were built by students who were very generous in donating them for our use. However, not all models were made including predefined methods.

Quote:
Is there any way to import the walk method from a heman-built person into an Alice library person model?
Sadly, this is not possible with the current release of Alice.
   
Reply With Quote
Puzzled by Puzzler and Replys
Old
DrJim
Guest
 
Status:
Posts: n/a
Question Puzzled by Puzzler and Replys - 09-08-2006, 08:08 PM

I'm relatively new to Alice and just working through old postings. Both this one and the previous question on physics confuse me.

Re the walk method, I don't see why, from a program standpoint, it can't be used with any other object - doing it manually takes a bit of work (I'm not real great with the clipboard yet) but it does get the job done.

There is, of course, a basic problem in that if the second object doesn't have the part referred to in a program step, it obviously can't respond to that particular step - but, in a very brief trial, Alice just gave an error message and went on without stopping. It was easy to avoid the error message by deleting the offending steps - again this was only a brief try -but of course now the "walk" is pretty bad.

Am I missing something in the question and earlier answer? Looks to me like the problem is basically an object can't walk a certain way if it doesn't have the physical equipment to do that - which you can't fix with programming.

The physics question is relevant because, in my (unfortunately painfull) experience, timing is one of the first thing to trip you up in a walk animation. It is much better to work with real time as a variable - as Alice does - than to worry about frame rate, which you may not have control of anyway. (By Murphy's Law, you also won't realize you don't have that control until you are presenting the "finished" work on new equipment.)

When I time the total display time to execute a step as one second, that's what it is going to take regardless of frame rate - which the CODEC is going to determine for the hardware involved. If you try to code on a frame by frame basis, like classic animation, unless you're just working with one piece of display hardware, you're going to have to redo some things in the program each time you change displays or live with the built-in rate change compensation approach which is generally pretty dumb (my experience and from subsequent discussions, that of others as well).

The same holds true for say dropping a ball - a classic phyics example. If the physics in the real world cause the ball to take a second to drop - and the program is coded in real time units, the ball is going to drop on the screen in one second regardless of whether the frame rate is 10, 12, 24 or some higher number of frames/sec. Hopefully a higher frame rate will give a higher quailty of animation but the elapsed time for the event will be the same as in the real world.

Again - am I missing something in the question and earlier answer?
   
Reply With Quote
Poses?
Old
Mr Nemo
Guest
 
Status:
Posts: n/a
Smile Poses? - 09-08-2006, 09:06 PM

I noticed that the hebuilder/shebuilder uses poses rather than move/turn/roll methods to effect walking. Is there an easy way to create a pose? If so what is it, or what method do you suggest? Would it be possible to port over a pose from one object to a similar object? or is that sadly impossible?
Sorry to seem overly inquisitive, but I'm sick and tired of the complexity of just making a person walk! I can only imagine how much code it's going to take to write collisions or picking up objects!
   
Reply With Quote
Old
lanceA
Guest
 
Status:
Posts: n/a
Default 09-08-2006, 10:14 PM

I thought Alice was a 'tool' to help motivate young people learn, not to build the next Final Fantasy or to learn physics. I'm definitely missing something here !

As to the question "... is there any easy way to create a pose?" the answer is yes, and it requires NO, or very little, coding. Use the mouse and object methods to position the body parts into the desired pose. then click on the capture pose button in the object's Details panel. After you have the poses you need, drag them into a user method and simply go into a loop calling your method as often as needed to simulate the action.

To pick up an object be a little creative and use the vehicle property when you extend the arm and touch an object. [Edit] People viewing your program will be amazed that in a single line of code you were able to simulate picking up an object.

As far as becoming "... sick and tired...", well I still think Alice is a great learning tool! Good luck in using Alice as you learn how to program.

Last edited by lanceA; 09-09-2006 at 03:20 PM.
   
Reply With Quote
here here..
Old
hdixon
Member
 
Status: Offline
Posts: 17
Join Date: Sep 2006
Location: Hollywood, FLorida
Default here here.. - 09-11-2006, 09:16 PM

I must admit I see a few threads that seem to indicate people are trying to go way beyond the intended scope of this fine product. I am using this (for the first time) in a beginning high school programming course as first exposure. The kids love it, I love it, and they are - gasp! - learning basic programming terminolgy/concepts. When I'm ready to move on to either Python and/or Java they wont be so clueless.
However I have used walking as a topic that focuses on discovering what they percieve as something that should be easy, to be a rather complex process. They get something semi-decent in the end - although the discovery along the way is FAR more important.

Huw
Quote:
Originally Posted by lanceA
I thought Alice was a 'tool' to help motivate young people learn, not to build the next Final Fantasy or to learn physics. I'm definitely missing something here !

As to the question "... is there any easy way to create a pose?" the answer is yes, and it requires NO, or very little, coding. Use the mouse and object methods to position the body parts into the desired pose. then click on the capture pose button in the object's Details panel. After you have the poses you need, drag them into a user method and simply go into a loop calling your method as often as needed to simulate the action.

To pick up an object be a little creative and use the vehicle property when you extend the arm and touch an object. [Edit] People viewing your program will be amazed that in a single line of code you were able to simulate picking up an object.

As far as becoming "... sick and tired...", well I still think Alice is a great learning tool! Good luck in using Alice as you learn how to program.
   
Reply With Quote
Final Fantasy?! NO!!! A thousand times NO!!
Old
Mr Nemo
Guest
 
Status:
Posts: n/a
Default Final Fantasy?! NO!!! A thousand times NO!! - 09-11-2006, 09:57 PM

God forbid that anyone should take a programming language and put it through it's paces to see what it can do, eh? Where do you think we would be now if someone hadn't stretched C or Java? Sorry if I'm offensive, but if you create a programming language, you can expect to see it used for things other than what you intended it for.
   
Reply With Quote
Old
lanceA
Guest
 
Status:
Posts: n/a
Default 09-12-2006, 07:54 AM

No offense taken. I only meant that instead of being a general purpose language, e.g., c++/java, I view ALICE as being more application specific - i.e., a teaching tool.

Good luck
   
Reply With Quote
Old
DrJim
Guest
 
Status:
Posts: n/a
Default 09-12-2006, 10:25 AM

Any comments on the usefullness of Alice in demonstrating the difference between a general purpose language and a dedicated, application specific tool, such as 3DMax or Maya for animation?

Also the usefullness of Alice as a teaching tool is not limited to young people.
   
Reply With Quote
Rpg?
Old
Mr Nemo
Guest
 
Status:
Posts: n/a
Default Rpg? - 09-12-2006, 09:52 PM

No, actually, I wasn't trying to use it for a role player. I just wanted to mess around with it and see what it would do. I found it rather complex, but I know C++ or Java would take 40 times as much code just too move an object.
   
Reply With Quote
Reply

Thread Tools
Display Modes

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 Jump



Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.