Static parameters

This is a discussion on Static parameters within the vrml forums in Programming Languages category; Hello, i'm not so strong in vrml (therefore i'm asking, lol), but I created a human body in vrml. Now when i'm moving (for instance) left hand i need 8 arrows starting from the hand, that will direct the 8 basic possible choices for movement. (like up, down, left right, forward, backward and combination of up/right, up/right forward....). Now whenever user will click on that arrow, hand will move in that direction. The problem that i'm facing is, that I don't know how to make the arrows allways direct the same direction (like forward arrow should always start on the ...

Go Back   Application Development Forum > Programming Languages > vrml

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 04-16-2008, 04:03 AM
George
Guest
 
Default Static parameters

Hello,
i'm not so strong in vrml (therefore i'm asking, lol), but

I created a human body in vrml. Now when i'm moving (for instance)
left hand i need 8 arrows starting from the hand, that will direct the
8 basic possible choices for movement. (like up, down, left right,
forward, backward and combination of up/right, up/right forward....).
Now whenever user will click on that arrow, hand will move in that
direction.

The problem that i'm facing is, that I don't know how to make the
arrows allways direct the same direction (like forward arrow should
always start on the hand, and go forward, up should allways go up).
Whenever i rotate some part of the body, the arrows change the
direction.

In other words. I need to have arrows, that allways start in point
specified by point in my vrml structure, but i need, that they will
not change direction on rotation of the parent objects (or rotation of
parents of the parents...)

Can anybody help me pls?

I can send you example of my body vrml if you will need it.

Thx a lot.
Reply With Quote
  #2  
Old 04-16-2008, 12:58 PM
simon
Guest
 
Default Re: Static parameters

i think you need a HUD,

a HUD is a structure whose contents remain fixed relative to the
viewer, in VRML this was an omission, many people have written VRML
that uses the avatar position and routes it to a transform block, but
its problematic.
Reply With Quote
  #3  
Old 04-17-2008, 01:06 AM
fabricator
Guest
 
Default Re: Static parameters

Let me get this straight, you want it so that rotating an joint
doesn't change the orientation of the controls of the children
joints....

Um tricky, look up Inverse Kinetics, maybe that is more useful for
what your are trying to do.

Otherwise you need to add the rotation produced by controls to the
existing rotation. That is use an offset. Thanks to the wonders of
vrml browsers you'll have to use the quaternion code from michael
wagner to multiply rotations.

example usage in
http://elearning.crnl.hu/elearning/v...LightPROTO.wrl
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 02:04 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.