bnvm
11-04-2010, 09:59 PM
I am trying to get uvw coordinates from particle flow using the sdk. I'm only interested in getting the coords assigned with the mapping / mapping object operators at this point. Here is what I have so far, the problem is the "chan" variable is always NULL :banghead: . There is little to no information out there and I am really stuck. Any help would be great, thanks.
IPFSystem* psystem = PFSystemInterface(node);
psystem->SetRenderState(true);
ObjectState os = node->EvalWorldState(time);
IParticleObjectExt* part;
part = GetParticleObjectExtInterface(os.obj);
part->UpdateParticles(node, time);
IParticleGroup* group = ParticleGroupInterface(part->GetParticleGroup(particleindex));
IObject* cont = group->GetParticleContainer();
IParticleChannelMeshMapR* chan = GetParticleChannelMeshMapRInterface(cont);
-bnvm
IPFSystem* psystem = PFSystemInterface(node);
psystem->SetRenderState(true);
ObjectState os = node->EvalWorldState(time);
IParticleObjectExt* part;
part = GetParticleObjectExtInterface(os.obj);
part->UpdateParticles(node, time);
IParticleGroup* group = ParticleGroupInterface(part->GetParticleGroup(particleindex));
IObject* cont = group->GetParticleContainer();
IParticleChannelMeshMapR* chan = GetParticleChannelMeshMapRInterface(cont);
-bnvm
