Question

I have created a Cocos3d iOS project and facing issue on texture display. My project has been kept under this link-> https://www.yousendit.com/download/UVJpWmdzTkwzMW40WjhUQw If we run this project, we can see a sample house model output, where roof shows in plain white color in the house. But, actually i have added a roof texture in blender, and converted in pod. I don't know why the roof texture display not displaying when running the code in simulator. Could please download my sample project https://www.yousendit.com/download/UVJpWmdzTkwzMW40WjhUQw and suggest me. This project source also contains the .blend, .dae, .pod files which its using.

CC3PODResourceNode* podRezNode = [CC3PODResourceNode nodeWithName: @"RobotPODRez"];
podRezNode.resource = [IntroducingPODResource resourceFromFile: @"DieCube.pod"];

// If you want to stop the robot arm from being animated, uncomment the following line.
//  [podRezNode disableAllAnimation];

podRezNode.shouldCullBackFaces = NO;
podRezNode.location = cc3v(0.0, 0.0, 0.0);
podRezNode.isTouchEnabled = YES;
[self addChild: podRezNode];
Was it helpful?

Solution

Your DAE files do not reference any textures:

TestHouse.dae:

  <library_images/>

So, you must have not exported them from Blender.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top