Hello there everyone
I had made an app vr based in web view using ip cast.
It work with a small delay as expected
And i need help how do i meke webview to be distorted like in google vr card board (barrel distortion)
Thannk you
Hello there everyone
I had made an app vr based in web view using ip cast.
It work with a small delay as expected
And i need help how do i meke webview to be distorted like in google vr card board (barrel distortion)
Thannk you
Why not show us what it is you are trying to do, and what you need the webviewer to do (that it is not doing) ?
Currently my app view is like this
And i want it tobe like this Not just the shape of webview but also the content of web view is also distorted.
Iam planing using my app viewing my espcam or playing android game via web server ip in cardboard vr headset
Is it possible?? If so then how??
Thank you...
More info needed:
Where do the projections come from, what format are they, etc.
I asked Gemini for you. Below is the answer
Taifun
To create a barrel distortion effect on an Android WebView for a Google Cardboard-like experience, you must apply a specific graphic transformation. Since WebView doesn't have a built-in feature for this, you'll need to use a technique that modifies the drawing of the view itself.
The most effective method is to use a Shader. A shader is a program that runs on the GPU and is used to render graphics. By applying a custom shader to your WebView, you can manipulate the pixels as they are being drawn to the screen, creating the barrel distortion effect.
Steps to Implement Barrel Distortion on WebView
Its too confusin the solution is out of my reach i guess i need to learn more bout graphic display on android
But anyway thank you taifun for the explanation
Lets move this to unity then hehe
Thankyou
Projection came from another phone cast ip screen in mjpeg format
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.