Alice Community  

Go Back   Alice Community > General Discussion > Questions and Comments

Reply
 
Thread Tools Display Modes
A Twofold question
Old
lordbyron3
Guest
 
Status:
Posts: n/a
Default A Twofold question - 09-20-2005, 09:58 PM

First: I have 3D Studio Max 6; how do I get objects from it into Alice?
Secondly: Is there any way to do something like a GetAsyncKeyState in Alice? The problem is: we want the user to be able to rotate the camera but not to move the camera. This needs to be fast-paced and smooth. Using the event: when key is pressed does not work because it does not continue running the method if the key is held down.

GetAsyncKeyState is a C++ function that basically gets the key state of a specified key on the board - e.g. if I send it VK_UP as a parameter it returns whether the up arrow key is pressed, or whatever.
Any ideas as to an algorithm for this would be appreciated.
   
Reply With Quote
Have you tried using the vehicle command for this
Old
knight199
Guest
 
Status:
Posts: n/a
Default Have you tried using the vehicle command for this - 09-21-2005, 12:41 AM

I took the camera and and made the character move with the camera.As for rotation if the character turns the camera will follow.I hope that solves your problem?or at least helps you.What type of game is this for if I might ask?far as I know alice does not use normal bones.I beleive the bones are the object groups themselves tied to one another because if you move a object in alice you can actually take it right off the character.If it is a game I have a health code that you can use if you would like.

knight199,
   
Reply With Quote
Old
gabe
Administrator
 
gabe's Avatar
 
Status: Offline
Posts: 461
Join Date: Jul 2005
Location: Pittsburgh, PA
Default 09-26-2005, 04:43 PM

We have a new tutorial on how to import 3DS Max objects into Alice up on our Alice FAQ section.

Take a look!
   
Reply With Quote
Old
OmniDistortion
Guest
 
Status:
Posts: n/a
Default 10-08-2005, 11:49 AM

As gabe said that short tutorial should explain how to import objects you need. Worked for me! And about the camera... I've noticed input seems to be based on when the user lets go of the key rather than when it is pressed. Was this intentional or a bug? If say in this situation it could be when it is actually pressed down, and if held could continually produce the action desired.

Quote:
Originally Posted by knight199
If it is a game I have a health code that you can use if you would like.
I am interested in this and am curious as to how you created it.

Last edited by OmniDistortion; 10-08-2005 at 01:39 PM.
   
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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.