holiday tomorrow friday: 4th july

4 views
Skip to first unread message

Ricardo Quesada

unread,
Jul 3, 2014, 9:50:31 PM7/3/14
to cocos2d-...@googlegroups.com, cocos3d...@googlegroups.com
Hey guys,

Tomorrow Friday is holiday in USA, so you might not get any email answer from us.
Have a good weekend!

Xiao Yang

unread,
Jul 6, 2014, 10:42:27 PM7/6/14
to Ricardo Quesada, cocos2d-...@googlegroups.com, cocos3d...@googlegroups.com
Hi all,

Sprite3D with animation3D calls setUniformLocationWith4fv every frame, and I find Sprite3DTest will crash when changing scene after switching foreground and background back and forth. However, replacing setUniformLocationWith4fv with glUniform4fv will fix the bug.  
So I think there may be bugs of freeing memory on the _hashForUniforms of GLProgram. I am downloading ndk r9d and need to check with the latest code.

Another issue is that. We have a class named Bone, but cocostudio also has a class named Bone. Does anybody has a better name for the 3D bone. It will conflict when adding to cocos2d.h otherwise.


--
You received this message because you are subscribed to the Google Groups "cocos3d-x-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocos3d-x-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Xiaoming Zhang

unread,
Jul 6, 2014, 10:45:23 PM7/6/14
to Xiao Yang, Ricardo Quesada, cocos2d-...@googlegroups.com, cocos3d...@googlegroups.com
Another issue is that. We have a class named Bone, but cocostudio also has a class named Bone. Does anybody has a better name for the 3D bone. It will conflict when adding to cocos2d.h otherwise

They are in different namespaces, so i think it is not problem.

Best Regards
Minggo



Xiao Yang

unread,
Jul 6, 2014, 11:39:33 PM7/6/14
to Xiaoming Zhang, Ricardo Quesada, cocos2d-...@googlegroups.com, cocos3d...@googlegroups.com
Hi minggo,

You are right they are in different namespaces, but ArmatureScene.cpp using both cocos2d and cocostudio namespace. Can I Change the code there.

Xiaoming Zhang

unread,
Jul 6, 2014, 11:41:13 PM7/6/14
to Xiao Yang, Ricardo Quesada, cocos2d-...@googlegroups.com, cocos3d...@googlegroups.com
Please discuss with Studio team, they maintain these codes.

Best Regards
Minggo



Xiao Yang

unread,
Jul 7, 2014, 12:09:01 AM7/7/14
to Xiaoming Zhang, Eddy Zhang, zhang...@chukong-inc.com, xie...@chukong-inc.com, Ricardo Quesada, cocos2d-...@googlegroups.com, cocos3d...@googlegroups.com

Hi xiaolong, zhangcheng and xiexin,

3D has a class named Bone that conflicts with cocostudio's.

So I can not add some 3D files to the cocos2d.h

There are two solutions for this, 

1. Change 3D bone to another name

2. As minggo suggested, they are in different namespace. However, ArmatureScene.cpp in the cpp-tests using both cocos2d and cocostudio namespace. So we should change it. But I am afraid that many user may use like this, they may complain.

So what is your idea?

Reply all
Reply to author
Forward
0 new messages