TurboWarp / extensions

User-contributed unsandboxed extension gallery for TurboWarp
https://extensions.turbowarp.org/
MIT License
115 stars 231 forks source link

Suggestion: SNES Mode 7 Extension #440

Open Meehdrescher opened 1 year ago

Meehdrescher commented 1 year ago

The SNES has 8 graphics modes from 0 to 7, and the 7. mode is used in games like Super Mario Kart or F-Zero to create the illusion of a 3D world by rotating and skewing a 2D sprite. Larger RPG games use this mode too. grafik grafik grafik (Images are from an emulator with HD rendering similar to high quality pen in TW)

ghost commented 1 year ago

I don't get it.

GarboMuffin commented 1 year ago

if you don't get it then don't comment...

TheShovel commented 1 year ago

This would be cool, but I think we straight up need a 3D rendering extension. Replacing a sprites costume with the output of something like Three.js should be enough. I have no experience with Three.js, tho. Someone who knows what they are doing should probably give it a shot.

echoless3484 commented 1 year ago

This would be freaking awesome

David-Orangemoon commented 1 year ago

This would be cool, but I think we straight up need a 3D rendering extension. Replacing a sprites costume with the output of something like Three.js should be enough. I have no experience with Three.js, tho. Someone who knows what they are doing should probably give it a shot.

I mean old Pen+ could do this effect pretty well it's just that that version was inefficient.

Meehdrescher commented 1 year ago

I mean old Pen+ could do this effect pretty well it's just that that version was inefficient.

Do you happen to have access to the old version? I'd like to try it out.

David-Orangemoon commented 1 year ago

It's on the gallery

On Fri, May 26, 2023, 12:53 PM Meehdrescher @.***> wrote:

I mean old Pen+ could do this effect pretty well it's just that that version was inefficient.

Do you happen to have access to the old version? I'd like to try it out.

— Reply to this email directly, view it on GitHub https://github.com/TurboWarp/extensions/issues/440#issuecomment-1564664921, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASKLQSMHG5H3AQBTZB3KKJLXIDNZPANCNFSM6AAAAAAYIVYCRI . You are receiving this because you commented.Message ID: @.***>

Meehdrescher commented 1 year ago

It's on the gallery

I just went through all the different versions and I can't seem to find the one that allegedly has the mode 7 effect.

David-Orangemoon commented 1 year ago

You are going to have to make it somewhat manually by just having a simple 3d projection.

On Fri, May 26, 2023, 4:20 PM Meehdrescher @.***> wrote:

It's on the gallery I just went through all the different versions and I can't seem to find the one that allegedly has the mode 7 effect.

— Reply to this email directly, view it on GitHub https://github.com/TurboWarp/extensions/issues/440#issuecomment-1564902568, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASKLQSPQAM3GNYYCQNVFATDXIEGAZANCNFSM6AAAAAAYIVYCRI . You are receiving this because you commented.Message ID: @.***>

Meehdrescher commented 1 year ago

You are going to have to make it somewhat manually by just having a simple 3d projection.

That would work and I've already managed to do that, but it's resource intensive and the UV mapping is weird.

David-Orangemoon commented 1 year ago

You are going to have to make it somewhat manually by just having a simple 3d projection.

That would work and I've already managed to do that, but it's resource intensive and the UV mapping is weird.

Yeah I'm trying to fix the resource issue.

Meehdrescher commented 1 year ago

I strongly suggest that you fix the UVs for triangles, since with the simple 3d projection, it can cause PSX-like major texture warping issues which cannot be resolved without modifying the extension (which I have no clue how to do)... Anyways, here is a site that explains why it occurs: http://graphics.stanford.edu/courses/cs248-98-fall/Lectures/lecture18/slides/walk014.html

Am Fr., 26. Mai 2023 um 23:18 Uhr schrieb Obvious Alex C < @.***>:

You are going to have to make it somewhat manually by just having a simple 3d projection.

That would work and I've already managed to do that, but it's resource intensive and the UV mapping is weird.

Yeah I'm trying to fix the resource issue.

— Reply to this email directly, view it on GitHub https://github.com/TurboWarp/extensions/issues/440#issuecomment-1564967033, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAFW2ZUGIMRKW7MVOXZU7DXIEM23ANCNFSM6AAAAAAYIVYCRI . You are receiving this because you modified the open/close state.Message ID: @.***>

David-Orangemoon commented 1 year ago

That is where the depth block comes in handy. It's going to be renamed to corner pinch.

On Sat, May 27, 2023, 9:48 AM Meehdrescher @.***> wrote:

I strongly suggest that you fix the UVs for triangles, since with the simple 3d projection, it can cause PSX-like major texture warping issues which cannot be resolved without modifying the extension (which I have no clue how to do)... Anyways, here is a site that explains why it occurs:

http://graphics.stanford.edu/courses/cs248-98-fall/Lectures/lecture18/slides/walk014.html

Am Fr., 26. Mai 2023 um 23:18 Uhr schrieb Obvious Alex C < @.***>:

