SlideShare a Scribd company logo
1 of 27
Download to read offline
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
SEMINAR
Create 3D objects inside Cocos2D-x
Name: Phùng Hoàng Bắc
Hà Nội, ngày 17 tháng 08 năm 2013
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 1 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Contents
Introduction 3D objects
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 2 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Contents
Introduction 3D objects
Create 3D objects inside Cocos2D-x
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 2 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Contents
Introduction 3D objects
Create 3D objects inside Cocos2D-x
Demo
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 2 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Contents
Introduction 3D objects
Create 3D objects inside Cocos2D-x
Demo
Conclusion
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 2 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Contents
Introduction 3D objects
Create 3D objects inside Cocos2D-x
Demo
Conclusion
References
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 2 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Contents
1 Introduction 3D objects
2 Create 3D objects inside Cocos2D-x
3 Demo
4 Conclusion
5 References
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 3 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Introduction 3D objects
Define 1. 3D objects
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 4 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Introduction 3D objects
Define 1. 3D objects
3D objects are objects that occurs on a three-axis Cartesian coordinate system.
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 4 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Introduction 3D objects
Define 1. 3D objects
3D objects are objects that occurs on a three-axis Cartesian coordinate system.
Cocos2D-x is, as you might infer from its name, a 2d gaming library. But, as it uses
OpenGL internally to draw its stuff, we might leverage it to create some 3D objects on
the mix.
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 4 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Introduction 3D objects
Define 1. 3D objects
3D objects are objects that occurs on a three-axis Cartesian coordinate system.
Cocos2D-x is, as you might infer from its name, a 2d gaming library. But, as it uses
OpenGL internally to draw its stuff, we might leverage it to create some 3D objects on
the mix.
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 4 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Contents
1 Introduction 3D objects
2 Create 3D objects inside Cocos2D-x
3 Demo
4 Conclusion
5 References
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 5 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Create 3D objects inside Cocos2D-x
Cocos2D-x use vector 2D but with C++ we can define vector 3D.
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Create 3D objects inside Cocos2D-x
Cocos2D-x use vector 2D but with C++ we can define vector 3D.
Define 2. Vector3D
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Create 3D objects inside Cocos2D-x
Cocos2D-x use vector 2D but with C++ we can define vector 3D.
Define 2. Vector3D
Typedef struct {
GLfloat x ;
GLfloat y ;
GLfloat z ;
} Vector3D ;
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Create 3D objects inside Cocos2D-x
Cocos2D-x use vector 2D but with C++ we can define vector 3D.
Define 2. Vector3D
Typedef struct {
GLfloat x ;
GLfloat y ;
GLfloat z ;
} Vector3D ;
But it has some issues like :
1 Doesn’t allow you to draw sprites on top of the boxes.
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Create 3D objects inside Cocos2D-x
Cocos2D-x use vector 2D but with C++ we can define vector 3D.
Define 2. Vector3D
Typedef struct {
GLfloat x ;
GLfloat y ;
GLfloat z ;
} Vector3D ;
But it has some issues like :
1 Doesn’t allow you to draw sprites on top of the boxes.
2 The gluLookAt call shouldn’t be inside the Box class draw method.
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Create 3D objects inside Cocos2D-x
Cocos2D-x use vector 2D but with C++ we can define vector 3D.
Define 2. Vector3D
Typedef struct {
GLfloat x ;
GLfloat y ;
GLfloat z ;
} Vector3D ;
But it has some issues like :
1 Doesn’t allow you to draw sprites on top of the boxes.
2 The gluLookAt call shouldn’t be inside the Box class draw method.
3 The color shading is hardcoded.
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Create 3D objects inside Cocos2D-x
Cocos2D-x use vector 2D but with C++ we can define vector 3D.
Define 2. Vector3D
Typedef struct {
GLfloat x ;
GLfloat y ;
GLfloat z ;
} Vector3D ;
But it has some issues like :
1 Doesn’t allow you to draw sprites on top of the boxes.
2 The gluLookAt call shouldn’t be inside the Box class draw method.
3 The color shading is hardcoded.
4 And so on, so on...
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Create 3D objects inside Cocos2D-x
Cocos2D-x use vector 2D but with C++ we can define vector 3D.
Define 2. Vector3D
Typedef struct {
GLfloat x ;
GLfloat y ;
GLfloat z ;
} Vector3D ;
But it has some issues like :
1 Doesn’t allow you to draw sprites on top of the boxes.
2 The gluLookAt call shouldn’t be inside the Box class draw method.
3 The color shading is hardcoded.
4 And so on, so on...
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Contents
1 Introduction 3D objects
2 Create 3D objects inside Cocos2D-x
3 Demo
4 Conclusion
5 References
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 7 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Demo
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 8 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Contents
1 Introduction 3D objects
2 Create 3D objects inside Cocos2D-x
3 Demo
4 Conclusion
5 References
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 9 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Although I don’t recommend using Cocos2D-x for making a complete
3D game, adding some 3D objects might bring some interesting
effects.
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 10 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Contents
1 Introduction 3D objects
2 Create 3D objects inside Cocos2D-x
3 Demo
4 Conclusion
5 References
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 11 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
References
[1] http ://build-failed.blogspot.com/2012/05/create-3d-objects-inside-cocos2d-x.html
[2] http ://jameshui.tumblr.com/post/29459200037/rendering-simple-3d-objects-and-
md2-models-with
[3] http ://www.cocos2d-x.org/news/67
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 12 / 13
Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References
Thanks for listening.
Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 13 / 13

More Related Content

Viewers also liked

Game Development with Pygame
Game Development with PygameGame Development with Pygame
Game Development with PygameFramgia Vietnam
 
Some ways to DRY in Rails
Some ways to DRY in Rails Some ways to DRY in Rails
Some ways to DRY in Rails Framgia Vietnam
 
Functional Programming With Elixir
Functional Programming With ElixirFunctional Programming With Elixir
Functional Programming With ElixirFramgia Vietnam
 
View, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - ThaiptView, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - ThaiptFramgia Vietnam
 
Build public private cloud using openstack
Build public private cloud using openstackBuild public private cloud using openstack
Build public private cloud using openstackFramgia Vietnam
 

Viewers also liked (7)

Dreamers defense
Dreamers defenseDreamers defense
Dreamers defense
 
Game Development with Pygame
Game Development with PygameGame Development with Pygame
Game Development with Pygame
 
HTML5 DRAG AND DROP
HTML5 DRAG AND DROPHTML5 DRAG AND DROP
HTML5 DRAG AND DROP
 
Some ways to DRY in Rails
Some ways to DRY in Rails Some ways to DRY in Rails
Some ways to DRY in Rails
 
Functional Programming With Elixir
Functional Programming With ElixirFunctional Programming With Elixir
Functional Programming With Elixir
 
View, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - ThaiptView, Store Procedure & Function and Trigger in MySQL - Thaipt
View, Store Procedure & Function and Trigger in MySQL - Thaipt
 
Build public private cloud using openstack
Build public private cloud using openstackBuild public private cloud using openstack
Build public private cloud using openstack
 

Similar to Create 3D objects insite Cocos2d-x

mago3D, a web based BIM/GIS integration platform on top of open source
mago3D, a web based BIM/GIS integration platform on top of open sourcemago3D, a web based BIM/GIS integration platform on top of open source
mago3D, a web based BIM/GIS integration platform on top of open sourceSANGHEE SHIN
 
Docker and Your Path to a Better Staging Environment - webinar by Gil Tayar
Docker and Your Path to a Better Staging Environment - webinar by Gil TayarDocker and Your Path to a Better Staging Environment - webinar by Gil Tayar
Docker and Your Path to a Better Staging Environment - webinar by Gil TayarApplitools
 
Automate your iOS deployment a bit
Automate your iOS deployment a bitAutomate your iOS deployment a bit
Automate your iOS deployment a bitMichał Łukasiewicz
 
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4G
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4Gmago3D: Let's integrate BIM and 3D GIS on top of FOSS4G
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4GSANGHEE SHIN
 
D3 in Jupyter : PyData NYC 2015
D3 in Jupyter : PyData NYC 2015D3 in Jupyter : PyData NYC 2015
D3 in Jupyter : PyData NYC 2015Brian Coffey
 
Multiplayer game with unity3 d and meteor
Multiplayer game with unity3 d and meteorMultiplayer game with unity3 d and meteor
Multiplayer game with unity3 d and meteorDesignveloper
 
Trident International Graphics Workshop 2014 1/5
Trident International Graphics Workshop 2014 1/5Trident International Graphics Workshop 2014 1/5
Trident International Graphics Workshop 2014 1/5Takao Wada
 
Hacking the Kinect with GAFFTA Day 1
Hacking the Kinect with GAFFTA Day 1Hacking the Kinect with GAFFTA Day 1
Hacking the Kinect with GAFFTA Day 1benDesigning
 
