Outils pour utilisateurs

Outils du site


playground:vrcamera

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
Dernière révisionLes deux révisions suivantes
playground:vrcamera [2017/05/24 01:13] – créée falsamplayground:vrcamera [2018/01/11 02:05] falsam
Ligne 1: Ligne 1:
 **18-VR Camera.sb** **18-VR Camera.sb**
  
-[[http://falsam.com/sbbjs/vrcamera.html|Voir]]+[[http://falsam.com/sbbjs/vrcamera.html|Voir]] Avec un mobile ou un casque virtuel.
  
 <file purebasic 18-VR Camera.sb> <file purebasic 18-VR Camera.sb>
Ligne 25: Ligne 25:
          
     ;This creates and positions a device orientation camera  (0, 0, 0)     ;This creates and positions a device orientation camera  (0, 0, 0)
-    Camera = CreateCamera("VR Cam", 0, 0, 0, #VR)+    Camera = CreateCamera("VR Cam", 0, 0, 0, #BJS_VR)
          
     ;This targets the camera to scene origin     ;This targets the camera to scene origin
Ligne 34: Ligne 34:
          
     ;Red Box     ;Red Box
-    RedMat = CreateMaterial("Red Color", "") +    RedMat = CreateMaterial("Red Color"
-    SetMaterialColor(RedMat, #Diffuse, RGB(255, 0, 0))+    SetMaterialColor(RedMat, #BJS_Diffuse, RGB(255, 0, 0))
          
-    RedBox = CreateBox("box", 5) +    RedBox = CreateBox("box", 5, 5, 5) 
-    SetMaterial(RedBox, RedMat)+    SetMeshMaterial(RedBox, RedMat)
          
     MoveMesh(RedBox, 0, 0, 10)     MoveMesh(RedBox, 0, 0, 10)
          
     ;Create Blue Box     ;Create Blue Box
-    BlueMat = CreateMaterial("blue color", "") +    BlueMat = CreateMaterial("blue color"
-    SetMaterialColor(BlueMat, #Diffuse, RGB(0, 0, 255))+    SetMaterialColor(BlueMat, #BJS_Diffuse, RGB(0, 0, 255))
          
-    BlueBox = CreateBox("blue box", 5) +    BlueBox = CreateBox("blue box", 5, 5, 5) 
-    SetMaterial(BlueBox, BlueMat)+    SetMeshMaterial(BlueBox, BlueMat)
          
     MoveMesh(BlueBox, 0, 0, -10)     MoveMesh(BlueBox, 0, 0, -10)
playground/vrcamera.txt · Dernière modification : 2023/03/15 15:49 de 127.0.0.1