Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AltspaceVR React app is always 2D #122

Open
agustingp opened this issue Aug 29, 2018 · 0 comments
Open

AltspaceVR React app is always 2D #122

agustingp opened this issue Aug 29, 2018 · 0 comments

Comments

@agustingp
Copy link

agustingp commented Aug 29, 2018

I am using aframe-react in a React App that then I import in AltspaceVR as an Enclosure. The problem is that AltspaceVR always renders the shapes in 2D.
Here is my react app:

Import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import 'aframe';
import 'aframe-particle-system-component';
import {Entity, Scene} from 'aframe-react';
import ReactDOM from 'react-dom';

class App extends Component {
  render () {
    return (
      <Scene >
        <Entity geometry={{primitive: 'box'}} material={{color: 'red'}} position={{x: 0, y: 0, z: -5}}/>
        <Entity particle-system={{preset: 'snow'}}/>
        <Entity light={{type: 'point'}}/>
        <Entity gltf-model={{src: 'virtualcity.gltf'}}/>
        <Entity text={{value: 'Hello, WebVR!'}}/>
    </Scene>
    );
  }
}

export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant