Nerd Herder

Dean Johnson blogs about life on the XNA platform and tools team

What to do while an avatar loads?

What to do while an avatar loads?

Rate This
  • Comments 6

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

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

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

    Beam in my Avatar please :-)

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

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

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

  • Very useful infos !

Page 1 of 1 (6 items)
Leave a Comment
  • Please add 1 and 3 and type the answer here:
  • Post
Translate This Page
Search
Archive