Views: 1,611,792 | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search | 12-04-24 08:15 AM |
Guest: |
Main - Posts by StapleButter |
StapleButter |
| ||
Member blarg Level: 30 Posts: 41/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
Debugging is something I never tried to do with IDA, so I'm afraid I can't give much help there.
Regarding the "Segment 'ROM' lies outside of valid memory regions" part, you should check that your segments have the proper size defined. You may also need to manually add a BSS segment. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 42/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
See thread title.
Bleh. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 43/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
So here's what we found so far.
Enabling lighting is done by writing 1 to 0x008F and 0 to 0x01C6 from what I have seen. Register 0x01C3 // bit 0-3?: 'lighting mode'
// bit 2-3: 'fresnel selector' // bit 4-7: ??? cleared when enabling lighting?? // bit 8-15: ??? unused??? // bit 16: enable primary shadow // bit 17: enable secondary shadow // bit 18: invert shadow // bit 19: enable shadow alpha // bit 22-23: 'bump selector' -- texture unit for bumpmapping // bit 24-25: 'shadow selector' -- texture unit for shadow mapping // bit 27: clamp highlights // bit 28-30: 'bump mode' -- 1 enables bumpmapping // bit 30: disable 'bump renorm' -- affects bumpmapping Register 0x01C4 // bit 0-7: disable shadows for lights 0-7
// bit 8-15: disable spot for lights 0-7 // bit 16: D0 (Diffuse 0) LUT disable // bit 17: D1 (Diffuse 1) LUT disable // bit 18: presumably SP (Specular) LUT disable (not exposed in Nintendo GL) // bit 19: presumably FR (Fresnel) LUT disable (not exposed in Nintendo GL) // bit 20-22: reflection LUT disable (presumably individual bits for R/G/B) // bit 23: ??? // bit 24-31: disable distance attenuation for lights 0-7 Not that I managed to enable anything that would give visual results, though. Maybe it needs the VS/GS to output normals to work? ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 44/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
fdgdgfdggfh ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 45/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
Oh, thanks for the tip. Will probably explain why I didn't get results, I guess. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 46/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
Oh also, I documented more of it over at 3dbrew. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 47/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
What, it's trying to access the service without having loaded it prior? Hah.
smea's post about ninjhax inspired me, there might be a way to launch unsigned DSP binaries with something similar, but this is theory. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 48/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
0x01C5 -- LUT INDEXES
(this is mostly guessed, take with a grain of salt) X = offset within LUT 0x00XX -> Diffuse 0 0x01XX -> Diffuse 1 0x02XX -> ??? 0x03XX -> Fresnel 0x04XX -> Reflection Red? Blue? 0x05XX -> Reflection Green 0x06XX -> Reflection Blue? Red? 0x07XX -> ??? 0x08XX -> Light 0 specular 0x09XX -> Light 1 specular 0x0AXX -> Light 2 specular 0x0BXX -> Light 3 specular 0x0CXX -> Light 4 specular 0x0DXX -> Light 5 specular 0x0EXX -> Light 6 specular 0x0FXX -> Light 7 specular 0x10XX -> Light 0 distance attenuation 0x11XX -> Light 1 distance attenuation 0x12XX -> Light 2 distance attenuation 0x13XX -> Light 3 distance attenuation 0x14XX -> Light 4 distance attenuation 0x15XX -> Light 5 distance attenuation 0x16XX -> Light 6 distance attenuation 0x17XX -> Light 7 distance attenuation Distance attenuation LUTs confirmed. Data type seems to be signed 24bit int. 'specular' naming above is based off the 'SP' in NintendoGL uniform names. TODO: investigate (might also be 'spot') ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 49/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
Couldn't get no specular component to show up.
Any help is appreciated. More particularly, I have trouble grasping all of the more mathy and theoric shit. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 50/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
1.3 is released, see GBAtemp
meh, I really need to update all that junk ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 51/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
The thing is that the available tools aren't concurrent, but rather, complementary. aemstro aims at being as low-level as possible to make it possible to mess with undocumented features and such. nihstro on the other hand aims at having a more high-level and sane syntax.
The issue is that the two have different and incompatible shader ASM languages. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 52/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
We still need a banner that would fit well with our new theme, and ideally wouldn't be plaintext (although with the right font and funky CSS effects, that works too). ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 53/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
The original idea behind this board was to create something akin to the Wiibrew forums. A place that can foster a nice homebrew community.
Most of the community is at GBAtemp or on IRC though, so there isn't much incentive for people to come here. Building an active community is also not something easy, and definitely not something I can do alone while working on all the other things I want to do. It isn't a big deal if this doesn't become active, though. It's not like it's entirely useless either. It's a nice place for posting finding dumps, research, technical discussion and all that. I think it complements 3dbrew and the IRC nicely-- the wiki is good for storing documentation but not so much for discussing it (talk pages are bleh), and the IRC is good for discussion but not permanent. The board is a good compromise between the two. That being said, any discussion related to 3DS homebrew is still welcome here. Oh well. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 54/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
Well yeah, you have a good point. It would become an issue though if people had to download a billion external tools to build others' 3DS homebrew projects. But then again, why would one want to build a ton of homebrew projects if those can be downloaded in built form? (unless they're EmuCR; in that case, fuck them)
Encouraging general GPU use is also a thing we need to work on, yeah. Wondering how far minexew's ctrGL is. The GPU is probably still seen as "oh god that ubercomplex thing that freezes if you do anything wrong", which isn't really the case anymore with the last ctrulib fixes. GPU usage needs to be encouraged too as the 3DS is too slow for full framebuffer-based drawing. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 55/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
And some 'default' shaders that are basically a fixed pipeline, too.
The issue with that is that what input attributes mean pretty much depends on what the shaders do. But we'd just have to document the mapping for the default shaders and call it good... or something. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 56/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
Well, I guess we're done now! ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 57/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
Welcome aboard, and thanks again!
There aren't much projects that have been posted here, though. Most of the homebrew activity occurs in IRC or at GBAtemp. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
StapleButter |
| ||
Member blarg Level: 30 Posts: 58/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
If I get it right, what you want is a custom firmware.
Gateway's launchers are a good starting point. They do launch their own modified firmware. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
(post in restricted forum) |
StapleButter |
| ||
Member blarg Level: 30 Posts: 60/184 EXP: 151622 Next: 14247 Since: 10-27-14 From: France Last post: 2661 days ago Last view: 2571 days ago |
Nice! If this could get more people into the homebrew scene
And especially into using the GPU, too. Framebuffer drawing works, but the 3DS is too slow to refresh the whole framebuffers at 60FPS. ____________________ blargSNES -- SNES emu for 3DS More cool stuff |
Main - Posts by StapleButter |
Page rendered in 0.025 seconds. (2048KB of memory used) MySQL - queries: 22, rows: 99/99, time: 0.006 seconds. Acmlmboard 2.064 (2018-07-20) © 2005-2008 Acmlm, Xkeeper, blackhole89 et al. |