Morphia, Spring Data & Co.
Morphia, Spring Data & Co.Morphia, Spring Data & Co.
Morphia, Spring Data & Co.Tobias Trelle
 
Cardboard + Unity Workshop Part II
Cardboard + Unity Workshop Part IICardboard + Unity Workshop Part II
Cardboard + Unity Workshop Part IIdsd.lab
 
06 html5 and cocos2d-x
06   html5 and cocos2d-x06   html5 and cocos2d-x
06 html5 and cocos2d-x乐费 胡
 
Cardboard + Unity Workshop Part I
Cardboard + Unity Workshop Part ICardboard + Unity Workshop Part I
Cardboard + Unity Workshop Part Idsd.lab
 
Spring Data, Jongo & Co.
Spring Data, Jongo & Co.Spring Data, Jongo & Co.
Spring Data, Jongo & Co.Tobias Trelle
 
Creating 3D games and applications using Castle Game Engine
Creating 3D games and applications using Castle Game EngineCreating 3D games and applications using Castle Game Engine
Creating 3D games and applications using Castle Game EngineMichalis Kamburelis
 
Integration of Cincom Smalltalk Systems
Integration of Cincom Smalltalk SystemsIntegration of Cincom Smalltalk Systems
Integration of Cincom Smalltalk SystemsESUG
 
Little Did He Know ...
Little Did He Know ...Little Did He Know ...
Little Did He Know ...Burt Beckwith
 

Similar to Create 3D objects insite Cocos2d-x (20)

VR Workshop #1
VR Workshop #1VR Workshop #1
VR Workshop #1
 
mago3D, a web based BIM/GIS integration platform on top of open source
mago3D, a web based BIM/GIS integration platform on top of open sourcemago3D, a web based BIM/GIS integration platform on top of open source
mago3D, a web based BIM/GIS integration platform on top of open source
 
Docker and Your Path to a Better Staging Environment - webinar by Gil Tayar
Docker and Your Path to a Better Staging Environment - webinar by Gil TayarDocker and Your Path to a Better Staging Environment - webinar by Gil Tayar
Docker and Your Path to a Better Staging Environment - webinar by Gil Tayar
 
Automate your iOS deployment a bit
Automate your iOS deployment a bitAutomate your iOS deployment a bit
Automate your iOS deployment a bit
 
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4G
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4Gmago3D: Let's integrate BIM and 3D GIS on top of FOSS4G
mago3D: Let's integrate BIM and 3D GIS on top of FOSS4G
 
D3 in Jupyter : PyData NYC 2015
D3 in Jupyter : PyData NYC 2015D3 in Jupyter : PyData NYC 2015
D3 in Jupyter : PyData NYC 2015
 
Multiplayer game with unity3 d and meteor
Multiplayer game with unity3 d and meteorMultiplayer game with unity3 d and meteor
Multiplayer game with unity3 d and meteor
 
Trident International Graphics Workshop 2014 1/5
Trident International Graphics Workshop 2014 1/5Trident International Graphics Workshop 2014 1/5
Trident International Graphics Workshop 2014 1/5
 
Hacking the Kinect with GAFFTA Day 1
Hacking the Kinect with GAFFTA Day 1Hacking the Kinect with GAFFTA Day 1
Hacking the Kinect with GAFFTA Day 1
 
IMPORTING 3DS MODELS INTO VIRTUAL BATTLESPACE2
IMPORTING 3DS MODELS INTO VIRTUAL BATTLESPACE2IMPORTING 3DS MODELS INTO VIRTUAL BATTLESPACE2
IMPORTING 3DS MODELS INTO VIRTUAL BATTLESPACE2
 
Morphia, Spring Data & Co.
Morphia, Spring Data & Co.Morphia, Spring Data & Co.
Morphia, Spring Data & Co.
 
Cardboard + Unity Workshop Part II
Cardboard + Unity Workshop Part IICardboard + Unity Workshop Part II
Cardboard + Unity Workshop Part II
 
06 html5 and cocos2d-x
06   html5 and cocos2d-x06   html5 and cocos2d-x
06 html5 and cocos2d-x
 
Cardboard + Unity Workshop Part I
Cardboard + Unity Workshop Part ICardboard + Unity Workshop Part I
Cardboard + Unity Workshop Part I
 
Spring Data, Jongo & Co.
Spring Data, Jongo & Co.Spring Data, Jongo & Co.
Spring Data, Jongo & Co.
 
Creating 3D games and applications using Castle Game Engine
Creating 3D games and applications using Castle Game EngineCreating 3D games and applications using Castle Game Engine
Creating 3D games and applications using Castle Game Engine
 
Integration of Cincom Smalltalk Systems
Integration of Cincom Smalltalk SystemsIntegration of Cincom Smalltalk Systems
Integration of Cincom Smalltalk Systems
 
0215 wtf
0215 wtf0215 wtf
0215 wtf
 
Little Did He Know ...
Little Did He Know ...Little Did He Know ...
Little Did He Know ...
 
Terrific Frontends
Terrific FrontendsTerrific Frontends
Terrific Frontends
 

More from Framgia Vietnam

Audited activerecord - QuanHV
Audited activerecord - QuanHVAudited activerecord - QuanHV
Audited activerecord - QuanHVFramgia Vietnam
 
Client side validations gem - KhanhHD
Client side validations gem - KhanhHDClient side validations gem - KhanhHD
Client side validations gem - KhanhHDFramgia Vietnam
 
Backbone.js and rails - BanLV
Backbone.js and rails - BanLVBackbone.js and rails - BanLV
Backbone.js and rails - BanLVFramgia Vietnam
 
Jenkins and rails app - Le Dinh Vu
Jenkins and rails app - Le Dinh VuJenkins and rails app - Le Dinh Vu
Jenkins and rails app - Le Dinh VuFramgia Vietnam
 
Canvas in html5 - TungVD
Canvas in html5 - TungVDCanvas in html5 - TungVD
Canvas in html5 - TungVDFramgia Vietnam
 
Memory management in cocos2d x - Le Duy Vu
Memory management in cocos2d x - Le Duy VuMemory management in cocos2d x - Le Duy Vu
Memory management in cocos2d x - Le Duy VuFramgia Vietnam
 
JMS and ActiveMQ - VuNV 201307
JMS and ActiveMQ - VuNV 201307JMS and ActiveMQ - VuNV 201307
JMS and ActiveMQ - VuNV 201307Framgia Vietnam
 
Jquery validate - TuanNA
Jquery validate - TuanNAJquery validate - TuanNA
Jquery validate - TuanNAFramgia Vietnam
 
Continuous integration - ThangTD
Continuous integration - ThangTDContinuous integration - ThangTD
Continuous integration - ThangTDFramgia Vietnam
 
Seminar globalize3 - DungNV
Seminar globalize3 - DungNVSeminar globalize3 - DungNV
Seminar globalize3 - DungNVFramgia Vietnam
 
Introduction to Tornado - TienNA
Introduction to Tornado - TienNAIntroduction to Tornado - TienNA
Introduction to Tornado - TienNAFramgia Vietnam
 
Some Tricks in Using Terminal - KienDT
Some Tricks in Using Terminal - KienDTSome Tricks in Using Terminal - KienDT
Some Tricks in Using Terminal - KienDTFramgia Vietnam
 
Ransack ruby on rails - HuanND
Ransack ruby on rails - HuanNDRansack ruby on rails - HuanND
Ransack ruby on rails - HuanNDFramgia Vietnam
 

More from Framgia Vietnam (16)

An idea - NghiaLV
An idea - NghiaLVAn idea - NghiaLV
An idea - NghiaLV
 
Audited activerecord - QuanHV
Audited activerecord - QuanHVAudited activerecord - QuanHV
Audited activerecord - QuanHV
 
Delegate - KhanhLD
Delegate - KhanhLDDelegate - KhanhLD
Delegate - KhanhLD
 
Client side validations gem - KhanhHD
Client side validations gem - KhanhHDClient side validations gem - KhanhHD
Client side validations gem - KhanhHD
 
Backbone.js and rails - BanLV
Backbone.js and rails - BanLVBackbone.js and rails - BanLV
Backbone.js and rails - BanLV
 
Jenkins and rails app - Le Dinh Vu
Jenkins and rails app - Le Dinh VuJenkins and rails app - Le Dinh Vu
Jenkins and rails app - Le Dinh Vu
 
Canvas in html5 - TungVD
Canvas in html5 - TungVDCanvas in html5 - TungVD
Canvas in html5 - TungVD
 
Auto it - AnhPC
Auto it - AnhPCAuto it - AnhPC
Auto it - AnhPC
 
Memory management in cocos2d x - Le Duy Vu
Memory management in cocos2d x - Le Duy VuMemory management in cocos2d x - Le Duy Vu
Memory management in cocos2d x - Le Duy Vu
 
JMS and ActiveMQ - VuNV 201307
JMS and ActiveMQ - VuNV 201307JMS and ActiveMQ - VuNV 201307
JMS and ActiveMQ - VuNV 201307
 
Jquery validate - TuanNA
Jquery validate - TuanNAJquery validate - TuanNA
Jquery validate - TuanNA
 
Continuous integration - ThangTD
Continuous integration - ThangTDContinuous integration - ThangTD
Continuous integration - ThangTD
 
Seminar globalize3 - DungNV
Seminar globalize3 - DungNVSeminar globalize3 - DungNV
Seminar globalize3 - DungNV
 
Introduction to Tornado - TienNA
Introduction to Tornado - TienNAIntroduction to Tornado - TienNA
Introduction to Tornado - TienNA
 
Some Tricks in Using Terminal - KienDT
Some Tricks in Using Terminal - KienDTSome Tricks in Using Terminal - KienDT
Some Tricks in Using Terminal - KienDT
 
Ransack ruby on rails - HuanND
Ransack ruby on rails - HuanNDRansack ruby on rails - HuanND
Ransack ruby on rails - HuanND
 

Recently uploaded

Call Girls Ellis Bridge 7397865700 Independent Call Girls
Call Girls Ellis Bridge 7397865700 Independent Call GirlsCall Girls Ellis Bridge 7397865700 Independent Call Girls
Call Girls Ellis Bridge 7397865700 Independent Call Girlsssuser7cb4ff
 
Kolkata Call Girls Service +918240919228 - Kolkatanightgirls.com
Kolkata Call Girls Service +918240919228 - Kolkatanightgirls.comKolkata Call Girls Service +918240919228 - Kolkatanightgirls.com
Kolkata Call Girls Service +918240919228 - Kolkatanightgirls.comKolkata Call Girls
 
Call Girls Chorasi 7397865700 Ridhima Hire Me Full Night
Call Girls Chorasi 7397865700 Ridhima Hire Me Full NightCall Girls Chorasi 7397865700 Ridhima Hire Me Full Night
Call Girls Chorasi 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
8377087607 Full Enjoy @24/7 Call Girls in Patel Nagar Delhi NCR
8377087607 Full Enjoy @24/7 Call Girls in Patel Nagar Delhi NCR8377087607 Full Enjoy @24/7 Call Girls in Patel Nagar Delhi NCR
8377087607 Full Enjoy @24/7 Call Girls in Patel Nagar Delhi NCRdollysharma2066
 
North Avenue Call Girls Services, Hire Now for Full Fun
North Avenue Call Girls Services, Hire Now for Full FunNorth Avenue Call Girls Services, Hire Now for Full Fun
North Avenue Call Girls Services, Hire Now for Full FunKomal Khan
 
Call Girls Near Delhi Pride Hotel New Delhi 9873777170
Call Girls Near Delhi Pride Hotel New Delhi 9873777170Call Girls Near Delhi Pride Hotel New Delhi 9873777170
Call Girls Near Delhi Pride Hotel New Delhi 9873777170Sonam Pathan
 
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcE
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcEViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcE
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcEApsara Of India
 
Call Girls SG Highway 7397865700 Ridhima Hire Me Full Night
Call Girls SG Highway 7397865700 Ridhima Hire Me Full NightCall Girls SG Highway 7397865700 Ridhima Hire Me Full Night
Call Girls SG Highway 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 
VIP Call Girls In worli Mumbai 00000000 Independent Call Girls
VIP Call Girls In  worli Mumbai 00000000 Independent Call GirlsVIP Call Girls In  worli Mumbai 00000000 Independent Call Girls
VIP Call Girls In worli Mumbai 00000000 Independent Call GirlsCall Girls Mumbai
 
The Fine Line Between Honest and Evil Comics by Salty Vixen
The Fine Line Between Honest and Evil Comics by Salty VixenThe Fine Line Between Honest and Evil Comics by Salty Vixen
The Fine Line Between Honest and Evil Comics by Salty VixenSalty Vixen Stories & More
 
1681275559_haunting-adeline and hunting.pdf
1681275559_haunting-adeline and hunting.pdf1681275559_haunting-adeline and hunting.pdf
1681275559_haunting-adeline and hunting.pdfTanjirokamado769606
 
Call Girls CG Road 7397865700 Independent Call Girls
Call Girls CG Road 7397865700  Independent Call GirlsCall Girls CG Road 7397865700  Independent Call Girls
Call Girls CG Road 7397865700 Independent Call Girlsssuser7cb4ff
 
Call US '' 8377087607'' !! Call Girls In Model Town Metro (Delhi NCR)
Call US '' 8377087607'' !! Call Girls In Model Town Metro (Delhi NCR)Call US '' 8377087607'' !! Call Girls In Model Town Metro (Delhi NCR)
Call US '' 8377087607'' !! Call Girls In Model Town Metro (Delhi NCR)dollysharma2066
 
Cash Payment Contact:- 7028418221 Goa Call Girls Service North Goa Escorts
Cash Payment Contact:- 7028418221 Goa Call Girls Service North Goa EscortsCash Payment Contact:- 7028418221 Goa Call Girls Service North Goa Escorts
Cash Payment Contact:- 7028418221 Goa Call Girls Service North Goa EscortsApsara Of India
 
Real NO1 Amil baba in Faisalabad Kala jadu in faisalabad Aamil baba Faisalaba...
Real NO1 Amil baba in Faisalabad Kala jadu in faisalabad Aamil baba Faisalaba...Real NO1 Amil baba in Faisalabad Kala jadu in faisalabad Aamil baba Faisalaba...
Real NO1 Amil baba in Faisalabad Kala jadu in faisalabad Aamil baba Faisalaba...Amil Baba Company
 
LE IMPOSSIBRU QUIZ (Based on Splapp-me-do)
LE IMPOSSIBRU QUIZ (Based on Splapp-me-do)LE IMPOSSIBRU QUIZ (Based on Splapp-me-do)
LE IMPOSSIBRU QUIZ (Based on Splapp-me-do)bertfelixtorre
 
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...Amil Baba Company
 
Call Girls Sanand 7397865700 Ridhima Hire Me Full Night
Call Girls Sanand 7397865700 Ridhima Hire Me Full NightCall Girls Sanand 7397865700 Ridhima Hire Me Full Night
Call Girls Sanand 7397865700 Ridhima Hire Me Full Nightssuser7cb4ff
 

Recently uploaded (20)

Call Girls Ellis Bridge 7397865700 Independent Call Girls
Call Girls Ellis Bridge 7397865700 Independent Call GirlsCall Girls Ellis Bridge 7397865700 Independent Call Girls
Call Girls Ellis Bridge 7397865700 Independent Call Girls
 
Kolkata Call Girls Service +918240919228 - Kolkatanightgirls.com
Kolkata Call Girls Service +918240919228 - Kolkatanightgirls.comKolkata Call Girls Service +918240919228 - Kolkatanightgirls.com
Kolkata Call Girls Service +918240919228 - Kolkatanightgirls.com
 
Call Girls Chorasi 7397865700 Ridhima Hire Me Full Night
Call Girls Chorasi 7397865700 Ridhima Hire Me Full NightCall Girls Chorasi 7397865700 Ridhima Hire Me Full Night
Call Girls Chorasi 7397865700 Ridhima Hire Me Full Night
 
8377087607 Full Enjoy @24/7 Call Girls in Patel Nagar Delhi NCR
8377087607 Full Enjoy @24/7 Call Girls in Patel Nagar Delhi NCR8377087607 Full Enjoy @24/7 Call Girls in Patel Nagar Delhi NCR
8377087607 Full Enjoy @24/7 Call Girls in Patel Nagar Delhi NCR
 
North Avenue Call Girls Services, Hire Now for Full Fun
North Avenue Call Girls Services, Hire Now for Full FunNorth Avenue Call Girls Services, Hire Now for Full Fun
North Avenue Call Girls Services, Hire Now for Full Fun
 
Call Girls Near Delhi Pride Hotel New Delhi 9873777170
Call Girls Near Delhi Pride Hotel New Delhi 9873777170Call Girls Near Delhi Pride Hotel New Delhi 9873777170
Call Girls Near Delhi Pride Hotel New Delhi 9873777170
 
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcE
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcEViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcE
ViP Call Girls In Udaipur 9602870969 Gulab Bagh Escorts SeRvIcE
 
Call Girls SG Highway 7397865700 Ridhima Hire Me Full Night
Call Girls SG Highway 7397865700 Ridhima Hire Me Full NightCall Girls SG Highway 7397865700 Ridhima Hire Me Full Night
Call Girls SG Highway 7397865700 Ridhima Hire Me Full Night
 
VIP Call Girls In worli Mumbai 00000000 Independent Call Girls
VIP Call Girls In  worli Mumbai 00000000 Independent Call GirlsVIP Call Girls In  worli Mumbai 00000000 Independent Call Girls
VIP Call Girls In worli Mumbai 00000000 Independent Call Girls
 
