WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-02-2009, 02:15 PM
TrashcanPatrol TrashcanPatrol is offline
Member
 
Join Date: Aug 2008
Posts: 43
Two questions (networking)

Hi, I'm creating a Vizard file in which I have two people connect online and are able to chat and view each other's avatars.
I have a few questions about what can be done with networking...
The first question is, is there any way that you are able to have multiple avatars selectable by each of the players?
The second question is, is there any way to have the two players spawn up at different points?
Also, would it be possible to change an avatar's actions to somehow move whenever someone moves? For example, if I am using vcc_male and I press Up to move (I have the vizcam.FlyNavigate on), when I move forward the other person would see my avatar's legs move in the animation set for the avatar. When I stop moving forward, the other person sees my avatar resume the "standing", regular animation. Is that possible?
That's about all I can think of for now... hope they made sense because what I'm trying to say might not have come out right.

Last edited by TrashcanPatrol; 04-02-2009 at 02:24 PM.
Reply With Quote
  #2  
Old 04-02-2009, 02:57 PM
TrashcanPatrol TrashcanPatrol is offline
Member
 
Join Date: Aug 2008
Posts: 43
One more thing, is there any way I can have the inbox and outbox text use word wrap so it does not go through the screen and become unviewable? I'm basing the model for this file off of the Duck network chat tutorial, if that makes it easier...
Reply With Quote
  #3  
Old 04-03-2009, 01:40 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
If you want the user to choose from one of several avatars once that user chooses their avatar send that data over and then the other user can load the appropriate avatar.

There are probably a few ways to solve your second question. One easy way might be to use a timer and if the avatar has not changed position for a certain length of time change the animation

This will move the text down to the next lext after if has reached 10 characters

Code:
if len(draft_text) == 10:
        draft_text += '\n '
Reply With Quote
  #4  
Old 05-05-2009, 02:07 PM
TrashcanPatrol TrashcanPatrol is offline
Member
 
Join Date: Aug 2008
Posts: 43
Quote:
Originally Posted by Jeff View Post
If you want the user to choose from one of several avatars once that user chooses their avatar send that data over and then the other user can load the appropriate avatar.

There are probably a few ways to solve your second question. One easy way might be to use a timer and if the avatar has not changed position for a certain length of time change the animation

This will move the text down to the next lext after if has reached 10 characters

Code:
if len(draft_text) == 10:
        draft_text += '\n '
This does work, but it moves the text down only once- if you type a long message, it will push it down once but the next time you reach the 10th character it lets it go... is there anything I can do to fix that?
Reply With Quote
  #5  
Old 05-06-2009, 02:07 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
This will add a newline for every ten characters you type. Add 11 each time because one is the newline.
Code:
if len(draft_text) in (10,21,32):
        draft_text += '\n'
change the draft_text variable to be an empty string
Code:
draft_text = ''
when it's created and everything should line up
Reply With Quote
  #6  
Old 05-07-2009, 01:46 PM
TrashcanPatrol TrashcanPatrol is offline
Member
 
Join Date: Aug 2008
Posts: 43
Quote:
Originally Posted by Jeff View Post
This will add a newline for every ten characters you type. Add 11 each time because one is the newline.
Code:
if len(draft_text) in (10,21,32):
        draft_text += '\n'
change the draft_text variable to be an empty string
Code:
draft_text = ''
when it's created and everything should line up
That does work, thanks.
Where would I find more information and options about the text like that? I've gone through the Vizard tutorials but I don't seem to remember that at all... and I don't want to have to trouble you guys every time I have a question about it
Reply With Quote
Reply

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
3 Easy Questions JMOwens Vizard 3 10-03-2007 12:10 PM
networking nickyee Vizard 1 09-18-2006 04:53 PM
General Questions about Vizard: World Viz dav Vizard 5 08-28-2006 03:44 PM
active avatar functions while networking crazyrusso Vizard 1 11-18-2004 01:08 PM
networking hotspur1 Vizard 3 08-25-2003 10:07 AM


All times are GMT -7. The time now is 01:20 PM.


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