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

Assigning to GLfloat from incompatible type void

This is driving me mad. I had to GLfloat with the next assignation in the implementation of a CCNODE class that simulates watter in side view (it comes from a Class that I found in cocos2dForum) UPDATED: -(id)initWithBounds:(CGRect)bounds…
Caferlop
  • 1
  • 1
0
votes
1 answer

Can't draw line using CC3LineNode in cocos3d

i am a newbie in cocos3d. I wan to draw a line using cc3linenode. Here is the code float arr_location[] = {x,y,z, dx,dy, dz }; CC3LineNode* lineNode = [CC3LineNode nodeWithName: @"Line test"]; [lineNode populateAsLineStripWith: 2 …
Karan Alangat
  • 2,154
  • 4
  • 25
  • 56
0
votes
1 answer

cocos3d: How can I attach shadow to pod object

How can I enable shadow effect on *.pod object? I set up camera and light but my object didn't have shadow. Can somebody explain how to resolve this?
Faraona
  • 1,685
  • 2
  • 22
  • 33
0
votes
1 answer

xcode profiler doesn't detect leaks in my app

I've never had a problem using instruments to detect leaks in my previous apps, but for some reason I can't get it to detect any leaks in my current app. I've even created some leaks just to try to get it to do something. I've tried my app as ARC…
Valerie
  • 659
  • 6
  • 14
0
votes
2 answers

Cocos3d class template missing

I have installed cocos3d 0.7.2. I have developed sample projects. When i tried to add new file to my project, i couldn't find the cocos3d file templates in the template window.I could see only the cocos2d templates. These are the screen shots, Is…
Karan Alangat
  • 2,154
  • 4
  • 25
  • 56
0
votes
1 answer

how to create menus in cocos3d

I want to create a menu in cocos3d. I failed to find correct solution for this. I tried to create one using the cocos2d concept. CCMenuItemImage *item1=[CCMenuItemImage itemFromNormalImage:@"up.png" selectedImage:@"images.jpeg" target:self…
Karan Alangat
  • 2,154
  • 4
  • 25
  • 56
0
votes
1 answer

Cocos3d: Crashing when loading scene in separate thread or background thread:

I am trying to load several big models in code and show the scenes. Generally, it is taking long time for loading and showing scene on screen as it need to extract lot of resources from a pod model. So, i thought of populate the first scene in main…
Getsy
  • 4,887
  • 16
  • 78
  • 139
0
votes
1 answer

3d object rotation issue in cocos3d

I ve created a 3d object using Blender and exported in to collada form. And converted to pod file using PVRGeoPod. I added the pod file to cocos3d project resources. Then altered the hello-world project by replacing pod name and node name.I didn't…
Karan Alangat
  • 2,154
  • 4
  • 25
  • 56
0
votes
2 answers

How to export to Collada form in Blender for cocos3d

I am using blender 2.66a to create 3dobject for Cocos3d. In THE BRENWILL tutorial they have used blender 2.4.9 to export to collada file. I cannot find those options that have mentioned in the tutorial(like Triangle,only export selection), when…
Karan Alangat
  • 2,154
  • 4
  • 25
  • 56
0
votes
1 answer

Created 3D object , but it doesn't rotate in cocos3d

I created one 3D object using Blender 2.66 and PowerVR Graphics SDK. I added the pod file and altered the hello-world project simply by replacing pod file name and node name.But the 3D object is not rotating. Is there any other changes tat i have…
John
  • 3
  • 4
0
votes
1 answer

Rotating an object on X Y axis, cocos3D

I'm using Cocos3D on iOs. I need to rotate an object using pan gesture. switch (gesture.state) { case UIGestureRecognizerStateBegan: saveState = Dobj.rotation; break; case UIGestureRecognizerStateChanged: CC3Vector…
Micka
  • 1,648
  • 1
  • 19
  • 34
0
votes
1 answer

How to set the origin axis on a CC3Camera, or a CC3MeshNode

So I'm using Cocos3D in Obj-C. Since my initial question doesn't seems to be clear enough to get any answers i write it again. I'm making a 3D viewer, with this i want to be able to drag my finger on the screen and make my object(Dobj) rotates on…
Micka
  • 1,648
  • 1
  • 19
  • 34
0
votes
1 answer

Cocos3d: Texture not displaying

I have created a Cocos3d iOS project and facing issue on texture display. My project has been kept under this link-> https://www.yousendit.com/download/UVJpWmdzTkwzMW40WjhUQw If we run this project, we can see a sample house model output, where roof…
Getsy
  • 4,887
  • 16
  • 78
  • 139
0
votes
1 answer

Set a CC3Node's position at the location of a touch

I want to add a CC3Node on a tap. However, the code I'm using produces a strange thing. My object is placed accordingly to the touch location, but on the third quadrant (such that my screen would be divided in 4) Here's an example of the problem:…
Etienne Noël
  • 5,988
  • 6
  • 48
  • 75
0
votes
1 answer

Incompatible pointer types sending 'CC3MeshNode *' to parameter of type 'CCNode *'

i am new to the cocos2d/3d ,i want to draw cylinder but for understanding the functionality i am trying to Load a meshnode of a triangle in cocos3d with help of this link, but i am getting warning Incompatible pointer types sending 'CC3MeshNode *'…
Dattatray Deokar
  • 1,923
  • 2
  • 21
  • 31