반응형

  1. #################################HMD################################  
  2. # Retitle the main window as the "left" eye   
  3. wp = WindowProperties()   
  4. wp.setTitle('left')   
  5. base.win.requestProperties(wp)   
  6.   
  7. # Open a new window and title it as the "right" eye   
  8. w2 = base.openWindow()   
  9. wp.setTitle('right')   
  10. w2.requestProperties(wp)   
  11.   
  12. # Move the eyes apart a little bit, and converge them both on a point   
  13. # 20 feet ahead.   
  14. base.camList[0].setPos(-0.000)   
  15. base.camList[1].setPos(0.000)   
  16. #######################################-HMD-###################################  
  17.   
  18.   
  19.   
  20. #################################HMD################################  
  21. # Retitle the main window as the "left" eye   
  22. wp = WindowProperties()   
  23. wp.setTitle('left')   
  24. base.win.requestProperties(wp)   
  25.   
  26. # Open a new window and title it as the "right" eye   
  27. w2 = base.openWindow()   
  28. wp.setTitle('right')   
  29. w2.requestProperties(wp)   
  30.   
  31. # Move the eyes apart a little bit, and converge them both on a point   
  32. # 20 feet ahead.   
  33. base.camList[0].setPos(-0.000)   
  34. base.camList[1].setPos(0.000)   
  35. #######################################-HMD-###################################  


이렇게 하면 된다.

Panda3d with Python open the multi windows.


내가 졸작할때 HMD 쓰려고 만든 소스중 발췌한 것이다.

윈도우를 두개 띄우고 각각의 윈도우에 카메라를 달면 된다.
반응형

'GamePrograming > Panda3D' 카테고리의 다른 글

Panda3D Manual: Collision Detection  (0) 2009.03.25
Panda3D Manual: Panda Utility Functions  (0) 2009.03.25
Posted by Real_G