How to correctly display 3d model in Cocos3d using makehuman, blender and PVRShaman?

270 Views Asked by At

I have created a human model using makehuman and blender and when I used this model to display in app it looks like this

enter image description here

and in Blender it looks like this

enter image description here

and PVRShaman it looks like this

enter image description here

While opening in PVRShaman it shows some error similar to this

enter image description here

and the code I am using to display this

CC3Camera* cam = [CC3Camera nodeWithName: @"Camera"];
    cam.location = cc3v( 0.0, 0.0, 50.0 );
    [self addChild: cam];
CC3Light* lamp = [CC3Light nodeWithName: @"Lamp"];
    lamp.location = cc3v( -2.0, 0.0, 0.0 );
    lamp.isDirectionalOnly = NO;
    [cam addChild: lamp];
CC3ResourceNode* rezNode = [CC3PODResourceNode nodeFromFile: @"man.pod"];
    [self addChild: rezNode];
self.opacity = kCCOpacityFull;
[self selectShaders];
[self createBoundingVolumes];
[self createGLBuffers];
    [self releaseRedundantContent];
CC3MeshNode* helloTxt = (CC3MeshNode*)[self getNodeNamed: @"man"];
    [helloTxt runAction: [CC3ActionRotateForever actionWithRotationRate: cc3v(0, 0, 20)]];

EDIT : Problem :

  1. As it appear why model is not looking as it is looking in blender after render in simulator(texture and skull ?

  2. Why Model has no texture detail in blender without rendering it ?

  3. Why there is an error file not found in PVRShaman ?

1

There are 1 best solutions below

2
Bill Hollings On

You should also be seeing similar error messages in the Xcode logs indicating that the textures can't be loaded. POD files do not contain textures. You need to export them separately from Blender and add them to your project Resources. Once you do so, they will be loaded automatically by Cocos3D when you load the POD.