Jump to content

Post process issue with VR Camera.


tranlong021988
 Share

Recommended Posts

hi everyone, it's seem that an issue exist with VR stereoscope in WebVRFreeCamera and VRDeviceOrientationFreeCamera. 

Please check here: http://www.babylonjs-playground.com/#KBWBU

With this example, I just apply a post process to WebVRFreeCamera to modify brighness and contrast, but focus line 22, you can comment that operation to see what happen when apply post process to VR stereoscope. It seem that it give me wrong render result. 

Sorry for my poor English.

Link to comment
Share on other sites

it looks like rendering order issue. You need to do this preprocess, 

if there is such a thing. Modifying the brightness post has impacted  the alpha channel which controls the antialiasing, 

which ruins the edge definition. Maybe it is a bug? I don't think the alpha should be effected by brightness adjustment. 

 

 

Link to comment
Share on other sites

Hello,

The thing is until webgl 2.0 Texture Render Target does not support Anti Aliasing and you chosed to render in 0.25 so 1/4  (0.25 on line 9) of the screen creating the blocky effect.

In BJS post process are applied by first rendering to texture render target.

So by changing the render target ratio from 0.25 to 1 it removes the blocky effect but does not get rid of the aliasing effect:

http://www.babylonjs-playground.com/#KBWBU#4

This does not get rid of it fully due to Webgl limitations. To reduce it more you could also apply an Anti Aliasing Post Process of your choice.

There is nothing to do with transparency as those meshes are fully opaque.

Link to comment
Share on other sites

@JCPalmer: Let say I want to make a game, here is it(mobile browser only): https://dl.dropboxusercontent.com/u/86585940/BabylonWave/optimized5/index.html

When JetSki hit the 7Up can, I wanna make a bright screen effect applying a post process to camera. But it's seem that VR viewports between "before" and "after" not consistent. That issue calculate wrong projection distort. Can you see different result when commenting in/out line 22 ? 

I have record issue in action:

@chicagobob123 @Sebavan : It's about wrong projection distort, not about alisas. 

Link to comment
Share on other sites

I was able to get this working correctly today.  We used webvr poly fill with a strict implementation of the api and had to create our own device database because the Google one they have is incorrect.  Unfortunately we have no method of obtaining a phones dpi using javascript so it needs to be done through user agents.  But, most of the data on devices is incorrect.  Side note gear vr  takes advantage of the api unfortunately their device orientation prediction is terrible and introduces all sorts of latency.

 

Trying to get in touch with a Boston Samsung team that's working on this...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...