ios - How do I add a 2D sprite animation to a cocos3D scene? -


I have a Cocos 3D scene in which I have a 3D animated model. I want to add some effects to this scene and I was thinking of using the planes made with a phantom animation.

I can add a complete phantom image to the scene correctly, but this is not, of course, what I want to do.

  CC3PlaneNode * sprite = [CC3PlaneNode nodeVithname: @ "Sprite"]; [Spettle populateAsacentangleXSYS: CGSizeMake (10, 10) and relative engine: CGPXMake (0, 0)]; Sprite.location = cc3v (-0.5, -1, -5); CCTexture * tex2d = [cctic graphic ShareTextKacAdd Images: @ "Equalcozer Page"]; CC3 piece * Texa 3D = [CC2 piece cecity with texture: Tech 2D]; Tex3d.name = @ "Equalizertextfile"; [Cc3factures etactation: tech 3d]; Sprite.texture = tex3d; [Add soul to child: phantom];  

I have noticed that there is a CCSprite class related to what I want to do, but it is incredibly difficult to learn how to use it, mainly Since I have a Cocos 3D scene, Cocos is not 2D.

You can embed 2D by using a CC3Billboard In 3D Cocos 3D view> CocosDaddy node (including a CCSprite )

CC3Billboard is a 3D Cocos 3D node that can contain 2D cocosdaddy node.

CC3DemoMashUp Cocos 3D in the Demo app in a distribution to embed 2D nodes in a 3D (also a 2D particle system) There are several examples of using the CC3Billboard view.


Comments