鿍奍;: ãã®æ©è½ã¯éæ¨å¥¨ã«ãªãã¾ãããã¾ã 対å¿ãã¦ãããã©ã¦ã¶ã¼ãããããããã¾ãããããã§ã«é¢é£ããã¦ã§ãæ¨æºããåé¤ããã¦ããããåé¤ã®æç¶ãä¸ã§ããããäºææ§ã®ããã ãã«æ®ããã¦ããå¯è½æ§ãããã¾ãã使ç¨ãé¿ããã§ããã°æ¢åã®ã³ã¼ãã¯æ´æ°ãã¦ãã ããããã®ãã¼ã¸ã®ä¸é¨ã«ããäºææ§ä¸è¦§è¡¨ãè¦ã¦å¤æãã¦ãã ããããã®æ©è½ã¯çªç¶åä½ããªããªãå¯è½æ§ããããã¨ã«æ³¨æãã¦ãã ããã
timestamp
㯠VRFrameData
ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®èªã¿åãå°ç¨ããããã£ã§ããã¬ã¼ã ã®æ´æ°ãçºçããæå»ã表ãã常ã«å¢å ããã¿ã¤ã ã¹ã¿ã³ãå¤ãè¿ãã¾ãã
ã¡ã¢: ãã®ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ãå¤ã WebVR API ã®ä¸é¨ã§ããã WebXR Device APIã«ç½®ãæãããã¾ããã
ã¿ã¤ã ã¹ã¿ã³ãã¯ãä½ç½®ç¶æ ãã¼ã¿ããã¼ãã¦ã§ã¢ããæ´æ°ããããã©ããã夿ããã®ã«ä¾¿å©ã§ããå¤ã¯å¸¸ã«å¢å ãã¦ããã®ã§ãæ´æ°ã®é åºã決å®ããããã«æ¯è¼ãããã¨ãã§ãã¾ããæ°ããå¤ã¯å¸¸ã«å¤ãå¤ãã大ãããçãããªãã¾ãã
ã¿ã¤ã ã¹ã¿ã³ãã¯ã VRDisplay
ãæåã«å¼ã³åºãããã¨ãã« 0 ããå§ã¾ãã¾ãã
DOMHighResTimeStamp
ãªãã¸ã§ã¯ãã§ãã
var frameData = new VRFrameData();
var vrDisplay;
navigator.getVRDisplays().then(function(displays) {
vrDisplay = displays[0];
console.log('Display found');
// Starting the presentation when the button is clicked: It can only be called in response to a user gesture
btn.addEventListener('click', function() {
vrDisplay.requestPresent([{ source: canvas }]).then(function() {
drawVRScene();
});
});
});
// WebVR: Draw the scene for the WebVR display.
function drawVRScene() {
// WebVR: Request the next frame of the animation
vrSceneFrame = vrDisplay.requestAnimationFrame(drawVRScene);
// Populate frameData with the data of the next frame to display
vrDisplay.getFrameData(frameData);
// grab the current timestamp on each run of the rendering loop
// and do something with it
framedata.timestamp
...
// WebVR: Indicates that we are ready to present the rendered frame to the VR display
vrDisplay.submitFrame();
}
仿§æ¸
ãã®ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ãå¤ã WebVR API ã®ä¸é¨ã§ãããã WebXR Device API ã«ç½®ãæãããã¾ãããæ¨æºåãããäºå®ã¯ããã¾ããã
ãã¹ã¦ã®ãã©ã¦ã¶ã¼ãæ°ãã WebXR API ãå®è£ ããã¾ã§ããã¹ã¦ã®ãã©ã¦ã¶ã¼ã§åä½ãã WebXR ã¢ããªã±ã¼ã·ã§ã³ãéçºããã«ã¯ãA-Frame ã Babylon.js ã Three.js ãªã©ã®ãã¬ã¼ã ã¯ã¼ã¯ãå©ç¨ããããããªãã£ã«ãå©ç¨ãããããã¨è¯ãã§ããã [1]ã
ãã©ã¦ã¶ã¼ã®äºææ§ é¢é£æ å ±RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4