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
0
votes
1 answer

Call extension method in Cocos3D

I am new in Objective C, I am trying to create some 3d models using Cocos3d I found this documentation: /** * This CC3Mesh extension adds a number of methods for populating the mesh of * a mesh programatically to create various parametric shapes…
axy108
  • 537
  • 2
  • 4
  • 14
0
votes
1 answer

Get Texture location from CC3Vector node location

I have a loaded POD file with one node. I calculated the correct surface position from touch with the unproject method. Now i want to draw on the texture (stored in Framebuffer) with the readColorContentFrom method. Ho do I get the pixel location…
Philsen
  • 45
  • 1
  • 5
0
votes
1 answer

How is this done in 3 dimensions instead of 2d?

I would like to know how to move an object from pointA towards pointB by a small distance. I know how it's done in 2d, but 3d is definitely a little different. Here is some code of how i do it in 2D. Vector pointA = ccp(1,1); Vector pointB =…
zamfir
  • 161
  • 7
0
votes
1 answer

Sprite flickering behind 3d Content, cocos3d

In the Cocos3d app that I´m working on, I have several sprites added into the CC3Layer. This sprites are rendered behind the 3d content, and each time I touch the screen, the 2d content flickers. I´ve tried turnning on the prorpety on the CC3Scene ,…
Caferlop
  • 1
  • 1
0
votes
1 answer

iOS Cocos3D adding .pod files outside initializeScene method

@All Hello, I am trying to add and display .pod files outside initializeScene method. I can add them and display them properly inside initializeScene method but i need to show some of the .pod files dynamically after initializing scene. I checked…
Mann
  • 5,477
  • 6
  • 45
  • 57
0
votes
1 answer

CC3node – touch not detected when Node is too small

I developed a cocos3d application, and I have several Node in my scene. The size of my nodes is small (10px max.). So, it is very difficult to detect a key pressed on the nodes when the camera is too far. Can we enlarge the detection area on a…
Web Dream
  • 69
  • 11
0
votes
2 answers

EAGLView with transparent background?

How should I make a cocos3D scene transparent (EAGLView with transparent background)? I know this gonna be a repeated question. BUT I’ve tried all suggestions from various sources, but non of them worked for me. Just listing them up here as a…
smartsanja
  • 4,413
  • 9
  • 58
  • 106
0
votes
1 answer

What good Open GL abstractions in objective-c are there?

I have been looking around for a while now, trying to find some easier 3D framework for iOS. Cocos3D looks cool to work with in iOS, but I seems quite beta(?) and the documentation provided seems not enough to understand how to work with it. So I…
David Karlsson
  • 9,396
  • 9
  • 58
  • 103
0
votes
1 answer

Load Cocos3D Scene on a UIViewController

I want to load a Cocos3D Scene inside a UIViewController. Currently I have integrate Cocos3D in to my normal iOS project. How can I load Cocos3D scene on to RootViewController's view. I found a way of using EAGLView. But I do not have a clue about…
smartsanja
  • 4,413
  • 9
  • 58
  • 106
0
votes
0 answers

Cocos3D integration in UIViewController crashing

Hi I am trying to integrate Cocos3D into my current project. I can successfully run it when i set UIViewControllerCOCOS containing Cocos3D code (Listed below) in App Delegate as root of UINavigationController. But if i use some other…
Mann
  • 5,477
  • 6
  • 45
  • 57
0
votes
0 answers

compiling cocos3d 0.7.2 with Xcode5 error

I tried to compile my cocos3d 0.7.2 project with xcode5. I am already stuck at the first error I get with the line “super.parent = aNode;” in CC3ParametricMeshNodes.m. this line is in the setParent function: -(void) setParent: (CC3Node*) aNode…
jimmy
  • 149
  • 1
  • 6
0
votes
1 answer

Reset color of Node in Cocos3d

I'm using Cocos3d to show a 3D Model. When I click on a node, I change the color of it. Now I want to reset the color at the second click to the original texture (not only simple color, but patterns etc.). How can I do this? (My problem is resetting…
tralala
  • 163
  • 2
  • 16
0
votes
2 answers

Stop in front of obstacles in Cocos3d

I already know how to check for collisions with the doesintersectNode-method in Cocos3d, but in my case, I want to avoid obstacles, before I get in touch with them. In example, I want to stop in front of a wall, before I crash against it. For this…
jraufeisen
  • 3,005
  • 7
  • 27
  • 43
0
votes
2 answers

UIKit with 3D Viewer iOS

I would like to import a 3D model into an iOS application for a single UIViewController. The view will need to be rotated and zoomed. I am currently using storyboards and ARC. I've looked the available libraries, but there seems to be a lot of…
Clay
  • 635
  • 6
  • 19
0
votes
1 answer

Property 'sharedFileUtils' not found on object of type 'CCFileUtils'

I'm just getting started running Cocos3d and right out of the box trying to run the demo file I'm getting a compile error. Here's the error in the…
cchapman
  • 3,269
  • 10
  • 50
  • 68