The Fine Line Between Honest and Evil Comics by Salty Vixen
The Fine Line Between Honest and Evil Comics by Salty VixenThe Fine Line Between Honest and Evil Comics by Salty Vixen
The Fine Line Between Honest and Evil Comics by Salty Vixen
 
1681275559_haunting-adeline and hunting.pdf
1681275559_haunting-adeline and hunting.pdf1681275559_haunting-adeline and hunting.pdf
1681275559_haunting-adeline and hunting.pdf
 
Call Girls Koti 7001305949 all area service COD available Any Time
Call Girls Koti 7001305949 all area service COD available Any TimeCall Girls Koti 7001305949 all area service COD available Any Time
Call Girls Koti 7001305949 all area service COD available Any Time
 
Call Girls CG Road 7397865700 Independent Call Girls
Call Girls CG Road 7397865700  Independent Call GirlsCall Girls CG Road 7397865700  Independent Call Girls
Call Girls CG Road 7397865700 Independent Call Girls
 
Call US '' 8377087607'' !! Call Girls In Model Town Metro (Delhi NCR)
Call US '' 8377087607'' !! Call Girls In Model Town Metro (Delhi NCR)Call US '' 8377087607'' !! Call Girls In Model Town Metro (Delhi NCR)
Call US '' 8377087607'' !! Call Girls In Model Town Metro (Delhi NCR)
 
Cash Payment Contact:- 7028418221 Goa Call Girls Service North Goa Escorts
Cash Payment Contact:- 7028418221 Goa Call Girls Service North Goa EscortsCash Payment Contact:- 7028418221 Goa Call Girls Service North Goa Escorts
Cash Payment Contact:- 7028418221 Goa Call Girls Service North Goa Escorts
 
Real NO1 Amil baba in Faisalabad Kala jadu in faisalabad Aamil baba Faisalaba...
Real NO1 Amil baba in Faisalabad Kala jadu in faisalabad Aamil baba Faisalaba...Real NO1 Amil baba in Faisalabad Kala jadu in faisalabad Aamil baba Faisalaba...
Real NO1 Amil baba in Faisalabad Kala jadu in faisalabad Aamil baba Faisalaba...
 
LE IMPOSSIBRU QUIZ (Based on Splapp-me-do)
LE IMPOSSIBRU QUIZ (Based on Splapp-me-do)LE IMPOSSIBRU QUIZ (Based on Splapp-me-do)
LE IMPOSSIBRU QUIZ (Based on Splapp-me-do)
 
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...
Amil baba in Pakistan amil baba Karachi amil baba in pakistan amil baba in la...
 
Call Girls Sanand 7397865700 Ridhima Hire Me Full Night
Call Girls Sanand 7397865700 Ridhima Hire Me Full NightCall Girls Sanand 7397865700 Ridhima Hire Me Full Night
Call Girls Sanand 7397865700 Ridhima Hire Me Full Night
 
young call girls in Hari Nagar,🔝 9953056974 🔝 escort Service
young call girls in Hari Nagar,🔝 9953056974 🔝 escort Serviceyoung call girls in Hari Nagar,🔝 9953056974 🔝 escort Service
young call girls in Hari Nagar,🔝 9953056974 🔝 escort Service
 

