Chaos Corona Forum

Chaos Corona for 3ds Max => [Max] I need help! => Topic started by: amitshneor on 2015-12-15, 17:23:55

Title: Corona and virtual reality content
Post by: amitshneor on 2015-12-15, 17:23:55
I have a question about the process of VR 360 stereo content creation.

I'm doing a deep rnd about VR.  I have Samsung gear VR .
I know how to make a 2d 360 image or movie with the corona camera modifier
Set to spherical rendering. All good in 2d.
But to create a 360 stereo side by side image for the gear, I now work like this:
I make a stereo rig in 3dsmax basic tools, which creates  a left and right
Cameras, determining the distance between the eyes and the zero plane with the stereo rig.
Then I put a corona cam mod on top of each camera and setting it to spherical.
The result is like this: in the middle of my view , the stereo effect is quite ok, but as I look left or right the effect is almost gone.
Testing with octane render and vray, which both treat this subject in making a spherical render on top of one camera only, octane adding stereo parameters in camera, and vray with the stereo helper,
Their images have the stereo effect of near and far all over the 360 view!!
I can't get corona to achive the same effect.

Is there a better way of doing 360 VR stereo images or clips in corona??

Thanks!!
Title: Re: Corona and virtual reality content
Post by: Ondra on 2015-12-15, 17:28:35
I will probably play with VR very, very soon ;)
Title: Re: Corona and virtual reality content
Post by: maru on 2015-12-15, 17:35:22
I am doing some VR tests right now. I am really close of getting (hopefully) some usable results. Will share any info as soon as I get it working.
Title: Re: Corona and virtual reality content
Post by: pokoy on 2015-12-15, 17:40:26
Sounds great, I'd love to play with 360° VR content, looking forward to any news on that.
Title: Re: Corona and virtual reality content
Post by: Juraj on 2015-12-15, 17:56:47
.
Then I put a corona cam mod on top of each camera and setting it to spherical.


That is because those cameras are not truly spherical :- ) They orbit on path.

Lasse Rode has create a makeshift guide to bypass current limitation on his Facebook:
https://www.facebook.com/photo.php?fbid=10153743333392277&set=a.192220252276.126868.634197276&type=3&theater

But it's too complicated...let's wait for official solution to get implementated.
Title: Re: Corona and virtual reality content
Post by: racoonart on 2015-12-15, 18:28:51
Lasse Rode has create a makeshift guide to bypass current limitation on his Facebook:
https://www.facebook.com/photo.php?fbid=10153743333392277&set=a.192220252276.126868.634197276&type=3&theater

But it's too complicated...let's wait for official solution to get implementated.
Well, with his script (or some own lines of code ;) ) not too complicated, basically a one-click-solution, but it's impractical in my opinion, since you cannot judge if it works or not until you got all stripes.
Title: Re: Corona and virtual reality content
Post by: Juraj on 2015-12-15, 20:06:27
Well, with his script (or some own lines of code ;) )

This is where it gets complicated for us mortals :- )
Title: Re: Corona and virtual reality content
Post by: peterguthrie on 2015-12-15, 20:55:46
Well, with his script (or some own lines of code ;) )

This is where it gets complicated for us mortals :- )

hahahaha, and amen.
Title: Re: Corona and virtual reality content
Post by: racoonart on 2015-12-15, 21:42:46
Well, what I meant was that it is easy to write a script (for the immortal ones :P ) and release it to the public. I could probably be done in under an hour, but the result is in my opinion inferior in a way that it's not worth it - just an ugly hack. Looking at the poles will cause nausea and the aliasing between the stripes isn't nice.
Title: Re: Corona and virtual reality content
Post by: amitshneor on 2015-12-16, 16:31:36
well guys...
as of now, all my attempts to render 360 stereo using 2 cameras and a sphere cam modifier is a no go !

the vray implementation is very good, taking into account all distortions at the poles and stereo shifting in all 360 degrees at once.

i love corona renderer , it has changed my life from mental ray so much, but trying to get to the VR world now is very problematic in corona.

dear developers, what are your thoughts on the matter? i know its not on the roadmap but can you give us some solution?
maybe a 6-cube-cam-stereo-rig 'ish...?
pretty please...??

Amen to THAT !
Title: Re: Corona and virtual reality content
Post by: Ondra on 2015-12-16, 16:42:50
I have a working protype, it will be in daily builds once they resume
Title: Re: Corona and virtual reality content
Post by: rambambulli on 2015-12-17, 12:22:34
GREAT!!
Title: Re: Corona and virtual reality content
Post by: maru on 2015-12-17, 13:23:48
Here is my guide:
https://forum.corona-renderer.com/index.php/topic,10592.msg67619.html#msg67619
If someone has time to test it, it would be appreciated. Let me know if I made some mistake in it, or if something doesn't work. This is the "unofficial" way. VR support should be soon in Corona.
Title: Re: Corona and virtual reality content
Post by: ylucic on 2015-12-17, 22:00:34
stereo cube maps are awesome...clients easily load them on to theirs gearvr and voilá ...
since its needed to spent time in some scenes "filling" with props or doing some stuff all over for vr, it would be nice to have a few clicks options to do the export...
great to know you have something started already :)
Title: Re: Corona and virtual reality content
Post by: romanbuha on 2016-01-20, 19:59:27
I'm really happy to read here that you are trying to improve VR rendering in Corona soon!

It will be fantastic!

P.S. We work now on a big project and will need VR rendering option very much - to present it to a clients!
If that option will be available in Corona - we will be not in need of VRay.

Really waiting for that option!

Thanks!
Title: Re: Corona and virtual reality content
Post by: Ondra on 2016-01-20, 20:11:38
it is already there, try daily builds ;)
Title: Re: Corona and virtual reality content
Post by: fredrik.simu@tengbom.se on 2016-04-02, 07:50:41
Hi everyone!
I've just tried to render stereoscopic 3d in corona. I was able to get a spherical image 2:1 ratio at 2048px (so left+right gives me a 2048x2048 image)
It works fine in my samsung gear vr, but theres a slight distortion near the poles. I did not get this problem with v-ray, since it renders a 12x1 cubestrip with resolution 1536x18432px
Can I just increase the resolution when rendering a spherical projection in corona, or is there a way to render a cubemap instead?
(Somehow I get the impresion that gear vr requires spherical panos to be at 2048px, just as it requires the cubestrips to be exactly 1536px height or else gear vr will display visible seams at the edges of each cubeface)
Kind regards
/Fredrik Simu

Update: OK, I just tried to increase resolution to 4096x4096. Works like a charm in samsung gear vr. Still a slight visible distortion at the top pole, but nothing I can't live with. I love the fact that i can save and view a preview after only 5 minutes of rendering :-)
Title: Re: Corona and virtual reality content
Post by: PROH on 2016-04-02, 10:12:59
Hi. I've too have seen this distortion at the poles. I found out that if "eyes front" (second parameter - can't remember the exact name) is set to 0 then the distortion goes away. I also found that 4048 x 4048 is the smallest usable resolution.