GithubHelp home page GithubHelp logo

Comments (4)

vasturiano avatar vasturiano commented on July 3, 2024

@malani-art I've just pushed a fix that will correctly interpret the alpha channel in your rgba background color, and allow you to set the background completely transparent, so you can overlay it on a video or any other dom element.

from 3d-force-graph-vr.

malani-art avatar malani-art commented on July 3, 2024

Thank you! I'm sorry if this is a very 'noob' question, but even now, I still can't seem to make the video background! Does it have something to do with the below? I'm really not sure how to adjust this...:

scene.appendChild(state.sky = document.createElement('a-sky'));
    state.sky.setAttribute('radius', 3000);

from 3d-force-graph-vr.

malani-art avatar malani-art commented on July 3, 2024

Hi @vasturiano, apologies for bringing this thread back although it is closed! But, I've been having a hard time implementing a video sphere in the scene. I'm not sure where I'm going wrong?:

In the head of index.html:
<script id="video" type="text/template"> <a-scene> <a-assets> <video id="SphereVideo" autoplay="true" loop= "true" muted crossorigin="anonymous" src="https://static.videezy.com/system/resources/previews/000/012/740/original/Particles_4_-_30s_-_4k_res.mp4"> </a-assets> <a-videosphere src ="#SphereVideo"></a-videosphere> </a-scene> </script>

Then, in the 3d-force-graph-vr.js:
I add this line under where the scene is being created:
scene.innerHTML = document.getElementById('video').innerHTML;

As far as I understand, this should work but it isn't. Simply looking for a way to place a 360 video behind the graph. Any help would be extremely appreciated!

from 3d-force-graph-vr.

malani-art avatar malani-art commented on July 3, 2024

Figured it out thanks.

from 3d-force-graph-vr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.