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

Supporting two renders: one for basic scene, one for HUD #134

Open
SolomonSHY opened this issue Apr 7, 2016 · 0 comments
Open

Supporting two renders: one for basic scene, one for HUD #134

SolomonSHY opened this issue Apr 7, 2016 · 0 comments

Comments

@SolomonSHY
Copy link

Hi, any help would be appreciated! I'm trying to render twice, one for the main scene and one for a Heads Up Display. I'm following the example here: http://codepen.io/jaamo/pen/MaOGZV
Although the HUD displays correctly in normal mode, I'm getting blank screens in WebVR mode (left eye white and right eye black). Has anyone encountered this issue?

// ---- Renderer
renderer = new THREE.WebGLRenderer( {
antialias: false,
alpha: true
} );
renderer.setSize( WIDTH, HEIGHT );
renderer.setPixelRatio( pixelRatio );
renderer.setClearColor( 0x000000, 1 );
renderer.autoClear = false;
container.appendChild( renderer.domElement );

//animate function
// Render the scene through the manager.
renderer.clear();
manager.render(scene,camera,timestamp);
manager.render(sceneHUD,cameraHUD,timestamp);

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