Welcome to MSDN Blogs Sign in | Join | Help

Nerd Herder

Dean Johnson’s blog about life on the XNA platform and tools team

Syndication

What to do while an avatar loads?

When you create a new AvatarRenderer object load all of the models and textures associated with the AvatarDescription have to be loaded. The time it takes to load goes up if you are creating a number of AvatarRenderer objects at the same time.

So what do developers need to do while the avatar loads?

In most cases nothing! Just call the avatar draw method as if the avatar was already loaded. By default we will draw a loading effect in place of the avatar while it loads. Once the avatar has completed loading the loading effect will fade out to reveal the avatar.

If you want to determine if the avatar has loaded fully you can use the AvatarRenderer.IsLoaded property.

If you don’t want to use the loading effect you can use the AvatarRenderer constructor overload below.

AvatarRenderer(AvatarDescription avatarDescription, bool useLoadingEffect);

So what does this loading effect look like? The loading effect is made up of a number of transparent quads that display an animating texture.

clip_image001

Published Monday, May 11, 2009 7:08 PM by dejohn

Filed under: ,

Comments

# Anith » What to do while an avatar loads? @ Monday, May 11, 2009 2:24 PM

PingBack from http://www.anith.com/?p=36754

Anith » What to do while an avatar loads?

# re: What to do while an avatar loads? @ Tuesday, May 12, 2009 10:15 AM

So I guess the XNA team have been watching the new Star Trek Film then.

Beam in my Avatar please :-)

Darks1de

# Links to introductory information about XNA Game Studio 3.1 Avatar APIs @ Tuesday, May 12, 2009 7:26 PM

My colleague Dean Johnson has posted a couple of items on his blog that I wanted to link to here to help

Aaron Stebner's WebLog

# re: What to do while an avatar loads? @ Tuesday, July 21, 2009 5:58 AM

Introducing such a topic you'd like to congratulate you've let us know. Have good work..

reklam ajansı

# re: What to do while an avatar loads? @ Tuesday, July 21, 2009 4:10 PM

This is very good news was well informed that the followers of the issue I am. Thanks...

bayrak

Anonymous comments are disabled
Page view tracker