Cocos Creator v2.1.0 3D 公测版发布帖(1127 新增 rc.7)

rotateTo和rotateBy

this._startAngle.set(target.eulerAngles);//eulerAngles.z只有[-90,90]

会导致startAngle跟节点当前的angle不一致,任意节点执行这个action都能复现。

    this.turtleNode.runAction(cc.sequence(
        cc.rotateTo(1, 60),
        cc.rotateTo(1, 120),
        cc.rotateTo(1, 180),
        cc.rotateTo(1, 240),
        cc.rotateTo(1, 300),
        cc.rotateTo(1, 360)
    ));

这也是个问题吧

1、场景无法重命名

在编辑器外修改名字只能这样。

2、socket.io修复了2.0.5的广播第一次无效的情况,但有一点就是如果nodejs返回的是json格式,web下无需解析,原生下需要解析:

        socket.on('masrterbroadcasted', function(data){
            if(cc.sys.isNative) {
                data = JSON.parse(data);
            }
           ……
        });

3、还有就是莫名其妙就报一些错误,然后场景也无法保存了

4、编译default和link的Android均出现异常,同样的环境,2.0.5是可以正常编译的:

[armeabi-v7a] Compile++ arm : cocos2djs_shared <= AppDelegate.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_module_register.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ZipUtils.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ccUTF8.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ccUtils.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= etc1.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= pvr.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCLog.cpp
In file included from /Users/im/ts21/build/jsb-default/frameworks/cocos2d-x/cocos/base/ZipUtils.cpp:34:
In file included from /Users/im/ts21/build/jsb-default/frameworks/cocos2d-x/cocos/base/ZipUtils.h:31:
In file included from /Users/im/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/string:440:
/Users/im/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/cstdio:137:9: error: no member named ‘fgetpos’ in the global namespace
using ::fgetpos;
~~^
/Users/im/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/cstdio:139:9: error: no member named ‘fsetpos’ in the global namespace
using ::fsetpos;
~~^
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCScheduler.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= csscolorparser.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCGLUtils.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCRenderTexture.cpp
/Users/im/ts21/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCGLUtils.cpp:86:66: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
if(activeTextureUnit < MAX_TEXTURE_UNIT && activeTextureUnit >= 0)
~~~~~~~~~~~~~~~~~ ^ ~
/Users/im/ts21/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCGLUtils.cpp:382:40: error: use of undeclared identifier ‘malloc’
__premultiplyTable = (GLubyte*)malloc(256*256);
^
1 warning and 1 error generated.
make: *** [/Users/im/ts21/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/cocos2dx_static/base/CCGLUtils.o] Error 1
make: *** Waiting for unfinished jobs…
2 errors generated.
make: *** [/Users/im/ts21/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/cocos2dx_static/base/ZipUtils.o] Error 1
:hello_world:externalNativeBuildRelease FAILED
:hello_world:externalNativeBuildRelease (Thread[Task worker for ‘:’ Thread 3,5,main]) completed. Took 2.741 secs.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:hello_world:externalNativeBuildRelease’.

