From: Andrea Martini (amartini++at++cetma.brindisi.enea.it)
Date: 06/27/2003 03:06:01
Hi to all,
i have following problem : I'm realizing an application to move a Virtual
Human composed by a set of body parts like head, hip chest, hand, foot and
so on ( all these parts are loaded as obj Wavefront file ). I'm using a my
CLASS to create that, but i have two different result about pfFrame uses.
In my c++ example, i create 2 Virtual Humans (VH) that i called Uomo[0] and
Uomo[1] ( Uomo means man ). If i write following :
shared->Uomo[0]=new CLiveartVirtualHuman("VhBHV.lst",shared->gruppoUomo);
shared->Uomo[1]=new CLiveartVirtualHuman("VhBHV2.lst",shared->gruppoUomo);
pfFrame();
i get the risult showed in the file VH_OK.jpg . But, If i write pfFrame
after the first VH creation like this :
1. shared->Uomo[0]=new
CLiveartVirtualHuman("VhBHV.lst",shared->gruppoUomo);
2. pfFrame();
3. shared->Uomo[1]=new
CLiveartVirtualHuman("VhBHV2.lst",shared->gruppoUomo);
4. pfFrame();
i get , as result , what showed in VH_Not_OK.jpg . Some body parts doesn't
showed. As you see, body parts didn't load are :
Abdomen,Head, Left_collar, Right_collar, Right_Thigh,Right_Shin,Left_Thigh
and Left_Shin. If i load a new VH ( 5. and 6. ) :
1. shared->Uomo[0]=new CLiveartVirtualHuman();
2. pfFrame();
3. shared->Uomo[1]=new CLiveartVirtualHuman();
4. pfFrame();
5. shared->Uomo[2]=new CLiveartVirtualHuman();
6. pfFrame();
i 'll get the same problem, with the same parts that aren't loaded.
Someone could say : " Ok, don't write pfFrame between 1. and 3. and between
3. and 5. !!! " :)
I could agree with him, but i need to load VH dynamically in my application,
inside the loop :
while ( !shared->exitFlag) {
pfSync();
for(int j=0;j<shared->MAX_VH;j++) { // MAX_VH = Number of VH
inside the scene ;
shared->Uomo[j]->MoveMe(); // Uomo[j]->MoveMe() :
method that move VH with a specific behaviour
}
pfFrame();
handleEvents(); // Manage
key-pressed : if i press "+", i insert in the scene a new VH ( without some
// body
parts )
}
This loop , able me to animate all the VH inside the scene. But every VH
that i insert dynamically , show the problem seen with VH_Not_OK.jpg. I
tried to load not all body parts, but only Abdomen, in order to reduce the
complex of my VH ( It is important to say that all body parts are very small
. The bigger is the Hip.obj with 823 kb , others are less than 140 kb !!! ).
Could pfFrame be responsable of this problem ?
Thank Again.
I'm using Windows 2000 professional, with GeForce 3 ti 200 and OpenGl
Performer 3.02 . I have pentium 4 2.2 GHz and 1 Gb Ram.
This archive was generated by hypermail 2b29 : Fri Jun 27 2003 - 03:05:17 PDT