-
-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MODE7 sample #24
Comments
Hi, |
I find it is not a good idea. If you remove it, nobody will try to improve it or implement new functionalities for this mode. I think you already spent a lot of time on it so it should be better to separate in a new branch or in develop branch and why not create a roadmap to specify list of improvements to do :) |
ok, right. I will update the example and try to clean a little mode7 code (some const are not used by the code) :) |
I saw this link on mode 7 implementation : I think it will be useful :) |
Hi alekmaul, you did a great work with this code!. I also wanted to test some "mario kart" mode 7, and I saw this video about how it works: I remember some time ago I compiled the mode7 sample, and it has all necesary functions to do it (I think). You just have to enable a mode 7 background, and then change the scalling every scanline using HDMA. Now scrolling and rotating the background, with the pvsneslib functions you already have, will result in a fake camera moving above the plane. My programming skills are not good, so I was not able to test it. Also you can add a sample using HDMA to change the scroll every scanline to make wavy backgrounds. Thanks! |
Nice video, thanks. |
I did not understand very well the assembly source code from kannagy, so I used the HDMA sample from pvsneslib, and figured out how to change other registers (not just the brightness). I "kind of" made it work, using only c code and pvsneslib. But the math involved in rotation and zoom in mode 7 is not easy, and the perspective is wrong. I hope this image can be seen, (for some time at least): If someone is interested and knows a bit of math... :) |
You can upload a picture and display it directly in github without using a link on internet. You just need to drag and drop it in the text area. You first result is cool and near the final known result. |
I got it!. It does not rotate, (That part is not easy...), but it looks perfect. I used the sky and map from kannagy's sample: Here you have the source and compiled sample: |
I tried it ! thanks, it is really impressive. There no much line to produce it :) What's your next objective ? :) |
You have to watch this video to understand how the tables work: https://www.youtube.com/watch?v=K7gWmdgXPgk&t=526s |
@mills32 , can I add your example to snes examples for next release ? |
Of course you can.
Thanks!
El vie, 27 nov 2020 a las 18:10, alekmaul (<[email protected]>)
escribió:
… @mills32 <https://github.com/mills32> , can I add your example to snes
examples for next release ?
I will modify it a bit, and don't worry, I will credit you about source
code ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGEYTT6DOV2W5S2G5BUDJJTSR7MO5ANCNFSM4GZ665NA>
.
|
Hi, Thank you, the mode 7 code has been cleaned by Alekmaul for the last release and he added the new perspective sample. The next step will be probably to add functionality to turn, if someone want to help :) I close the issue |
Hello,
I tried Mode7 sample under graphics/Backgrounds folder but it miss few lines of code.
sz et sx variable are declared but not used (except to increase/decrease it).
scanPads() function is called and i thought it was no more useful (already included in other function?) but in this sample if i remove it, keys are not updated. Maybe because Mode7 functions are specific ? (like consoleVblankMode7)
I tried setMode7Angle function but it don't seems change something.
I see in source code that 2 other functions exists (these functions are not available in documentation) : setMode7MoveForwardBack and setMode7MoveLeftRight but they give "implicit declaration of function ...." when i use it.
Could you please update this sample ?
Thanks
The text was updated successfully, but these errors were encountered: