playground:vrcamera
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
playground:vrcamera [2017/05/24 01:13] – créée falsam | playground:vrcamera [2018/01/11 02:05] – falsam | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
**18-VR Camera.sb** | **18-VR Camera.sb** | ||
- | [[http:// | + | [[http:// |
<file purebasic 18-VR Camera.sb> | <file purebasic 18-VR Camera.sb> | ||
Ligne 25: | Ligne 25: | ||
| | ||
;This creates and positions a device orientation camera | ;This creates and positions a device orientation camera | ||
- | Camera = CreateCamera(" | + | Camera = CreateCamera(" |
| | ||
;This targets the camera to scene origin | ;This targets the camera to scene origin | ||
Ligne 34: | Ligne 34: | ||
| | ||
;Red Box | ;Red Box | ||
- | RedMat = CreateMaterial(" | + | RedMat = CreateMaterial(" |
- | SetMaterialColor(RedMat, | + | SetMaterialColor(RedMat, |
| | ||
- | RedBox = CreateBox(" | + | RedBox = CreateBox(" |
- | | + | |
| | ||
MoveMesh(RedBox, | MoveMesh(RedBox, | ||
| | ||
;Create Blue Box | ;Create Blue Box | ||
- | BlueMat = CreateMaterial(" | + | BlueMat = CreateMaterial(" |
- | SetMaterialColor(BlueMat, | + | SetMaterialColor(BlueMat, |
| | ||
- | BlueBox = CreateBox(" | + | BlueBox = CreateBox(" |
- | | + | |
| | ||
MoveMesh(BlueBox, | MoveMesh(BlueBox, |
playground/vrcamera.txt · Dernière modification : 2023/03/15 15:49 de 127.0.0.1