games or graphics for 3-D glasses? - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11) +--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2) +--- Thread: games or graphics for 3-D glasses? (/showthread.php?tid=3206) |
games or graphics for 3-D glasses? - madscijr - 11-11-2024 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... RE: games or graphics for 3-D glasses? - Pete - 11-11-2024 Stop encouraging bplus. I don't want to put on glasses to see his balls! Pete RE: games or graphics for 3-D glasses? - madscijr - 11-12-2024 (11-11-2024, 11:10 PM)Pete Wrote: Stop encouraging bplus. I don't want to put on glasses to see his balls!Oh now look who's encouraging who! RE: games or graphics for 3-D glasses? - vince - 11-12-2024 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 RE: games or graphics for 3-D glasses? - DANILIN - 11-12-2024 youtube Anaglyph playlist https://www.youtube.com/playlist?list=PLBBTP9oVY7IZMO7iAfyPLYffrAZW7xN14 but then I have masterred android 3d sbs stereo pairs RE: games or graphics for 3-D glasses? - vince - 11-12-2024 (11-12-2024, 07:12 AM)DANILIN Wrote: youtube Anaglyph playlistsome 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 RE: games or graphics for 3-D glasses? - madscijr - 11-15-2024 (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 doableSorry 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 playlistHowever 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? RE: games or graphics for 3-D glasses? - JRace - 11-15-2024 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. RE: games or graphics for 3-D glasses? - madscijr - 11-15-2024 (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.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) RE: games or graphics for 3-D glasses? - vince - 11-15-2024 (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.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 |