Forum Replies Created
-
AuthorPosts
-
zjbcoolCustomer
1.create a new app
2.copy the code to .html<video id=“video” autoplay=“autoplay” loop=“loop” width=“300” height=“150”> <source src=“sintel.mp4” type=“video/mp4; codecs="avc1.42E01E, mp4a.40.2"” /> <source src=“sintel.ogv” type=“video/ogg; codecs="theora, vorbis"” /> <video>
3.copy the code to .js file
function runCode(app) { // 复制下面的代码到runCode下面 var screen, video, texture, material video =document.getElementById(“video”); screen = app.scene.getObjectByName(“screen”); texture = new v3d.VideoTexture(video); texture.minFilter = v3d.LinearFilter; texture.format = v3d.RGBFormat; material = new v3d.MeshBasicMaterial({map : texture}); screen.material = material; app.animate(); }
4.result.
sorry my poor English.zjbcoolCustomerI had the same problem.chrome version 72.0.3626.121
zjbcoolCustomerLet more people know this decision!
zjbcoolCustomerIt says “no textures” – even though I have an image texture. I’ve attached a screenshot.
Hi,
I’ve tested the new “open file” puzzle,and it works well.
Meybe you could test it using a simple diffuse material with an image texture.zjbcoolCustomerand i am using HTC vive pro in firefox brower.
2019-01-10 at 8:19 am in reply to: 2.10.0 pre-release 2:Outline is not working in VR/AR mode. #104782019-01-10 at 7:56 am in reply to: 2.10.0 pre-release 2:Outline is not working in VR/AR mode. #10476zjbcoolCustomermy first webvr app.
needs HTC VIVE,firefox browser.
in Chinese.
https://zjbcool.com/vr/webxr.html -
AuthorPosts