3D Effect of sorts?

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Post Reply
corlenbelspar
Posts: 22
Joined: Tue Jan 24, 2012 2:56 am

3D Effect of sorts?

Post by corlenbelspar »

I'm trying to meticulously keep with NES limitations in my game, but I got an idea that might be a bit much for it though but I wanted to double check before I just threw the idea out the window. I know games like Rad Racer did things like this so I don't know if it's entirely impossible. I want a 256x32 region of the screen, the floor, to have a 3D effect of sorts where the closer pixels scroll faster. I know this could be done with scroll regions, but would it be possible to maintain a 3D type look like I have in the picture I attached? What NES tricks would I have to use to pull it off and how stressful would it be on the NES?
Attachments
Untitled.png
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: 3D Effect of sorts?

Post by tokumaru »

This effect is perfectly possible. Take a look at 3D World Runner and Cosmic Epsilon. I imagine the effect you're going for is even simpler, as the floor won't be moving toward the screen.

Cosmic Epsilon uses CHR bankswitching to select which pattern of squares to show, but if you only need to scroll left and right you don't even need that. Just draw the static floor and change the horizontal scroll every scanline. You won't be able to do any game processing once the 3D region starts, as most of the time will be spent on timed loops so that all scroll changes happen at the correct times.
corlenbelspar
Posts: 22
Joined: Tue Jan 24, 2012 2:56 am

Re: 3D Effect of sorts?

Post by corlenbelspar »

Awesome! :D I will definitely use this effect then.
User avatar
tokumaru
Posts: 12106
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: 3D Effect of sorts?

Post by tokumaru »

So you're making a Windows game that looks like a NES game and you don't want to deviate much from what the NES is actually capable of doing, is that right?
corlenbelspar
Posts: 22
Joined: Tue Jan 24, 2012 2:56 am

Re: 3D Effect of sorts?

Post by corlenbelspar »

Yeah pretty much. I thought it'd be a fun little project to do where I try to keep with the NES limitations as much as possible.
Post Reply