WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-10-2009, 08:51 PM
nlfrnassimi nlfrnassimi is offline
Member
 
Join Date: Feb 2009
Posts: 37
view problem

I have imported an avatar and applied a keyboard key to animate it. my problem is that I want to make my view as first person point of view. I've also been able to connect my view to the avatar but the problem is I can see the avatar's head, I want my camera to be beside him moving with him.
Please help.

This is my code:

import viz

viz.go()

viz.add('tut_ground.wrl')

character = viz.add('vcc_male.cfg') # Add a CAL3D based avatar
character.state(1) # Activate the walking state

def characterWalk (key):
if key == viz.KEY_KP_RIGHT:
character.state(2)
walk = vizact.walkTo([5,0,0],1)
character.addAction(walk)


viz.callback(viz.KEYBOARD_EVENT, characterWalk)


viewLink = viz.link( character, viz.MainView, enabled = True )
viewLink.setDstFlag(viz.LINK_HEAD)
Reply With Quote
 

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with stereo mode shivanangel Vizard 3 10-17-2006 09:58 AM
Problem on adding OSG file felixchc Vizard 4 10-06-2006 11:26 AM
problem with female animations vmonkey Vizard 1 10-07-2005 10:36 AM
PROBLEM: Picture-in-Picture breaks textures?!? vcarlson Vizard 4 10-05-2004 04:22 PM
keeping a 3d object in front of the view tavaksai Vizard 1 07-07-2004 09:33 AM


All times are GMT -7. The time now is 11:27 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC