Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
games or graphics for 3-D glasses?
#1
Lightbulb 
Has anyone tried making a game or graphics that look 3D when you put on the funny glasses, like they did in the '50s? I wonder how that might work...
Reply
#2
Stop encouraging bplus. I don't want to put on glasses to see his balls!

Pete Big Grin
Shoot first and shoot people who ask questions, later.
Reply
#3
(11-11-2024, 11:10 PM)Pete Wrote: Stop encouraging bplus. I don't want to put on glasses to see his balls!

Pete Big Grin
Oh now look who's encouraging who!
Reply
#4
I don't have any such glasses myself but the cheap red and blue ones should be doable

try the following mod and use left/right arrow keys to adjust the distance between your eyes

Reply
#5
youtube Anaglyph playlist

https://www.youtube.com/playlist?list=PL...frAZW7xN14

but then I have masterred android 3d sbs stereo pairs
Write name of program in 1st line to copy & paste & save filename.bas
Insert program pictures: press print-screen-shot button
Open paint & Paste & Save as PNG
Add picture file to program topic

Russia looks world from future. Big data is peace data.
I never recommend anything & always write only about myself
Reply
#6
(11-12-2024, 07:12 AM)DANILIN Wrote: youtube Anaglyph playlist

https://www.youtube.com/playlist?list=PL...frAZW7xN14

but then I have masterred android 3d sbs stereo pairs
some nice mods there, surprised how messy the red/blue artifacts are, i guess you really need the glasses to make this work dev-wise

btw how did you make your glasses, danilin?  there's no blue traffic lights here, unfortunately
Reply
#7
(11-12-2024, 06:06 AM)vince Wrote: I don't have any such glasses myself but the cheap red and blue ones should be doable

try the following mod and use left/right arrow keys to adjust the distance between your eyes
Sorry for the delayed response, it took a couple of days to get some actual 3D glasses! 
These were $5.98 at Amazon: 
I tried running the code and adjusting the distance with the arrows, but didn't really get a sense of 3D. 

(11-12-2024, 07:12 AM)DANILIN Wrote: youtube Anaglyph playlist

https://www.youtube.com/playlist?list=PL...frAZW7xN14

but then I have masterred android 3d sbs stereo pairs
However the above youtube page above totally looks 3D with the glasses on.

So, why didn't the code work? If you hold up your finger and look at it with your left eye closed, then your right eye closed, the distance between it increases as you move your finger closer to your face. So I'm thinking that the nearer to the viewer we want the image to appear, the further apart the red and cyan frames need to be.

So for the above demo to work, we would need to alter the code so as the "z" coordinate increases (ie closer to the viewer), the further apart the right/left distance between the two is.

It's too late right now to play with the code, but that's my general theory that I might work from.

Thoughts?
Reply
#8
Yes, you need to create two images in either full color or black/white: one from the perspective of the left eye and one from the perspective of the right eye, with each image tinted to a color which matches the appropriate lens color of the glasses.

Those images must be semi-transparent so that they can be overlappped into one image for viewing through the glasses.

Perspective-wise, image details that are closer to the eye will lead to their red & blue versions being farther apart.

Google "how create red blue anaglyph" or just "red blue anaglyph" for more info.
Reply
#9
(11-15-2024, 11:18 AM)JRace Wrote: Yes, you need to create two images in either full color or black/white: one from the perspective of the left eye and one from the perspective of the right eye, with each image tinted to a color which matches the appropriate lens color of the glasses.

Those images must be semi-transparent so that they can be overlappped into one image for viewing through the glasses.

Perspective-wise, image details that are closer to the eye will lead to their red & blue versions being farther apart.

Google "how create red blue anaglyph" or just "red blue anaglyph" for more info.
That all makes sense - I think what we need to make Vince's little demo look 3D is a function to draw the red and cyan frames each from a given perspective (would this be 3-point perspective? I don't know anything about 3-D graphics), and the farther away we are drawing, the less shifted to the right or left the red & cyan are away from each other. 

I think a cool application for this would be to mod one of the QB64 Minecraft clones, or for vector graphics, a clone of Atari's Tempest! (please God... I mean Ken... let that be your next QB64PE arcade clone! LoL)
Reply
#10
(11-15-2024, 05:28 AM)madscijr Wrote: So, why didn't the code work? If you hold up your finger and look at it with your left eye closed, then your right eye closed, the distance between it increases as you move your finger closer to your face. So I'm thinking that the nearer to the viewer we want the image to appear, the further apart the red and cyan frames need to be.

So for the above demo to work, we would need to alter the code so as the "z" coordinate increases (ie closer to the viewer), the further apart the right/left distance between the two is.

It's too late right now to play with the code, but that's my general theory that I might work from.

Thoughts?
I see what you mean -- this is truly mad science.  I may get a pack of those as well my next amazon order, either that or ruin some reading glasses, and get back to you
Reply




Users browsing this thread: 1 Guest(s)