Page 1 of 2

Cross Eye 3D effect in 2D game!

PostPosted: Wed May 30, 2012 5:14 pm
by lcl
Hello all!

I found this video from youtube some time ago:
http://www.youtube.com/watch?v=zBa-bCxsZDk
And I thought it was quite amazing.
So I thought what about making a game use that same system to produce
the effect of depth.

And here is what I've done now, a little demo game that will allow you to see a 2D game with the realistic sense of depth in it.
It may take some practice to learn to cross your eyes enough to make the 2 pictures to come 1 but I learnt it very quickly.

This idea could be developed if there is people interested in it.
What this demo does is simply that it has the game and a canvas that uses my Resolutionarys codes to draw the same game to the other screen.
-
Hey wait, did I say the SAME game?
It actually draws NEARLY the same vision. The objects are just moved in x coordinates a little to produce the effect of depth.
The more the object is moved the closer it will seem to be. The movement of the actors is controlled with an actor variable 'z'.
The actors z values are defined at their Create Actor events, go and experiment with them!

I hope this at least creates some conversation here :D

DOWNLOAD:
http://www.mediafire.com/?y2a5dubfxiy160o

Re: Cross Eye 3D effect in 2D game!

PostPosted: Wed May 30, 2012 6:44 pm
by JamesLeonardo32
This'll come in handy for some split screen 2 player mode!
The 3d effect is a bit limited because i think the best effect can be done with parallax scrolling.

Other than that, this is a good start! Good work lcl!

Re: Cross Eye 3D effect in 2D game!

PostPosted: Wed May 30, 2012 7:57 pm
by lcl
JamesLeonardo32 wrote:The 3d effect is a bit limited because i think the best effect can be done with parallax scrolling.

...THIS is the 3D effect just in the same form as your brain forms it from the information that your eyes see. Not the effect of depth, but the SENSE of depth. :D
Did you watch the video and after that try the demo?

You have to cross your eyes and make the 2 pictures come 1.

AND this could be combined with parallax scrolling to create even better sensation of depth!

Thanks anyway! :)

JamesLeonardo32 wrote:This'll come in handy for some split screen 2 player mode!

You might be interested of one unpublished game project of mine that is still on a demo state. It is a two-player game with splitscreen. And the splitscreen effect is done with two canvas actors.
I could maybe upload it here. :)

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 12:21 am
by JamesLeonardo32
I did watch the video before playing, and just watched it again. Parallax helps add a sense of depth, but i think you need one camera slightly to the right in terms of x so theres a slight difference in each screen. This explains it better:

http://www.youtube.com/watch?feature=pl ... Mejw#t=26s

Also It would be nice to have more space to run so im not constantly going back &forth cross eyed!


Id like to see this demo ;)

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 1:40 am
by Hblade
HOW does your mind know whats in front and whats not O.O

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 6:27 am
by lcl
JamesLeonardo32 wrote:I did watch the video before playing, and just watched it again. Parallax helps add a sense of depth, but i think you need one camera slightly to the right in terms of x so theres a slight difference in each screen.

It already has, the actors are drawn in different positions in the window on the right.. :D
JamesLeonardo32 wrote:Also It would be nice to have more space to run so im not constantly going back &forth cross eyed!

This is just a demo of the thing, not a game so it doesn't need to have that much space.
JamesLeonardo32 wrote:Id like to see this demo ;)

Yeah, I could upload it to the forum some day. :D

Hblade wrote:HOW does your mind know whats in front and whats not O.O

Just as it does when you watch the real world :D When you see things from two different angles you are able to calculate their distance and that's what your brain does when you look at real world or when you look at these two different pictures combined as one :D

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 11:22 am
by Game A Gogo
owie, my monitor is too big to look at it cross eyed! Not to mention the strain on the eyes while playing... I wouldn't recommend this for a game, but interesting nonetheless!

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 11:49 am
by DST
These are called StereoGrams.

Hblade wrote:HOW does your mind know whats in front and whats not O.O


The closer two objects are, the closer they appear.
The farther apart, the further away they appear.


