2

I have developed a 3d ground, a plane node, using Blender 2.66. I added the pod file with the texture image in resources folder.But when i run, can't find the object it self !!!

I can find it works nice when i render in blender. Then why does this happen ??

I checked some similar questions, but can't find a satisfying answer.

Here is the screenshot of ground node in PVRShareman

enter image description here Thank you

Karan Alangat
  • 2,154
  • 4
  • 25
  • 56

1 Answers1

3

You can use programm called PVRShaman to know how you ground looks like and where is it placed.

and after that just use:

CC3PODResourceNode *node = [CC3PODResourceNode nodeFromFile: @"you_file.pod"];
[self addChild:node];

you can change it position by node.location = cc3v( 0.0, 0.0, 0.0 );

there is two problem you can have, wrong position of you camera, or wrong position in pod file, check in blender what you object placed in (0,0,0)

for example if you object in blender have position (10,0,0) to center in cocos3d you need to set object location = cc3v(-10.0,0,0);

so best way is to have object placed in (0,0,0)

p.balmasov
  • 357
  • 1
  • 16