Giter Site home page Giter Site logo

Comments (6)

vasturiano avatar vasturiano commented on May 27, 2024 1

@devhims thanks for reaching out.

The examples on this repo are mostly setup for a VR experience. This component can still easily be used in an AR environment however (see 3d-force-graph-ar).

If you want to use it in AR, just make sure you don't set an opaque background, like it's applied here:

<a-sky color="#002"></a-sky>

from aframe-forcegraph-component.

devhims avatar devhims commented on May 27, 2024

Thanks @vasturiano! You're right, that solved the issue.

Another thing, in the AR mode the graph was too large, so I reduced the scale by adding scale="0.01 0.01 0.01" to the a-entity. It did make the graph smaller, but now the graph is not visible in the 3d view (maybe it's too small now).

You can check it out here: https://rfg-ar.glitch.me/ar-aframe.html

What do you suggest? Is there any approach to this?

from aframe-forcegraph-component.

vasturiano avatar vasturiano commented on May 27, 2024

@devhims glad that worked.

As for the graph sizing, if you just need to make the whole graph larger/smaller, using the scale attribute is the right approach.
On the other hand if you find that there's just too much "empty space" in between the nodes/links you can try resizing those individually, for example by increasing node-rel-size (for all nodes) or node-val (individual per node).

from aframe-forcegraph-component.

devhims avatar devhims commented on May 27, 2024

Oh, that I did @vasturiano . It's working perfectly in AR mode. It's that in the 3d mode nothing is visible.

Screenshots:

3d

AR

from aframe-forcegraph-component.

devhims avatar devhims commented on May 27, 2024

Although I see it in the desktop browser - just not on mobile.

Screenshot 2021-07-20 at 6 17 17 AM

from aframe-forcegraph-component.

devhims avatar devhims commented on May 27, 2024

Actually, it started working on mobile as well now. Not sure why it wasn't previously (maybe my device orientation was not correct). Thanks for your help @vasturiano! 🙏

I encounter a separate issue with the react ar example, which I'll post in the related repo.

from aframe-forcegraph-component.

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.