2012-07-12 3 views

답변

0

나는 이것이 낡은 실이라는 것을 알고 있으며 물어 보는 사람은 아마도 지금까지 그의 대답을 얻었을 것입니다. 그러나 희망이 다른 사람

도움이 될 것입니다 는

[1] http://stackoverflow.com/questions/5271197/cocos-3d-pod-file-format-for-iphone-developing [1]

0

이 어떻게 (무효) initializeScene {

CC3Camera* cam = [CC3Camera nodeWithName: @"Camera"]; 

cam.location = cc3v(0.0, 0.0, 0.6); 

[self addChild: cam]; 

CC3Light* lamp = [CC3Light nodeWithName: @"Lamp"]; 
lamp.location = cc3v(-2.0, 0.0, 0.0); 
lamp.isDirectionalOnly = NO; 
    [cam addChild: lamp]; 




CC3PODResourceNode *testBox = [CC3PODResourceNode nodeWithName:@"obj"]; 

testBox.resource = [CC3PODResource resourceFromFile: @"angry4.POD"]; 

[self addChild:testBox]; 





[testBox getNodeNamed: @"obj"].visible = YES; 


testBox.touchEnabled = YES; 

[testBox setRotation:cc3v(100, 0, 0)]; 

testBox.location = cc3v(0.0f, 0.0f, 0.0f); 

[testBox setScale:cc3v(0.5,0.5,0.5)]; 


CCActionInterval* LCLoop = [CC3Animate actionWithDuration: 4.1]; 

[testBox runAction:[CCRepeatForever actionWithAction:LCLoop]]; 

[self createGLBuffers]; 
[self selectShaderPrograms]; 
[self createBoundingVolumes]; 

LogInfo(@"The structure of this scene is: %@", [self structureDescription]); 

}`

- 나는이 코드를 ` 당신의 초기화 기능을 대체 있어요
관련 문제