webvr

a-frame vr how to drag and drop assets / elements insight a picture?

风流意气都作罢 提交于 2019-12-22 09:47:58
问题 I am trying out a-frame and can't find anything about how to drag and drop elements and have been looking for it for hours! Is anyone familiar with a-frame? Thanks thats my code so far: <a-scene> <a-cursor></a-cursor> <a-assets> <img id="enemy-sprite" crossorigin="" src="mustache1.jpg"> </a-assets> <a-image look-at="#player" src="#enemy-sprite" transparent="true" position="0 1.8 -4"></a-image> <a-camera id="player" position="0 1.8 0"></a-camera> <a-sky src="street.jpg"></a-sky> EDIT: browser

How can I display text in A-Frame?

一曲冷凌霜 提交于 2019-12-21 10:38:38
问题 For http://aframe.io/, how can I render text without having to create an image? 回答1: EDIT: A text component has landed in A-Frame master branch. This will roll out in 0.5.0. The component will have support for fonts, alignments, anchors, baselines, shaders, etc. <a-entity text="value: HELLO"></a-entity> https://aframe.io/docs/master/components/text.html You can use some of the community components: https://github.com/bryik/aframe-bmfont-text-component - Text drawn using signed distance field

Aframe, VR website, unable to turn left right using android phone

こ雲淡風輕ζ 提交于 2019-12-18 09:27:13
问题 I have been working on this VR website for my project for sometime. It used to be able to allow user to view left/right side of the virtual world by moving your phone to the left/right. However, just recently, it suddenly did not work for android phone. I have tested on iphone/ipad, still works as per normal. But for some reason, i tried using note8 , s7 it doesnt work anymore. Would really appreciate if you can identify whats the problem, and how can I fix it? Thank you very much. 回答1: Try

How to load 3D object at runtime in aframe?

强颜欢笑 提交于 2019-12-13 17:09:39
问题 I am working on an aframe project where runtime loading of 3D object is required. I have read A-Frame documentations, and aframe doesn't seem to support runtime assets loading at all. I discovered this aframe-asset-on-demand-component by protyze (https://github.com/protyze/aframe-asset-on-demand-component) and it seems to allow runtime loading of img, audio and video. But its documentation does not indicate the possibility of loading 3D objects like files in .obj or .dae at runtime. Has

WebVR supported, but no VRDisplays found, suddnly

大憨熊 提交于 2019-12-13 15:50:07
问题 When I develop webVr content using A-frame , web vr work probably with oculus rift using nightly browser (powered by firefox) Then after 1 day I restart my computer , Then non of web vr experience work (developed by me or by other ) in nightly browser . when i test using https://webvr.info/samples/test-vr-links.html The message "WebVR supported, but no VRDisplays found." so i have problem i don't know where it . ->then I install firefox developer edition (it support web vr) and I try test ,

Change image of sky every few seconds with an animation

二次信任 提交于 2019-12-13 03:59:57
问题 I need change the image of sky every few seconds with an animation. like this. But without the event click, in my case, i need the change of picture with time. <a-assets> <img id="water" src="./3D/letras/Agua.jpg"/> <img id="air" src="./3D/letras/Aire.jpg"/> <img id="horizont" src="./3D/letras/Horizonte.jpg"/> <img id="hector" src="./3D/letras/hecxtor.jpg"/> </a-assets> 回答1: How about this. You make two animations: a fade-in, and a fade-out: <a-sky foo> <a-animation id="fadein-animation"></a

Aframe - call aframe function from another javascript file

久未见 提交于 2019-12-12 06:50:12
问题 I'm trying to turn positional tracking off, and I believe that this function in the aframe code is what I'm after: checkHasPositionalTracking(); However, in my second js file (which is defined AFTER aframe.js), if I try to call that function, I receive this error: Uncaught ReferenceError: checkHasPositionalTracking is not defined 回答1: You need to call it with full reference to the window.AFRAME browser global, so use AFRAME.utils.device.checkHasPositionalTracking () in your code to access it.

Play sound component with animation using A-Frame

穿精又带淫゛_ 提交于 2019-12-12 04:23:20
问题 I'm trying to build an A-Frame scene where a car drives by the user, and I need the sound of the car to start playing as the car starts moving. For example: <a-collada-model id="car" src="#car-dae" position="-0.7 0 -100" rotation="0 90 0"> <a-animation attribute="position" dur="7000" begin="model-loaded" fill="forwards" to="-0.7 0 20" repeat="0" ></a-animation> </a-collada-model> Can I put a sound component on the animation? If not, how should I go about having the sound play at the same time

A-Frame IOS Inline video Phonegap

夙愿已清 提交于 2019-12-12 02:39:25
问题 Does anyone know if its possible to play inline video via A Frame in a Phonegap app? I can get inline video working on my IPhone if the webpage is pinned to the home screen and I access the web page that way. (How people are using it here: https://github.com/aframevr/aframe/issues/316) When I try and run the page via phone gap, the video opens up in full screen. I have pinned the server address to my homepage. I don't know much about phone gap (its the first time i have used it) but have