JUI 2009 O3D Programming

810 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
810
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

JUI 2009 O3D Programming

  1. 1. gyuque, Satoshi Ueyama 2009 7 12
  2. 2. What’s O3D Google 2009 7 12
  3. 3. What’s O3D Javascript Flash Player object QuickTime plugin IE Firefox, Safari… ActiveX NPAPI Canvas • Flash QT • O3D (Google Gears ) 2009 7 12
  4. 4. What’s O3D API O3D VRML Direct3D RM API OpenGL Direct3D IM JS ! " HW 2D Canvas ! 2D 2009 7 12
  5. 5. What’s O3D O3D API !"#$%&"#%$&"&"!!'! !"#(%&"#$$&"&"!!)! !"&&&&"&&&&*&"!!+! !"&&&&"&&&&"&*!!,! 2009 7 12
  6. 6. What’s Scene Graph 1. scene { ! object { API material(red) { faces { DOM [0,0, 1,0 0,1] } } material(blue) { json faces { [0,2, 3,0 0,4] } } } } 2. 2009 7 12
  7. 7. Reading Sample Code !"#$%&'(') **+,-#&./ **0#11'2132'#-"24"5$2+60/ **789#2#:""2;< json 2009 7 12
  8. 8. 2009 7 12
  9. 9. 2009 7 12
  10. 10. Working with Scene Graph Transform Transform Transform Material Parent Child DrawList Shape Parent Child Primitive position list: [0,0, 0,1, 1,1] index list: [0,1,2] 2009 7 12
  11. 11. Working with Scene Graph DOM parent.appendChild( child ); O3D child.parent = parent; ! add append (addShape ) ! t = pack.createObject('Transform'); t.parent = o3dClient.root; 2009 7 12
  12. 12. Demo - js touch on O3D 2009 7 12
  13. 13. 2D on O3D Mozilla Party 2D 2009 7 12
  14. 14. 2D on O3D 2D Canvas provides an interface for drawing text and 2D primitives on a 2D surface. O3D Canvas : 2D API 2009 7 12
  15. 15. 2D on O3D 2009 7 12
  16. 16. 2009 7 12
  17. 17. 2D on O3D Canvas 2009 7 12
  18. 18. 2D on O3D ?@> @A> BC*D*B*E*F3?@>*G*=4> 8C*D*8*E*GF3@A>*H*=4> • =4> • • Shape =4> Canvas 2009 7 12
  19. 19. Demo - O3D BallPool O3D Canvas by Mr. doob 2009 7 12
  20. 20. Demo - O3D BallPool on Internet Explorer 2009 7 12
  21. 21. Demo - O3D BallPool O3D plugin V8 JS Engine V8 "V8 Demo 2009 7 12
  22. 22. • • 2D Canvas • API 2009 7 12
  23. 23. • • 2D Canvas • API 2009 7 12
  24. 24. Enjoy O3D Programming Thank You. 2009 7 12

×