Skip to content

cnsuhao/deprecated-3d-engine-prototype

 
 

Repository files navigation

Chukong's 3D Game Engine

As you can see here, we have created a 3D engine for mobile games, called it cocos3d-x. But sooner we realise that we shouldn't have 2 product lines: cocos2d-x and cocos3d-x. The correct way is merge them into only one engine. So you can ust it to create 2D games, 2.5D games and 3D games, or 3D games with 2D UI widgets.

We're doing this, merging 3D features from this repository into github.com/cocos2d/cocos2d-x repo, so we will eventually have one engine for both 2D and 3D games.

Supported Platforms

  • iOS
  • Android
  • Windows Desktop
  • Mac OS X

Main features

  • Math : vector,matrix,quaternion
  • Mesh
    • general mesh
    • morph mesh
    • batch mesh
  • Material
  • Model
    • skinmodel
    • skinlessmodel
    • batchmodel
  • Texture
    • 2D texture
    • 3D texture
  • FileSystem
    • filestream
    • memorystream
  • ResourceManager
    • resource
    • resourepool
    • resourcemanager
  • Scene items
    • camera
    • light
    • dynamic sprite
    • static sprite
  • ParticleSystem
    • emitter
    • render
    • affect
  • PostEffect
  • Geo :box,plane,ray...
  • shader lib
    • texture : texture only
    • diffuse : texture + diffuse light
    • specular : texture + diffuse light + specular light
    • bumpdiffuse : texture + diffuse light + bump
    • bumpspecular : texture + diffuse light + specular light + bump
    • ......

Create project

* Download the code from cocos3d download site or https://github.com/cocos2d/cocos3d-x
* Enter `tools/project-creator`
* Run the `create_project.py` script

Example:
   $ cd cocos3d-x/tools/project-creator
   $ python ./create_project.py -project helloworld -package com.company.helloworld
   $ cd /projects/helloworld

Build and Run project

for android

    Requirements : Windows 7+ , android sdk 2.3+ , android ndk r8b+
    
    Build : 
    $ cd cocos3d-x/projects/helloworld
    $ cd proj.android
    $ sh ./build_native.sh
    
    Run:
    * Import helloworld Android project using Eclipse(released with Android SDK). 
    * The path to be imported is `cocos3d-x/projects/helloworld/proj.android`.


for ios
    Requirements : Mac OS X 10.7+, Xcode 4.6+

    Build :
    * Enter *proj.ios* folder
    * open *helloworld.xcodeproj*
    * Select ios targets in scheme toolbar , build
    
    Run :
    * Enter *proj.ios* folder
    * open *helloworld.xcodeproj*
    * Select ios targets in scheme toolbar , run


for win32
    Requirements : Windows 7+, VS 2010+
    
    Build :
    * enter *cocos3d* folder
    * open the `cocos3d-win32.vc2010.sln`
    * build
    
    Run :
    * Enter *cocos3d* folder
    * open the `cocos3d-win32.vc2010.sln` by vs2010
    * select the *helloworld*
    * run

Contact us

  • Forum:
  • Twitter:
  • Weibo:
  • QQ Group:194861571

some useful web resource about 3d

About

Just a prototype. Please use latest cocos2d-x version for official 3D features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 77.8%
  • GLSL 17.0%
  • C 2.2%
  • Objective-C++ 1.3%
  • Objective-C 0.5%
  • Python 0.5%
  • Other 0.7%