You are going to have to make it somewhat manually by just having a simple 3d projection.

That would work and I've already managed to do that, but it's resource intensive and the UV mapping is weird.

Yeah I'm trying to fix the resource issue.

— Reply to this email directly, view it on GitHub < https://github.com/TurboWarp/extensions/issues/440#issuecomment-1564967033 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AUAFW2ZUGIMRKW7MVOXZU7DXIEM23ANCNFSM6AAAAAAYIVYCRI

. You are receiving this because you modified the open/close state.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/TurboWarp/extensions/issues/440#issuecomment-1565426415, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASKLQSISCVIDCOIWGEB6A2TXIIA3XANCNFSM6AAAAAAYIVYCRI . You are receiving this because you commented.Message ID: @.***>

Meehdrescher commented 1 year ago

So I set the depth to the projected Z coordinate of the point?

Am Sa., 27. Mai 2023 um 15:50 Uhr schrieb Obvious Alex C < @.***>:

That is where the depth block comes in handy. It's going to be renamed to corner pinch.

On Sat, May 27, 2023, 9:48 AM Meehdrescher @.***> wrote:

I strongly suggest that you fix the UVs for triangles, since with the simple 3d projection, it can cause PSX-like major texture warping issues which cannot be resolved without modifying the extension (which I have no clue how to do)... Anyways, here is a site that explains why it occurs:

http://graphics.stanford.edu/courses/cs248-98-fall/Lectures/lecture18/slides/walk014.html

Am Fr., 26. Mai 2023 um 23:18 Uhr schrieb Obvious Alex C < @.***>:

You are going to have to make it somewhat manually by just having a simple 3d projection.

That would work and I've already managed to do that, but it's resource intensive and the UV mapping is weird.

Yeah I'm trying to fix the resource issue.

— Reply to this email directly, view it on GitHub <

https://github.com/TurboWarp/extensions/issues/440#issuecomment-1564967033

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AUAFW2ZUGIMRKW7MVOXZU7DXIEM23ANCNFSM6AAAAAAYIVYCRI

. You are receiving this because you modified the open/close state.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/TurboWarp/extensions/issues/440#issuecomment-1565426415 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ASKLQSISCVIDCOIWGEB6A2TXIIA3XANCNFSM6AAAAAAYIVYCRI

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/TurboWarp/extensions/issues/440#issuecomment-1565426838, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUAFW236CAT25XHWHLEVC53XIIBBPANCNFSM6AAAAAAYIVYCRI . You are receiving this because you modified the open/close state.Message ID: @.***>

David-Orangemoon commented 1 year ago

Yeah

On Sat, May 27, 2023, 10:08 AM Meehdrescher @.***> wrote:

So I set the depth to the projected Z coordinate of the point?

Am Sa., 27. Mai 2023 um 15:50 Uhr schrieb Obvious Alex C < @.***>:

That is where the depth block comes in handy. It's going to be renamed to corner pinch.

On Sat, May 27, 2023, 9:48 AM Meehdrescher @.***> wrote:

I strongly suggest that you fix the UVs for triangles, since with the simple 3d projection, it can cause PSX-like major texture warping issues which cannot be resolved without modifying the extension (which I have no clue how to do)... Anyways, here is a site that explains why it occurs:

http://graphics.stanford.edu/courses/cs248-98-fall/Lectures/lecture18/slides/walk014.html

Am Fr., 26. Mai 2023 um 23:18 Uhr schrieb Obvious Alex C < @.***>:

You are going to have to make it somewhat manually by just having a simple 3d projection.

That would work and I've already managed to do that, but it's resource intensive and the UV mapping is weird.

Yeah I'm trying to fix the resource issue.

— Reply to this email directly, view it on GitHub <

https://github.com/TurboWarp/extensions/issues/440#issuecomment-1564967033

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/AUAFW2ZUGIMRKW7MVOXZU7DXIEM23ANCNFSM6AAAAAAYIVYCRI

. You are receiving this because you modified the open/close state.Message ID: @.***>

— Reply to this email directly, view it on GitHub <

https://github.com/TurboWarp/extensions/issues/440#issuecomment-1565426415

, or unsubscribe <

https://github.com/notifications/unsubscribe-auth/ASKLQSISCVIDCOIWGEB6A2TXIIA3XANCNFSM6AAAAAAYIVYCRI

. You are receiving this because you commented.Message ID: @.***>

— Reply to this email directly, view it on GitHub < https://github.com/TurboWarp/extensions/issues/440#issuecomment-1565426838 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AUAFW236CAT25XHWHLEVC53XIIBBPANCNFSM6AAAAAAYIVYCRI

. You are receiving this because you modified the open/close state.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/TurboWarp/extensions/issues/440#issuecomment-1565435580, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASKLQSLHLMMTK7QN4VD6VJTXIIDFPANCNFSM6AAAAAAYIVYCRI . You are receiving this because you commented.Message ID: @.***>