Questions tagged [cocos3d]

3D rendering extension for cocos2d-iphone, written in Objective-C.

Cocos3d is a 3D rendering extension to cocos2d-iphone, written in Objective-C. It is not a standalone renderer.

Cocos3d adds to cocos2d-iphone a full 3D modelling space, including 3D mesh models, perspective projection cameras, materials, and lighting. With cocos3d 3D models exported from 3D editors such as Blender, 3D Studio Max or Cheetah3D can be used. 3D models can also be created dynamically with Objective-C code. Users can interact with 3D objects through touch events.

This is the official cocos3d web page.

166 questions
1
vote
1 answer

Cocos3D: Invoke delegate method from CC3Scene

In Cocos3D, how do invoke a callback from custom CC3Scene onto the UIViewController? I'm following the CC3DemoMultiScene-iOS demo and here's what I've done. Files of interest: CustomCC3Layer.h, CustomCC3Scene.h, MainViewController.m,…
Loc Pham
  • 619
  • 1
  • 6
  • 18
1
vote
2 answers

Can't show the scene second time in Cocos3D

I have a viewController with cocos scene which I push in my navigation controller. In this view controller I have this methods: -(void) viewDidLoad { [super viewDidLoad]; [_cc3FrameView addSubview: [self createGLView]]; …
ShurupuS
  • 2,923
  • 2
  • 24
  • 44
1
vote
1 answer

Cocos3D - Texture not displayed

I'm facing hard times trying to get the texture to work in Cocos3D. Here's what I've done. STEP 1: Via MakeHuman, I created a male model with materials that includes jeans, hair and Tshirt. STEP 2: I exported the Blender Exchange Tarzen.mhx file…
Loc Pham
  • 619
  • 1
  • 6
  • 18
1
vote
1 answer

How do I create a new cocos3D project for iPad using xcode?

I installed Cocos 2D (Sprite builder version 1.3.5) and then Cocos 3D (version 2.0.1). I can´t create Cocos 3D projects. after installing cocos3D I can see only 'cocos3D static library' template in xcode (as in this screenshot) but not Cocos3D…
Ravi Kiran
  • 691
  • 3
  • 9
  • 22
1
vote
1 answer

CCGLView flicker issue

I have a CCGLView in my viewController, after completing the animations I'm trying to replace scene in the CCGLView with an empty scene. The issue is that while replacing the scene there is a flicker which I can observe. I want to avoid it, I'm…
Chengappa C D
  • 1,841
  • 1
  • 12
  • 19
1
vote
1 answer

Cocos3d : Set CC3Scene backdrop to transparent

In one of the ViewController of my app I have added a CCGLView, on top of which I'm adding CC3Layer to show the model and animate it. I want the background of the CCGLView to be transparent, but I'm unable to set the backdrop color of CC3Scene to…
Chengappa C D
  • 1,841
  • 1
  • 12
  • 19
1
vote
1 answer

Material texture with alpha channel in Cocos3D

I have a mesh (plane with some modifiers) with a material assigned to it in Blender, and the texture of the material uses a semi-transparent PNG image. When exporting to POD file, the mesh still looks semi-transparent in PVRShaman as it does in…
Andrei Marincas
  • 446
  • 5
  • 13
1
vote
1 answer

How to run reversed animation with Cocos3D?

I use below code to run the animation, but how to reversed the animation? (For example, a door model has an open animation, but I want to make it close) CC3ResourceNode* rezNode = [CC3PODResourceNode nodeFromFile: @"bd1hW1368.POD"]; [self…
ZYiOS
  • 5,204
  • 3
  • 39
  • 45
1
vote
1 answer

Importing .3ds/.obj/.max/etc files into a Cocos3D project

Is it necessary to convert all of the above file formats into .pod before including them into Cocos3D? It seems like that used to be the case based on what I've been reading but most of those posts are from several years ago and so I am wondering if…
user1855952
  • 1,515
  • 5
  • 26
  • 55
1
vote
1 answer

Cocos3d: how to stop the running scene and unload resources

I am developing a Cocos3d based iOS project. I am running a scene once the app is launched and clicked on "Start scene" option. I have a Back button in the scene. Clicking on this Back, will take us to app home screen. Clicking on again "Start…
Stella
  • 1,728
  • 5
  • 41
  • 95
1
vote
1 answer

Embeding cocos3d in storyboard or xib

I'm trying to make an iOS app with some 3D. My problem is the cocos3d hello world is fullscreen. So, I try to put the cocos3d into a window into a xib by following this tutorial for cocos2d, but it dont work for cocos3D (for me). Anyone can help me…
Jordan
  • 3,776
  • 3
  • 22
  • 28
1
vote
2 answers

Cocos3D - 'May not respond' warning on dot notation

I am using Cocos3D and this function give me a 'may not respond' warning: [CClayer.CC3scene someFunctionFromCC3scene]; I know one way to resolve this is to have a Function in CCLayer to make CC3scene call someFunctionFromCC3scene. But is there any…
sooon
  • 4,718
  • 8
  • 63
  • 116
1
vote
0 answers

Bulllet physics engine on seperate thread to Improve performance/frame rate with Cocos3D

I am making an awesome game using Cocos3D. Right now i am just trying to improve performance, and i was hoping anyone out here has some good answers. My main idea improve performance is to put the physics calculations done by Bullet Physics Engine…
1
vote
2 answers

Can I have an acces to parts of a .pod file?

I'm new in Cocos3D and I have two questions concerning the parts of the 3D model. As I understood, a .POD file consits of several parts. In my example, I have a 3D Car, which has the parts: - wheel - tire - class (etc.) and these parts have…
tralala
  • 163
  • 2
  • 16
1
vote
1 answer

i want to setup cocos3d with uikit (nib or storyboard) but i am getting error

i am trying to call cocos3d animation on my view controller when i call the animation from my view controller then i am getting error. " cocos2d: Using Director Type:CCDirectorTimer [ERROR] cocos23Layer requires a controller for rendering a 3D…
Harsh Thakur
  • 293
  • 2
  • 11