Create 3D objects insite Cocos2d-x

  • 1. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References SEMINAR Create 3D objects inside Cocos2D-x Name: Phùng Hoàng Bắc Hà Nội, ngày 17 tháng 08 năm 2013 Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 1 / 13
  • 2. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Contents Introduction 3D objects Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 2 / 13
  • 3. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Contents Introduction 3D objects Create 3D objects inside Cocos2D-x Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 2 / 13
  • 4. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Contents Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 2 / 13
  • 5. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Contents Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 2 / 13
  • 6. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Contents Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 2 / 13
  • 7. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Contents 1 Introduction 3D objects 2 Create 3D objects inside Cocos2D-x 3 Demo 4 Conclusion 5 References Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 3 / 13
  • 8. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Introduction 3D objects Define 1. 3D objects Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 4 / 13
  • 9. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Introduction 3D objects Define 1. 3D objects 3D objects are objects that occurs on a three-axis Cartesian coordinate system. Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 4 / 13
  • 10. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Introduction 3D objects Define 1. 3D objects 3D objects are objects that occurs on a three-axis Cartesian coordinate system. Cocos2D-x is, as you might infer from its name, a 2d gaming library. But, as it uses OpenGL internally to draw its stuff, we might leverage it to create some 3D objects on the mix. Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 4 / 13
  • 11. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Introduction 3D objects Define 1. 3D objects 3D objects are objects that occurs on a three-axis Cartesian coordinate system. Cocos2D-x is, as you might infer from its name, a 2d gaming library. But, as it uses OpenGL internally to draw its stuff, we might leverage it to create some 3D objects on the mix. Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 4 / 13
  • 12. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Contents 1 Introduction 3D objects 2 Create 3D objects inside Cocos2D-x 3 Demo 4 Conclusion 5 References Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 5 / 13
  • 13. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Create 3D objects inside Cocos2D-x Cocos2D-x use vector 2D but with C++ we can define vector 3D. Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
  • 14. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Create 3D objects inside Cocos2D-x Cocos2D-x use vector 2D but with C++ we can define vector 3D. Define 2. Vector3D Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
  • 15. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Create 3D objects inside Cocos2D-x Cocos2D-x use vector 2D but with C++ we can define vector 3D. Define 2. Vector3D Typedef struct { GLfloat x ; GLfloat y ; GLfloat z ; } Vector3D ; Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
  • 16. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Create 3D objects inside Cocos2D-x Cocos2D-x use vector 2D but with C++ we can define vector 3D. Define 2. Vector3D Typedef struct { GLfloat x ; GLfloat y ; GLfloat z ; } Vector3D ; But it has some issues like : 1 Doesn’t allow you to draw sprites on top of the boxes. Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
  • 17. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Create 3D objects inside Cocos2D-x Cocos2D-x use vector 2D but with C++ we can define vector 3D. Define 2. Vector3D Typedef struct { GLfloat x ; GLfloat y ; GLfloat z ; } Vector3D ; But it has some issues like : 1 Doesn’t allow you to draw sprites on top of the boxes. 2 The gluLookAt call shouldn’t be inside the Box class draw method. Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
  • 18. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Create 3D objects inside Cocos2D-x Cocos2D-x use vector 2D but with C++ we can define vector 3D. Define 2. Vector3D Typedef struct { GLfloat x ; GLfloat y ; GLfloat z ; } Vector3D ; But it has some issues like : 1 Doesn’t allow you to draw sprites on top of the boxes. 2 The gluLookAt call shouldn’t be inside the Box class draw method. 3 The color shading is hardcoded. Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
  • 19. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Create 3D objects inside Cocos2D-x Cocos2D-x use vector 2D but with C++ we can define vector 3D. Define 2. Vector3D Typedef struct { GLfloat x ; GLfloat y ; GLfloat z ; } Vector3D ; But it has some issues like : 1 Doesn’t allow you to draw sprites on top of the boxes. 2 The gluLookAt call shouldn’t be inside the Box class draw method. 3 The color shading is hardcoded. 4 And so on, so on... Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
  • 20. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Create 3D objects inside Cocos2D-x Cocos2D-x use vector 2D but with C++ we can define vector 3D. Define 2. Vector3D Typedef struct { GLfloat x ; GLfloat y ; GLfloat z ; } Vector3D ; But it has some issues like : 1 Doesn’t allow you to draw sprites on top of the boxes. 2 The gluLookAt call shouldn’t be inside the Box class draw method. 3 The color shading is hardcoded. 4 And so on, so on... Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 6 / 13
  • 21. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Contents 1 Introduction 3D objects 2 Create 3D objects inside Cocos2D-x 3 Demo 4 Conclusion 5 References Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 7 / 13
  • 22. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Demo Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 8 / 13
  • 23. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Contents 1 Introduction 3D objects 2 Create 3D objects inside Cocos2D-x 3 Demo 4 Conclusion 5 References Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 9 / 13
  • 24. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Although I don’t recommend using Cocos2D-x for making a complete 3D game, adding some 3D objects might bring some interesting effects. Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 10 / 13
  • 25. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Contents 1 Introduction 3D objects 2 Create 3D objects inside Cocos2D-x 3 Demo 4 Conclusion 5 References Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 11 / 13
  • 26. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References References [1] http ://build-failed.blogspot.com/2012/05/create-3d-objects-inside-cocos2d-x.html [2] http ://jameshui.tumblr.com/post/29459200037/rendering-simple-3d-objects-and- md2-models-with [3] http ://www.cocos2d-x.org/news/67 Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 12 / 13
  • 27. Introduction 3D objects Create 3D objects inside Cocos2D-x Demo Conclusion References Thanks for listening. Phùng Hoàng Bắc (Framgia Việt Nam) Create 3D objects inside Cocos2D-x Hà Nội , 17/08/2013 13 / 13