I really need your help, I'm creating my first 3d game on iphone ; it's a first person based camera system. and I'm simply stumped on how to deal with Cocos3d camera I read the documentation and programming guide and checked the demos, but the joystick in the demo is not really what I have in mind. I want something simple where I can press a button to move forward , tilt the device to rotate the camera right and left ; this kind of thing. I already implemented the concept on c++ and openGL before but I'm having a problem implementing this concept on cocos3d...Thanks in advance!
Also, I feel we developers should start writing tutorials to help out with cocos3d as I truly feel it doesn't have the examples and demonstration it deserves.....
It is a piece of art! I'm really glad I'm starting to go deeper into it!
1st Person Camera
(7 posts) (5 voices)-
Posted 5 months ago #
-
Controlling the
CC3Cameramanually is really about setting itslocationandrotationproperties. TheCC3DemoMashUpmanipulates these properties by reading joystick controls, but they can just as easily be manipulated with other sensor data, or buttons, as you suggest. You can even applyCCActionsto these properties as well.In the
CC3DemoMashUpWorld, theupdateCameraFromControls:method reads the joystick values and applies delta values to thelocationandrotationproperties. Thelocationproperty, in particular, is translated in the direction that the camera is pointing. This is typical of most first-person perspective games.There are also a
translateBy:/rotate...By:family of methods for simply applying a movement change, relative to the current location and orientation.Alternately, as a subclass of CC3TargettingNode, the camera can also be aimed in a particular direction using the
targetLocation,forwardDirectionandworldUpDirectionproperties.Regarding tutorials, I would love to see that happen!
Once the 0.7 release is complete (hopefully soon), I intend to launch a new site to better focus cocos3d, and I'll spend some time writing some intro documentation. However, I share your sentiments about tutorials, and I encourage developers with an interest in seeing cocos3d expand to create tutorials. We can put any tutorials on that site as well, or if any tutorial authors would rather retain branding, I'm happy to just link from the cocos3d site to any tutorial sites.
...Bill
Posted 5 months ago # -
As Bill already knows, I am currently writing up a series of tutorials for both Cocos2D and Cocos3D.
Here is a list of upcoming Cocos3D tutorials that should be ready come the New Year:
Basic Cocos3D:
Your First Scene
Materials and Shaders
Texturing
Camera Control
Understanding Parenting
Basic MovementAdvanced Cocos3D:
Advanced Camera Control
Faking realtime dynamic shadows (Bill mentioned there will be some form of shadowing in an upcoming release but this tutorial should give some extra ideas)Game Series:
Space Shooter
Car DrivingThis is only a selection of upcoming tutorials - I do have quite a number of further tutorials I am planning on writing.
Please bear with me though, it's quite hectic at the moment with the release of my app 'Ski Solitaire' but rest assured, there will be Cocos3D tutorials.Posted 5 months ago # -
Not had a proper look at Cocos3D yet however these tutorials sound like they will be a great addition.
Posted 5 months ago # -
Following on from this, are there any particular tutorials people are looking for?
Posted 5 months ago # -
@Bill Hollings, Thank you I really appreciate your feedback ever since I started this thread I've been digging deeper into the demo trying to find my desired effect. And I think I'm trying to reach something close to this. You are really helpful and dedicated and this is what makes it a product with so much potential.
@Stephen Morris, Really waiting for each and every tutorial you listed above! Please notify us as soon as you publish them! I really can't wait! Thank you for your great effort, and if you want ideas : it would also be great if you get deeper into the touching or picking up the objects, or maybe even applying forces this kind of thing would be great too!
Posted 5 months ago # -
@StephenMorris
that would be great if you got the time to do some tutorials. My suggestion would be, blender animation rig => pod => cocos3d
;-)
since that's what i'm struggling with. ;-)regards
DaxPosted 4 months ago #
Reply
You must log in to post.