Game Development Community

Create an Mirror in Avatar system

by Nabarro · in Torque Game Engine · 12/09/2007 (4:38 am) · 6 replies

Hello, eveybody,

Currently, we've made one avatar customization system for our project(based on TGE1.5.2). The avatar view is using GuiPlayerView class. And now we want to add one mirror in the avatar system, so that it will vividly simulate one "real" person make up hersilf before the mirror.

The feature is very important to our avatar system. Who has done such project before and how to implement it?

We have thought about adding one InteriorInstance instance of mirror in the GuiPlayerView class, but we don't know how to do the rendering process.

Anyone has any ideas? We will very bevappreciated for any suggestion.

Thanks,

#1
12/09/2007 (8:07 am)
What I would do in this instance is load a mission that has a room where the avatar creation is taking place. That misison would be a simple room with the mirror you need. Create a camera node where you need it to be and point it towards the avatar and the mirror (see the demo tutorial scripts for camera nodes).
#2
12/09/2007 (6:43 pm)
Hi, David,
Thank you very much.

I'm using GuiPlayerView object to for avatar rendering, which means I've implemented one GuiPlayerView instance in the script, and set model/animation with the instance handle so that the avatar can be seen in the GuiPlayerView area. And the avatar system can be triggered anytime during the game.
So, how to load a mission again for the avatar system?

I'm very interested with your implementation, do you have any specific tutorial scripts or code snippet example?

Thanks a lot,
#3
12/10/2007 (6:30 am)
I haven't done it. I was just thinking that it would be an easier way to do it. Create a mission without a terrain or anything. Just a room where you're doing the avatar creation and the camera. Then, as the changes are being made, update the avatar in the mission.

But that's just me thinking out loud since you needed a mirror object (which has to be a DIF) relative to the avatar's position.

I don't have an implementation of it.
#4
12/11/2007 (6:03 pm)
I will think about it carefully, thanks,
#5
12/11/2007 (6:20 pm)
Well one option is to have a armature that acts like another camera that sends data to the GUI and implements it on the screen.
#6
12/13/2007 (5:37 pm)
Hi, Tyler,

Could you explain it in more detail? sorry,

Are there any code snippets for reference?

Thanks,