167 questions
1
vote
0
answers
36
views
Orientation change stretches sprite briefly before scene loads in Cocos Creator 3.8.2
I’m working with Cocos Creator 3.8.2, and I’m implementing orientation changes dynamically on Android when switching scenes.
Here’s the relevant code:
director.loadScene(this.ReturnGameSceneName(), () ...
1
vote
3
answers
916
views
Building a Cocos2d-x project with android : "package org.apache.http does not exist"
I'm trying to build my cocos project to android.
At first, I ran the following command:
cocos run -s {my_project_path} -p android
And I got errors of packages and symbols that weren't found, here is ...
2
votes
1
answer
283
views
How to correctly display 3d model in Cocos3d using makehuman, blender and PVRShaman?
I have created a human model using makehuman and blender and when I used this model to display in app it looks like this
and in Blender it looks like this
and PVRShaman it looks like this
While ...
0
votes
1
answer
83
views
Set texture to colored CC3MeshNode
First I set color of material to the node:
CC3MeshNode *node = [self.modelNode getMeshNodeNamed:nodeName];
CC3Material *material = [CC3Material material];
material.color = [CCColor colorWithUIColor:[...
0
votes
1
answer
126
views
Fit and rotate two 3D mesh nodes in parallel
I'm trying to fit the human skeleton completely inside the human body then rotate both meshes, but I'm not getting the result expected. I need your help.
The human integument 3D model was obtained ...
0
votes
1
answer
148
views
How do I add a 2D sprite animation to a cocos3D scene?
I have an app with a cocos3d scene in which I have a 3D animated model. I want to add some effects to the scene and I was thinking of using planes textured with a sprite animation.
I've been able to ...
0
votes
1
answer
473
views
clang Error adding Pods to existing Cocos3D project
I'm getting the following error after added pods to existing Cocos3D helloWorld project:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Here are the steps performed:
...
0
votes
0
answers
90
views
How to create cube with rounded corners in cocos3d
I tried to create a cube in Blender and add Bevel modifier(4 segments and width==0.15). Then exported it in pod file. I have got 600 vertices after loading object from POD file in cocos3D. When i ...
1
vote
2
answers
431
views
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 ...
0
votes
0
answers
67
views
Can't change screen orientation for the scene in cocos3d
I have a view controller in which I show some cocos3d content. In my appDelegate:
+(CC3DeviceCameraOverlayUIViewController *)panoramaHostController {
static CC3DeviceCameraOverlayUIViewController *...
1
vote
1
answer
36
views
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 ...
0
votes
0
answers
53
views
Cocos3D: MeshNode not getting added to scene
I'm trying to add mesh nodes from 2 different pod files to my scene. First node('austenNode') is getting added but not the other three( backpack_front,backpack_back and backpack_closed ) which I'm ...
0
votes
1
answer
46
views
Cocos3D remove shades
I have added a node(character) to my Cocos3D scene, as it can be seen in the image below, I am getting dark shades in the edges of the node. Is there a way to remove these shades in the edges?
0
votes
1
answer
112
views
Play audio file in Cocos3d
I'm using Blender tool to create models,I have included the animations and audio in the model and exported in POD format. Now when I run the POD file in iOS app using Cocos3d, the animation runs fine ...
0
votes
1
answer
122
views
cocos3d 3.1 on cocos2d2.x . rename layer causing crash
I follow the Harry's cocos3d tutorial.
New a helloworld template project named shapes:
It runs perfectly.
Then I rename shapesLayer : refactor->rename it to MainLayer.
The app crashes:
cocos2d: ...
0
votes
1
answer
50
views
Can't add several pod resources to the scene
I try to use Cocos3D and I need to show several 3D objects placed on the sphere in front of the camera. So, here is my code:
@interface cocos3d_testScene : CC3Scene {
CC3ResourceNode* rezNode;
...
0
votes
1
answer
332
views
Proper lighting in Cocos3D
I have a scene and a character in Cocos3D, but the background image of the scene appears much brighter than the character. There is a CC3Light in the scene in front of the character, here's how it ...
0
votes
1
answer
1k
views
How to make a simple 3d object viewer component for already build native iOS app?
Several years ago I was curious about creating some objects (spoon, ball, tv, ...) in 3d modeling program, export the textures, and then have a screen in iOS app, that can open one object at a time ...
0
votes
1
answer
95
views
Change texture of POD object
Ive just gotten started with cocos3d and I'm making a basic card game. I've already got the model with textures, but I don't know how to specify what texture to use for a given object, or node. I've ...
0
votes
1
answer
803
views
Loading HDRi maps in Cocos3D
I want to load an HDRi map (similar to Google Maps) in an iPhone application, and then I want to be able to load some 3D characters to play around in the scene.
You can see here an example of what I ...
1
vote
1
answer
111
views
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 = [...
0
votes
1
answer
1k
views
Cocos3d on Android
I have developped an application that uses Cocos3D on iPhone. Now I want to develop the same application on android using Cocos3D. Can anyone help me on how to install and use Cocos3D on android?
...
4
votes
1
answer
564
views
Add Cocos3D to existing XCode/iOS project
So I've recently successfully installed Cocos3D on my computer and I am able to create new "iOS" projects in xCode using the Cocos3D starter template. However, I currently don't need to start a new ...
0
votes
1
answer
561
views
CC3Node rotation - Cocos3d
I am developing an iPhone application that uses Cocos3d. I have drawn a scene in the XZ plane ( y = 0 ). Now, I want to rotate the scene around a specified point in the XZ plane, whenever the user ...
0
votes
0
answers
73
views
Loading POD second time loses textures
I assembled an app based on some of the example cocos3d code, and everything seems to work fine, except when I remove a node loaded from a POD file, and load it again. In this case the model appears ...