I modified the textured cube example to make a simple move camera using the circlepad to learn citro3d and picasso and i'm having a lot of trouble with the view and model matrices.
The cube just doesn't show up on the screen when i add the view matrix to the main file and shader file.
Here's the main.c and the v.pica shader.
I think you moved the cube into the wrong direction. Instead of:
Code:
Mtx_Translate(&model, 0.0, 0.0, 2.0f, true);
try:
Code:
Mtx_Translate(&model, 0.0, 0.0, -2.0f, true);
Although modelview and projection are already split up in the original example, (atleast I think) it's smarter to premultiply projection * view * model to a MVP matrix. This makes the shader much less complex.
Hi, I have this really weird problem. My game save to an XML file, which used to work fine. But for some reason stopped working. The weirdest thing is that when testing in citra it works just fine. It is only on real hardware that it doesn't work. However the weirdest thing is that it USED to work just fine. And I didn't change any code involving saving. Now I did change other code, one of which also loads the XML file. But in earlier testing this worked fine, now however it reads nothing at all, just like the save code. Does anyone know what could cause a program to stop being able to read files?
The code that is meant to create/update the file is this:
Code:
xml_doc.SaveFile(fileLocation.c_str());
And again this exact code USED to work, but has stopped working for whatever reason.
The only thing I could think of is that there might be a memory issue, where if too little ram is available the file will fail to load or write? But at the very least linearFreeMem() gives me ~16MB of free space, which should be more than enough for the small XML file...
Hi, I have this really weird problem. My game save to an XML file, which used to work fine. But for some reason stopped working. The weirdest thing is that when testing in citra it works just fine. It is only on real hardware that it doesn't work. However the weirdest thing is that it USED to work just fine. And I didn't change any code involving saving. Now I did change other code, one of which also loads the XML file. But in earlier testing this worked fine, now however it reads nothing at all, just like the save code. Does anyone know what could cause a program to stop being able to read files?
The code that is meant to create/update the file is this:
Code:
xml_doc.SaveFile(fileLocation.c_str());
And again this exact code USED to work, but has stopped working for whatever reason.
The only thing I could think of is that there might be a memory issue, where if too little ram is available the file will fail to load or write? But at the very least linearFreeMem() gives me ~16MB of free space, which should be more than enough for the small XML file...
I'm not sure I don't leak memory. However linearFreeMem() reports as much free memory before as after file load/online load so if this reporting is accurate it doesn't leak any memory. As for using another SD card, though it shouldn't make a diffrence as I'm able to read and write from it just fine using ftpd, I did try it and as expected it changed nothing. Just for the sake of it I also tried it on my o3DS (with of course yet another SD card) this also did not work.
So the question still stands, WHY did it suddenly stop working... And why does it work in emulator, meaning the code should in theory be fine?
Of course I tried some other things as well. As the Online object was what I was working on around the time it stopped working I though it might be useful to try to see what happens when I remove this class completely, essentially reverting back to the last working version. However this still does not work...
So essentially I have no idea what the problem could possibly be...
Here is the code involving loading/saving of files (fileLocation is always requested with "3ds/AoTHISave.xml"):
I'll push the version which still includes Online etc. to GitHub soon the repo is: https://github.com/MrJPGames/AoTHI3D
I really hope someone can tell me what I'm doing wrong and where. (except for the terrible coding practices of course I'm well aware of those)
I'm not sure I don't leak memory. However linearFreeMem() reports as much free memory before as after file load/online load so if this reporting is accurate it doesn't leak any memory. As for using another SD card, though it shouldn't make a diffrence as I'm able to read and write from it just fine using ftpd, I did try it and as expected it changed nothing. Just for the sake of it I also tried it on my o3DS (with of course yet another SD card) this also did not work.
So the question still stands, WHY did it suddenly stop working... And why does it work in emulator, meaning the code should in theory be fine?
Of course I tried some other things as well. As the Online object was what I was working on around the time it stopped working I though it might be useful to try to see what happens when I remove this class completely, essentially reverting back to the last working version. However this still does not work...
So essentially I have no idea what the problem could possibly be...
Here is the code involving loading/saving of files (fileLocation is always requested with "3ds/AoTHISave.xml"):
I'll push the version which still includes Online etc. to GitHub soon the repo is: https://github.com/MrJPGames/AoTHI3D
I really hope someone can tell me what I'm doing wrong and where. (except for the terrible coding practices of course I'm well aware of those)
As far as I know the linear memory is a different heap, than the standard heap. It's a smaller special memory region, which other hardware components can access. So you aren't getting the amount of free memory in the heap, your're allocating from with malloc(or C++ new) with linearFreeMem.
But I think it's really unlikely that the error is a result of a full heap.
I'm not sure I don't leak memory. However linearFreeMem() reports as much free memory before as after file load/online load so if this reporting is accurate it doesn't leak any memory. As for using another SD card, though it shouldn't make a diffrence as I'm able to read and write from it just fine using ftpd, I did try it and as expected it changed nothing. Just for the sake of it I also tried it on my o3DS (with of course yet another SD card) this also did not work.
So the question still stands, WHY did it suddenly stop working... And why does it work in emulator, meaning the code should in theory be fine?
Of course I tried some other things as well. As the Online object was what I was working on around the time it stopped working I though it might be useful to try to see what happens when I remove this class completely, essentially reverting back to the last working version. However this still does not work...
So essentially I have no idea what the problem could possibly be...
Here is the code involving loading/saving of files (fileLocation is always requested with "3ds/AoTHISave.xml"):
I'll push the version which still includes Online etc. to GitHub soon the repo is: https://github.com/MrJPGames/AoTHI3D
I really hope someone can tell me what I'm doing wrong and where. (except for the terrible coding practices of course I'm well aware of those)
I think this error is being caused due to a single missing "/". In your main.cpp try changing save.storeSaveData("3ds/AoTHISave.xml") to save.storeSaveData("/3ds/AoTHISave.xml") & save.loadSaveDataFromFile("3ds/AoTHISave.xml") to save.loadSaveDataFromFile("/3ds/AoTHISave.xml");
BTW:Nice Game!
I think this error is being caused due to a single missing "/". In your main.cpp try changing save.storeSaveData("3ds/AoTHISave.xml") to save.storeSaveData("/3ds/AoTHISave.xml") & save.loadSaveDataFromFile("3ds/AoTHISave.xml") to save.loadSaveDataFromFile("/3ds/AoTHISave.xml");
BTW:Nice Game!
Thanks and thanks. But sadly enough it still doesn't work. Though it does still work in the emulator. I will be doing more debugging any suggestions are of course welcome!
Thanks and thanks. But sadly enough it still doesn't work. Though it does still work in the emulator. I will be doing more debugging any suggestions are of course welcome!
As far as I know the linear memory is a different heap, than the standard heap. It's a smaller special memory region, which other hardware components can access. So you aren't getting the amount of free memory in the heap, your're allocating from with malloc(or C++ new) with linearFreeMem.
But I think it's really unlikely that the error is a result of a full heap.
well I don't know if that linear memory description context is what i will describe but at least for gnu LD (linker) the virtual memory address is the intended memory region (IO mapped) a section should be pointed at, while the linear memory address is the physical memory (linear) the LD expects for contiguous relocated sections.
malloc actually uses a heap approach, which is: the (physical memory end - linear address end pointer, or LMA ) as free space. messing with LMA end will certainly break newlib's malloc
edit: typo, I meant linear memory address / virtual memory address, not allocation.
You could look at lpp a lua intrepeter for the 3DS.
Original post with opinions:
Why?
But for actual ideas, you could look at lpp a lua intrepeter for the 3DS.
But really I don't see the point tbh. Python really isn't a good programming language anyways, and if anyone wants to script instead of use c/c++ lua with lpp is fine.
I think someone already ported a Python interpreter to the 3DS, but never heared again of it. Later added: I was sniped, yes the primary scripting language on the 3DS is Lua.
well I don't know if that linear memory description context is what i will describe but at least for gnu LD (linker) the virtual memory allocation is the intended region memory a section should be pointed at, while the linear memory allocation is the physical memory (linear) the LD expects for contiguous relocated sections.
malloc actually uses a heap approach, which is: the (physical memory end - linear allocation end pointer, or LMA ) as free space. messing with LMA end will certainly break newlib's malloc
Last month we got confirmation of a new model of Switch 2 to better comply with upcoming EU regulations. With the legislation set to come into effect in February of...
Ocarina of Time is back in style as the upcoming Switch 2 remake looms on the horizon. But what's a fan of the game to do over the next few months? If you've been...
Tired of waiting for Game Freak to bring Pokemon Emerald to modern platforms? We've got you covered with a brand new port in the works. Currently available on GitHub...
For fans of Sinnoh, the pickings are slim. If you want the best experience you're left deciding between the updated region in Platinum, or the somewhat controversial...
If you've been waiting for an excuse to replay Super Mario Sunshine and happen to have up to nine friends, do I have some good news for you. Released earlier today...
The Switch 2 has been out for a year now, but you shouldn't count the original system out yet! Released a few days ago, popular PS2 emulator NetherSX2 has found its...
Hot on the heels of their NetherSX2 port, @Nagaa is back with another hugely anticipated release: a Switch port of the popular Wii U emulator Cemu. We've got more...
It's a good time to be a first generation Pokemon fan. But when was it not a good time to be one? In recent weeks we've seen a native LOVE2D recreation of Pokemon Red...
The Pokemon series is known for its vast assortment of spin off titles, with the majority being well-received. We've had an assortment of Mystery Dungeon titles, a...
The golden age of emulation on the Switch continues as a native Dolphin port was released by @Nagaa earlier today. Included in this port, we're looking at cover art...
Last month we got confirmation of a new model of Switch 2 to better comply with upcoming EU regulations. With the legislation set to come into effect in February of...
Ocarina of Time is back in style as the upcoming Switch 2 remake looms on the horizon. But what's a fan of the game to do over the next few months? If you've been...
Tired of waiting for Game Freak to bring Pokemon Emerald to modern platforms? We've got you covered with a brand new port in the works. Currently available on GitHub...
With the latest entry to the Fire Emblem series, Fortune's Weave, set to launch in September, Nintendo have today announced a new Nintendo Direct to put it soundly in...
It's a good time to be a first generation Pokemon fan. But when was it not a good time to be one? In recent weeks we've seen a native LOVE2D recreation of Pokemon Red...
Amidst news of layoffs and cancellations in the wake of Xbox's larger changes, Bethesda has today come out with a statement discussing their active projects. In this...
For fans of Sinnoh, the pickings are slim. If you want the best experience you're left deciding between the updated region in Platinum, or the somewhat controversial...
Announced today during the Octopath Traveler 8th Anniversary live stream, it's been confirmed that both the first game and its sequel will be launching on the Switch...
In this time of everything costing more a year after it's released, it's nice to see some things sticking to the old ways. Capcom have today announced that the latest...
If you've been waiting for an excuse to replay Super Mario Sunshine and happen to have up to nine friends, do I have some good news for you. Released earlier today...