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

Z axis support to view an UIView

I want to place an UIView in Z axis forward from the main camera view. I have added code like below. I am trying with CATransform3DTranslate, but JAPanoView (its an uiview) doesn't display in Z axis value mentioned to be in forward to the camera…
Getsy
  • 4,887
  • 16
  • 78
  • 139
1
vote
3 answers

File in IOS bundle is not found in the simulator

I am working on an ios 6.1 application, that uses cocos3d, i have a file that is certainly in the bundle, which is 'CC3TexturableMaterial.vsh', but at a point in time when the applications needs that file, it crashes and shows the following…
Bassel Shawi
  • 604
  • 4
  • 11
  • 29
1
vote
2 answers

Multiple Object creation in Cocos3d

I am creating here 3 objects using a for loop .But touch event is only available to one object.Please find a solution for this ... for(int i=0;i<3;i++){ nodef = [CC3PODResourceNode nodeFromFile:@"cocos3dMascot.pod"]; nodef.location =…
1
vote
1 answer

Cocos3D 2.0 and Multiple CCGLViews / GLViews

I have a project that I'm working on that needs to be able to display and interact with several different models. One of these views is full screen (iPad Landscape), and the others are smaller subviews. The issues that I'm currently running across…
dannyskim
  • 165
  • 2
  • 8
1
vote
1 answer

CC3MeshNode is not affected by light in cocos3d

I have drawn a complex 3d shape using CC3MeshNode in cocos3d, but this shape is not affected (shadow and bright places depending on positioning) by the light source (lamp) that i set in the world, where if i use one of the populateAs methods to draw…
Bassel Shawi
  • 604
  • 4
  • 11
  • 29
1
vote
1 answer

How to make rotatable 3D Cube with UIView on each side

I would like to implement something like this cube menu: https://itunes.apple.com/us/app/swiss/id343038584?mt=8 I want to add UIView on each side of the cube and to rotate only by x axis. Any good example from where I can start?
Bojan
  • 147
  • 2
  • 8
1
vote
0 answers

Cocos3d:OpenGL error 0x0506 in -[EAGLView swapBuffers] and blank scene

In my cocos3d application, i have a UIViewController as rootview controller and from there i'll launch again Cocos3d scenes when use clicking on an option. Here is my code below to launch scene from this view controller. Issue is, if i open…
Getsy
  • 4,887
  • 16
  • 78
  • 139
1
vote
1 answer

Cocos3D template doesn't compile

Just you know, I'm just starting with iOs and Objective-C (3days). I'm currently making a 3D object viewer. I want to be able to load a file and display it into a view. Then the user can rotates and zooms on it. I have first build it with ninevehGL,…
Micka
  • 1,648
  • 1
  • 19
  • 34
1
vote
2 answers

How to make a cube in cocos3d

I am working on an iphone App using cocos3d and I want to render a cube CC3BoundingBox bounds = makeBounds(9.5, 5.0, 4.0, 0, 0, 0); CC3MeshNode *cube = [[CC3MeshNode alloc] init]; [cube populateAsSolidBox:bounds]; I have tried this but…
King Popsicle
  • 465
  • 5
  • 17
1
vote
0 answers

Cocos 3d crashes, it says it can't load a texture

I have to download a .pod file and a folder with the texture images. Afterwards I have to load the pod file, and I should see a nice 3D image. //podNr is the id of the pod. NSString *url2 = @"http://(MY URL FOR POD FILE); NSString *urlIm2 =…
1
vote
1 answer

Load 3d object dynamic in Cocos 3d

I am developer of iOS but new bee in Cocos, i am building an Augmented Reality App in which i want to load 3d object on run time and show them when specific marker detected. But my following Questions are about Cocoas and related to my own task,…
josh
  • 1,681
  • 4
  • 28
  • 61
1
vote
2 answers

How to not import a new POD file every time I want to create a CC3MeshNode?

In cocos3d I would like to duplicate, say a CC3MeshNode of a spinning earth coming from a .POD file (earth.pod). This is how i make 1: [self addContentFromPODFile: @"earth.pod"]; CC3MeshNode* earth = (CC3MeshNode*)[self getNodeNamed:…
Bob
  • 117
  • 2
  • 11
1
vote
1 answer

How do I move forward in the direction I am pointing in a 3d world?

I am using Cocos3D. I have a camera (which acts as the first-person viewed player in a world with only a spinning "hello, world" and a spinning earth. I have made it possible for the camera to point in any direction, and I have got it to move, but…
Bob
  • 117
  • 2
  • 11
1
vote
1 answer

How to programmatically make a cube cocos3d

CC3BoundingBox bounds = makeBounds(9.5, 5.0, 4.0, 0, 0, 0); CC3MeshNode *cube = [[CC3MeshNode alloc] init]; [cube populateAsSolidBox:bounds]; I have tried this but populateAsSolidBox: no longer exists. How can I programmatically create a simple box…
Bob
  • 117
  • 2
  • 11
1
vote
1 answer

How to install cocos3d? Something is wrong

I have done and followed many tutorials on the internet to install cocos2d, and in Terminal it said that the installation was complete/successful. But then there were no Xcode templates on cocos3d? Can someone please help :)
Bob
  • 117
  • 2
  • 11