Build command failed.
Error while executing process /Users/im/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/im/ts21/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/jni/Android.mk NDK_APPLICATION_MK=/Users/im/ts21/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=0 APP_PLATFORM=android-16 NDK_OUT=/Users/im/ts21/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=/Users/im/ts21/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/lib NDK_TOOLCHAIN_VERSION=clang NDK_MODULE_PATH=/Users/lyx/ts21/build/jsb-default/frameworks/cocos2d-x:/Users/im/ts21/build/jsb-default/frameworks/cocos2d-x/cocos:/Users/im/ts21/build/jsb-default/frameworks/cocos2d-x/external -j8 NDK_DEBUG=0 /Users/im/ts21/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/libcocos2djs.so}
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= AppDelegate.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_module_register.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ZipUtils.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ccUTF8.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= ccUtils.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= etc1.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= pvr.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCLog.cpp
In file included from /Users/im/ts21/build/jsb-default/frameworks/cocos2d-x/cocos/base/ZipUtils.cpp:34:
In file included from /Users/im/ts21/build/jsb-default/frameworks/cocos2d-x/cocos/base/ZipUtils.h:31:
In file included from /Users/im/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/string:440:
/Users/im/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/cstdio:137:9: error: no member named ‘fgetpos’ in the global namespace
using ::fgetpos;
~~^
/Users/im/Library/Android/sdk/ndk-bundle/sources/cxx-stl/llvm-libc++/include/cstdio:139:9: error: no member named ‘fsetpos’ in the global namespace
using ::fsetpos;
~~^
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCScheduler.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= csscolorparser.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCGLUtils.cpp
[armeabi-v7a] Compile++ arm : cocos2dx_static <= CCRenderTexture.cpp
/Users/im/ts21/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCGLUtils.cpp:86:66: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
if(activeTextureUnit < MAX_TEXTURE_UNIT && activeTextureUnit >= 0)
~~~~~~~~~~~~~~~~~ ^ ~
/Users/im/ts21/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCGLUtils.cpp:382:40: error: use of undeclared identifier ‘malloc’
__premultiplyTable = (GLubyte*)malloc(256*256);
^
1 warning and 1 error generated.
make: *** [/Users/im/ts21/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/cocos2dx_static/base/CCGLUtils.o] Error 1
make: *** Waiting for unfinished jobs…
2 errors generated.
make: *** [/Users/im/ts21/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj/local/armeabi-v7a/objs/cocos2dx_static/base/ZipUtils.o] Error 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 10s
44 actionable tasks: 1 executed, 43 up-to-date
Error running command, return code: 1.

mac mojave环境

1赞

mark

都不知道怎么搞 culling, 缺少了这个功能 做地图真痛苦

用 quad tree 做剔除吧, 需要確保物件的座標系一致
或者等官方騰出手做auto-culling…

一般是 ndk 版本问题。build 目录是删除再构建的吗,使用的 ndk 版本是什么?

2.0.5 与 2.1 在 android 编译方式上有较大的变化,从 gcc 切 clang 了。

使用的 ndk 版本需要 r16+,工程配置也有调整。

我这边用 mac 测试了没问题喔。你那边有报错吗?

以下是GIF图片,晕,为什么只播一次。需要刷新页面再次播放,或者右键在新标签里打开查看。
无法重命名啊~

ndk是1.5的,下载最新的1.8版可以了。

2赞

有个BUG,在场景中使用FBX动画,并且开启Async Load Assets, 那么动画不会被显示。

还有一个问题,发现FBX资源导入后,会出现很多子节点,这么多个子节点,渲染性能到底怎么样?因为我目前项目的动画都是帧动画,想换成FBX模型,不知道性能会不会下降。

这么大胆,感用了

怎么不敢用?就等着正式版本了。模型渲染正是我需要的。

交流下成果

:sweat_smile:

经常就无缘无故打不开了,然后把creator关闭了,在程序坞中没看到creator,在访达的强制退出里也没看到creator的任务,但实际上项目列表窗口还在。这时候怎么都打不开项目,只有重启电脑才能打开。下图为gif,如果看不到效果,请刷新页面再观看。

补充:可能原因是在mac下,无法重命名文件,在访达中手动修改,没有把原来名字的meta文件删除掉引起的。

EditBox修改了“Enter text here…”的值,但不生效。web预览还是Enter text here…

补:关闭工程,重新打开后,发现修改了“Enter text here…”的值,又默默的变回了Enter text here…

rc6 还是不行啊。粒子不播放,关了编辑器再打开都不预览啦。。。

哎,我自己先把 paticlesystem的代码 退回 rc2 了。:sob:

rc6 chrome浏览器渲染残留问题还是没有解决啊。

用个大小一样的父节点不就解决啦。。。。