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
A new Nintendo Switch firmware update is here. System software version 18.0.1 has been released. This update offers the typical stability features as all other...
With Apple having recently updated their guidelines for the App Store, iOS users have been left to speculate on specific wording and whether retro emulators as we...
The time has finally come, and after many, many years (if not decades) of Apple users having to side load emulator apps into their iOS devices through unofficial...
TheFlow has done it again--a new kernel exploit has been released for PlayStation 4 consoles. This latest exploit is called PPPwn, and works on PlayStation 4 systems...
Nintendo might just as well be a law firm more than a videogame company at this point in time, since they have yet again issued their now almost trademarked usual...
While rumors had been floating about rampantly as to the future plans of Nintendo, the President of the company, Shuntaro Furukawa, made a brief statement confirming...
Another video game prototype has been found and preserved, and this time, it's none other than the game that spawned an entire franchise beloved by many, the very...
Anbernic is back with yet another retro handheld device. The upcoming RG28XX is another console sporting the quad-core H700 chip of the company's recent RG35XX 2024...
Nintendo has officially announced that a successor to the beloved Switch console is on the horizon. As we eagerly anticipate what innovations this new device will...
Two classic titles join the Nintendo Switch Online Expansion Pack game lineup. Available starting April 24th will be the motorcycle racing game Extreme G and another...
Nintendo has officially announced that a successor to the beloved Switch console is on the horizon. As we eagerly anticipate what innovations this new device will...
While rumors had been floating about rampantly as to the future plans of Nintendo, the President of the company, Shuntaro Furukawa, made a brief statement confirming...
Nintendo might just as well be a law firm more than a videogame company at this point in time, since they have yet again issued their now almost trademarked usual...
With Apple having recently updated their guidelines for the App Store, iOS users have been left to speculate on specific wording and whether retro emulators as we...
The time has finally come, and after many, many years (if not decades) of Apple users having to side load emulator apps into their iOS devices through unofficial...
A new Nintendo Switch firmware update is here. System software version 18.0.1 has been released. This update offers the typical stability features as all other...
TheFlow has done it again--a new kernel exploit has been released for PlayStation 4 consoles. This latest exploit is called PPPwn, and works on PlayStation 4 systems...
After rumour got out about an upcoming NES Edition release for the famed Nintendo World Championships, Nintendo has officially unveiled the new game, titled "Nintendo...
DOOM is well-known for being ported to basically every device with some kind of input, and that list now includes the old retro game console in Persona 5 Royal...
The number of layoffs and cuts in the videogame industry sadly continue to grow, with the latest huge layoffs coming from Microsoft, due to what MIcrosoft calls a...
leo @'d me in a thread about his last dream, stating he was passionately making out with a guy he used to know and then woke up while reaching for his crotch, and said that i would "know who 'tf' it is"
and of course i know, it's luke