3D-ized 2D, a sort of challenge or a how to question... - 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: 3D-ized 2D, a sort of challenge or a how to question... (/showthread.php?tid=2556) Pages:
1
2
|
3D-ized 2D, a sort of challenge or a how to question... - madscijr - 03-30-2024 I was thinking and wondering how one might skew 2D Space Invaders to look 3D, like and also have photoreal stars scrolling in the background, like simularly skewed, playing in a loop. With the scene sometimes flying through space dust clouds, like Just something I imagined. The actual game play would similar to the classic game except the aliens might move in more interesting ways, like have the entire formation move around at times or have rows or columns of them move on & off screen, and let the player fire 2 or more shots. But mainly I'm curious how you would skew the 2D to look 3D and do the 3D scrolling and moving through clouds (which could at times obscure the view)... The game itself would be programmed and behave like a 2D game though. focus in you emojis RE: 3D-ized 2D, a sort of challenge or a how to question... - TerryRitchie - 03-30-2024 Yeah, I played around with this idea some time back as well. I thought _MAPTRIANGLE would work for this, but nope, run the code to see the problem. Code: (Select All) DIM Image AS LONG RE: 3D-ized 2D, a sort of challenge or a how to question... - Petr - 03-30-2024 Why didn't you turn it around? Just add what's missing at the top to the bottom so that you have the whole thing at the top? Code: (Select All)
RE: 3D-ized 2D, a sort of challenge or a how to question... - TerryRitchie - 03-30-2024 The image is stilled skewed weird though for me. Is it ok for you? The image below is what I get with your code. RE: 3D-ized 2D, a sort of challenge or a how to question... - TerryRitchie - 03-30-2024 Well, I thought I was being smart in thinking three tirangles were needed. Use the same image in my post above. It's closer, but still wonky. (image attached below is the result) Code: (Select All) DIM Image AS LONG RE: 3D-ized 2D, a sort of challenge or a how to question... - Petr - 03-30-2024 Really, output is not good. So then you can use hardware images, output is better. Code: (Select All)
it's just that it gets a little more complicated, the movement of the game will run in the virtual software screen and it will be copied as a hardware screen. Yeah, it's a little complicated. I tried with MapTriangle (2D) to figure out why it distorts, I couldn't figure it out. RE: 3D-ized 2D, a sort of challenge or a how to question... - Petr - 03-30-2024 To the question above - motion of the stars - here is the solution in the form of a hardware image - it shows how to get the motion into the hardware image. Code: (Select All)
RE: 3D-ized 2D, a sort of challenge or a how to question... - TerryRitchie - 03-30-2024 (03-30-2024, 11:02 PM)Petr Wrote: Really, output is not good. So then you can use hardware images, output is better. Ah ha! A 3D component is needed. Thank you for figuring this out. RE: 3D-ized 2D, a sort of challenge or a how to question... - madscijr - 03-31-2024 I can't wait to get to a PC and try these code samples! I'm wondering how to get the 3d scrolling of the background stars toward the player (kind of like that old Atari game Sky Raider but without the curved effect). Here's a mockup of the background: And a mockup of flying thru dust clouds: Thanks for playing with this, and Happy Easter (N/) (..) C(")(") RE: 3D-ized 2D, a sort of challenge or a how to question... - madscijr - 03-31-2024 (03-30-2024, 11:02 PM)Petr Wrote: Really, output is not good. So then you can use hardware images, output is better.That's pretty good. Thanks for sharing this solution. (03-30-2024, 11:16 PM)Petr Wrote: To the question above - motion of the stars - here is the solution in the form of a hardware image - it shows how to get the motion into the hardware image.Interesting. So I just need to change the scrolling direction to down, then have it use the map triangle to skew it into pseudo 3d. I'll give it a try. . . Thanks again |