2d and 3d compatibility

16 views
Skip to first unread message

Xiaoming Zhang

unread,
Jul 31, 2014, 2:49:38 AM7/31/14
to cocos2d-js-devel
A developer sent a pull request to make “RotateTo” support 3d rotation https://github.com/cocos2d/cocos2d-x/pull/7631.
But i think many codes doesn’t support 3d, such as other actions.
So i think we have to make engine more compatible with 3d concept before merging this pull request.

What’s your opinion?

Best Regards
Minggo




Xiao Yang

unread,
Jul 31, 2014, 3:15:47 AM7/31/14
to Xiaoming Zhang, cocos2d-js-devel
I agree. We should do much work to make it more compatible with 3d.

Take the SetPosition3D for example, it does not set the _transformDirty to true if only change the z. 


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

Hao Wu

unread,
Jul 31, 2014, 3:44:51 AM7/31/14
to Xiao Yang, Xiaoming Zhang, cocos2d-js-devel
Then thats a bug, we need to fix

but for 3d rotation, we don't need to make it complex

remember our target user, which is 2d user, 2.5d user, we should not adding lots of 3d concepts such as Euler, Quaternion, it is scary for them. lets just keep it simple and consistent for now, if you really want to do proper 3d rotation, use "setAdditionalTransform"

Ricardo Quesada

unread,
Aug 21, 2014, 6:16:15 PM8/21/14
to Hao Wu, Xiao Yang, Xiaoming Zhang, cocos2d-js-devel
agreed with Hao.
If there is a bug, let's fix it.
But in the meantime, we should keep the API simple to use. We are not a full 3d engine now.
Reply all
Reply to author
Forward
0 new messages