I used to make these back in high school, but my art teacher wouldn't give me credit for them because he couldn't see them (it's a schooner!).

LCl, your sample picture is inverted. The caveman appears to be inside the tree.

Anyway, this was the method nintendo used with the virtual boy gaming system. It was also used the 'viewmaster' toy from my childhood, and back to the 20's when they had stereo movies, and is the main component of 3d both blue/red and modern, and hologram stickers too.

I have 'lazy eye' where my eyes do this on their own. Sometimes when i go to a hotel with a repeating pattern in the carpet, i get dizzy and lose depth because for me it's automatic. I can read through a 3d stereogram book nearly instantly - it takes me about 3 seconds to match up stereograms.

There are downsides though. Some people can't do it easily or at all. For those that can, it tends to result in headaches after a time http://www.pwnem.com/t-why-virtual-boy-failed-so-hard


But, it's good that you're looking in this direction. What might you find that's better? That conveys depth without resorting to eye strain?

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 12:20 pm
by lcl
DST wrote:The closer two objects are, the closer they appear.
The farther apart, the further away they appear.

That's in parallel eye 3D, it's pretty much the same as this but instead of having your eyes crossed you look "through" the monitor.

With this system it is the farther two objects are the closer they appear. :D

DST wrote:LCl, your sample picture is inverted. The caveman appears to be inside the tree.

It actually isn't. It depends on the technique you use.
It seems that you use the parallel eye (http://www.youtube.com/watch?v=h08_mPjpDj8) technique, while I planned it for cross eye (http://www.youtube.com/watch?annotation ... nwnz5ms3Do) technique.
See the difference in the two videos, in the first one you stare "through" the screen, have your concentration farther away than the screen is and in the second one you cross your eyes and have your concentration closer than the screen. :D

I admit that this doesn't work for a complete game, it would be a pain to play it. But I just wanted to try making this :D

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 1:05 pm
by DST
Cross eye!?

YOU ARE INSANE!

That hurts! Also is blurry. Also you're insane.

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 1:36 pm
by JamesLeonardo32
Heres my attempt at a 3ds method.

Use up & down to adjust transparancy.

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 4:21 pm
by Game A Gogo
DST wrote:Cross eye!?

YOU ARE INSANE!

That hurts! Also is blurry. Also you're insane.


Your theory is approved by all major scientists of the world!

EDIT:
I tried this again, i can't keep my eyes at the right cross-eyed-ness, and even if I could, it gets so blurry I can't even recognize anything XD\
I can only cross my eyes by trying to focus on my nose, hence why it becomes so blurry because then my eyes try to focus on the nose, not the monitor :P

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 4:24 pm
by Hblade
Actually DST if you try hard enough, and get the right level of focus after crossing, its crystal-clear :D... almost..

Anyways, its interesting but yeah it hurts xD BTW how the heck did someone figure this out?

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 5:43 pm
by lcl
First of all:
DST wrote:YOU ARE INSANE!

Thanks!
DST wrote:That hurts! Also is blurry. Also you're insane.

No, for me it's not blurry but just clear. I find parallel eye technique a lot more difficult to use, I can't get the images to overlap.
But with littler pictures I've succeeded and I have to admit it wasn't as painful as cross-eyed is..

JamesLeonardo32 wrote:Heres my attempt at a 3ds method.

Use up & down to adjust transparancy.

How is one supposed to make this look clear?

Game A Gogo wrote:Your theory is approved by all major scientists of the world!

What do you mean with this?

Hblade wrote:Actually DST if you try hard enough, and get the right level of focus after crossing, its crystal-clear :D... almost..

Anyways, its interesting but yeah it hurts xD BTW how the heck did someone figure this out?

My eyes "lock" to the picture when I get them to overlap. And it is perfectly clear to me :D
And the inventor of this was probably some guy whose eyes are stuck crossed.. :wink:

Re: Cross Eye 3D effect in 2D game!

PostPosted: Thu May 31, 2012 6:58 pm
by Game A Gogo
lcl wrote:
Game A Gogo wrote:Your theory is approved by all major scientists of the world!

What do you mean with this?

in other words, DST is right :)