You could use trigonometric functions to calculate the new points in 3D space. I'm no expert in 3D collision detection, I always keep my games 2D, sometimes with 3D graphics. If you want advanced 3D collision detection then bullet: might help you.by Daid - Coding
QuoteglennxsergeI was assuming that gu would have a wrapper for a glRotate type function, and the libogc doxygen documentation site only has a couple of these matrix functions listed so it is hard to know what they do. In any case you've just made my day.I hardly use the doxygen from libogc. I found out how to work with gu/gx by looking at sources from different projects on wiibrew.orgby Daid - Coding
QuoteBaboonTurrican II: The Final Fight is officially free Abandonware so there should be no problem sharing it. Abandonware is not strictly legal. It's a "made up" idea that you can download stuff that the owner no longer cares about. Some games have been titled abandonware only to be released as payed download later. QuoteIn most cases, software classed as abandonware is not in the puby Daid - Homebrew Applications
The guMtxRotAxisDeg function sets a rotation matrix, it does not multiply with the matrix (like glRotate does) So you need to setup a 'temp' matrix for that. Example: Mtx model, modelview; Mtx model2, model3; Mtx mrx, mry,mrz; guMtxIdentity(model); guMtxIdentity(model2); guMtxRotAxisDeg(model, &pitchAxis, pitch); guMtxTransApply(model, model,by Daid - Coding
At first I was thinking you didn't set the report mode, but you are. After pressing a button. Do you know for sure the wiimote you have really works with libwiiuse? 3th party wiimotes have lots of problems with libwiiuse. And make sure you use the latest version with libwiiuse, and try a 'test tool' first. I tried this tool: To see if my wiimote was working correctly withby Daid - Coding
Both bugs I noticed myself already. Both are fixed, I should roll out a new version soon. You don't see the gbc roms because they end in upper case characters (.GBC instead of .gbc) which is fixed for the next version. The frameskipper is on skip 50% frames to run at least faster then a real gameboy. Next version will do auto frameskipping so the speed is right.by Daid - Testing Corner
I think I know what's missing, after taking a quick look at your code. But you expected an answer within 2 hours. So I'll let you wait a bit longer.by Daid - Coding
There is a simple way, the "console_init" function sets up a simple text console on the screen. Most starting tutorials and templates use it.by Daid - Coding
Also use to post code, the code markup of the forum isn't that great.by Daid - Coding
Whow, you mention a lot of piracy stuff in your post, the big red text didn't get your attention?by Daid - Homebrew General
Linking to the guide he used would most likely be a violation with the rules. But most likely it's a cIOS screwup, use to install the latest versions of each IOS except for the stubbed IOSesby Daid - Homebrew General
Cross compiling with configure scripts doesn't always work for all projects. So expect to fix a few things here and there depending on the project you are building. I found that some projects are easier to build if you just dump configure and build a config.h by hand, and then a simple makefile that builds all C files. I'll give you an example from my work, where we build linux soby Daid - Coding
Are they official wiimotes or clones? Does the desync happen in the homebrew channel, in the system menu or in both? Did you sync them by means of the 'red button'?by Daid - Homebrew General
You could try to swap the cases of both wii's. But that would void some warranty I guess.by Daid - Homebrew General
No I didn't include a meta.xml... but wasn't needed for it to show up in my HBC (which is the latest version) as this is just a test version I figured I could get away without the meta.xml and icon.png files. I understand that those things need to be right in a release, but this is just a test version ;-)by Daid - Testing Corner
I guess you want "gettimeofday": int getTime() { struct timeval tv; gettimeofday(&tv, NULL); return tv.tv_sec * 1000 + tv.tv_usec / 1000; } Which is very portable, as it is a POSIX function found in Linux, MacOS, MinGW library for windows and the Wii.by Daid - Homebrew Applications
Doh, makes sense. I was thinking, why can it load the images from disk but fail to show the file browser. And it's easy. I copied the example code from libwiigui, and that opens "sd:/" per default. While the images are loaded from "/apps/gb4gb/images/" and thus use the default device. So if you want to load roms, you need an SD card in this version.by Daid - Testing Corner
Are you running from SD card or USB? It should open a file browser when you click the load rom button. But if it fails to open the device then it returns to the main menu silently. I've only tested it with SD card, as my USB drive isn't stable with the wii USB stack.by Daid - Testing Corner
7-zip can open it:by Daid - Testing Corner
It's a half year later after this post: But I picked it up again. And now I have my own wii to test on. I know the name is very silly, and I should name it something like "gb4wii" or something. But it's my gameboy emulator. Which has as main highlights: -Supports Gameboy, Gameboy color and SuperGameboy games. -Runs up to 4 gameboys side by side! -Gameboy 1 and 2 are linkedby Daid - Testing Corner
I don't know if anyone cares. But I've made a quick port of libwiigui for the PC with SDL and OpenGL (should compile in windows and linux with gcc) It doesn't do sound yet, and I'm only using it to test stuff before I put it on the Wii. And it's slllooowww. But it works, and could save someone some time. So if anyone wants it, give a shout.by Daid - Coding
I always try everything in OpenGL first before I convert it to GX (manually) You basicly want to generate a heightmap and draw from that, it's not that hard: some simple terain generation. And then draw 1 triangle strip for each column.by Daid - Coding
QuoteYou will need to wait at least 24 hours for the stage from the Smash Service to be automatically deleted before trying to run this exploit. DO NOT go on Wi-Fi once the Smash Service stage is deleted.http://wiibrew.org/wiki/Smash_Stackby Daid - Homebrew General
Yes and no. As pointed out, you have 88MB memory to work with, but 12 to 16MB of this is already reserved by the IOS. So you are left with 72MB. In this memory you need to fit everything, from textures, game code, buffers, stack to game data. In reality, you better assume you have about 64MB memory for your data. Now, instead of using a huge array containing the full status of the blocks, youby Daid - Coding
As that controller uses the gamecube ports you need to use the gamecube functions. Which are PAD_* not WPAD_*by Daid - Coding
QuoteChicken_BonesQuoteDaidUhm, why do you need your 4 dimensional super array? It won't fit in the wii's memory. You might need to rethink your architecture for this one. The 4 dimensional super array would be more like an array of 4 player classes containing the 3dimensional [256][256][128] of my class.So, why do you need the 3 dimensional super array? My first guess would have been sby Daid - Coding
Uhm, why do you need your 4 dimensional super array? It won't fit in the wii's memory. You might need to rethink your architecture for this one.by Daid - Coding
The black screen&return to HBC is a failure to load any data (font data in this case) this is because the data file needs to be found in the right folder on the SD card. I've updated the zipfile with the right paths. This was fixed a few hours after the initial post. The demo has also been added to the homebrew browser, so you could pick it up from there (we have 9 downloads! whoho!) Iby Daid - Ideas, requests