Cross Eye 3D effect in 2D game!

Talk about making games.

Cross Eye 3D effect in 2D game!

Postby lcl » Wed May 30, 2012 5:14 pm

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
Attachments
crosseye3D.png
You can try the effect with this picture
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

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

Postby JamesLeonardo32 » Wed May 30, 2012 6:44 pm

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!
JamesLeonardo32
 
Posts: 320
Joined: Wed Oct 13, 2010 4:57 pm
Score: 36 Give a positive score

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

Postby lcl » Wed May 30, 2012 7:57 pm

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. :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

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

Postby JamesLeonardo32 » Thu May 31, 2012 12:21 am

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 ;)
JamesLeonardo32
 
Posts: 320
Joined: Wed Oct 13, 2010 4:57 pm
Score: 36 Give a positive score

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

Postby Hblade » Thu May 31, 2012 1:40 am

HOW does your mind know whats in front and whats not O.O
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

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

Postby lcl » Thu May 31, 2012 6:27 am

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
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

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

Postby Game A Gogo » Thu May 31, 2012 11:22 am

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!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

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

Postby DST » Thu May 31, 2012 11:49 am

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?
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

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

Postby lcl » Thu May 31, 2012 12:20 pm

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
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

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

Postby DST » Thu May 31, 2012 1:05 pm

Cross eye!?

YOU ARE INSANE!

That hurts! Also is blurry. Also you're insane.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

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

Postby JamesLeonardo32 » Thu May 31, 2012 1:36 pm

Heres my attempt at a 3ds method.

Use up & down to adjust transparancy.
Attachments
crossEye3DS.rar
(481.52 KiB) Downloaded 170 times
JamesLeonardo32
 
Posts: 320
Joined: Wed Oct 13, 2010 4:57 pm
Score: 36 Give a positive score

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

Postby Game A Gogo » Thu May 31, 2012 4:21 pm

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
Last edited by Game A Gogo on Thu May 31, 2012 4:24 pm, edited 1 time in total.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

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

Postby Hblade » Thu May 31, 2012 4:24 pm

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?
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

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

Postby lcl » Thu May 31, 2012 5:43 pm

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:
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

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

Postby Game A Gogo » Thu May 31, 2012 6:58 pm

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 :)
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Next

Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron