Depending on the image format, it could be easy or damn near impossible. There are several functions in libwiisprite in the sprite class that are to do with testing pixels, not sure if they will be any help but I recall seeing them a couple days ago in the doc's.by WiiPhlex - Coding
What do you do with that information once you have it?by WiiPhlex - Coding
Depends on the function, in the example shown above, direct3d (9 in this case), D3DCOLOR is declared as a 32 bit colour display, 8 bits R, 8 bits green, 8 bits blue and 8 bits unused alpha (thats what the X is in place of). Because of this parameter it is automatically converted for you, something that I don't know you will be able to do. You could pass an int array with 3 member to represenby WiiPhlex - Coding
Its in this function HRESULT D3DXCreateTextureFromFileEx(LPDIRECT3DDEVICE9 pDevice, LPCTSTR pSrcFile, UINT Width, UINT Height, UINT MipLevels, DWORD Usage, D3DFORMAT Format,by WiiPhlex - Coding
Why don't you just learn to play a real guitar?by WiiPhlex - Homebrew Applications
I could write one if people really wanted it.by WiiPhlex - Offtopic
Does no one write the code for this stuff themselves these days...by WiiPhlex - Coding
I've only ever encounted colour key's whilst programming in 3D, so it would almost definately be easier to delete the pixels, but i know what its like to want to do something for the challenge of it. Hope to see a release of the function soon, if you need help with optimisation algorithms there are several functions in the DirectSDK that would be useful to look at.by WiiPhlex - Coding
True enough, there are a number of free open source physics engines out there, I find it more fun to make my own, nothing like watching your own software running.by WiiPhlex - Homebrew General
You can hard code it all yourself, open the file read it to the audio buffer, then write the codec's to play it, make sure to lock while reading from the audio buffers so that you don't get anything overwriting your song. I don't often use libraries, they annoy me somewhat as you can't tell whats happening %100 of the time.by WiiPhlex - Coding
I am currently developing a Physics Engine that can be implimented on any platform, PC, Mac, PS3, PS2, GC, Xbox, Xbox 360 and of course Wii (too name a few). This will be a rigid body, interactive impulse based physics engine. I will try and optimize it as much as possible but I'm not promising it will perfect, although, I once read the only thing that is perfect exists only in ones mind. Enby WiiPhlex - Homebrew General
I'm working on a game and thought I may as well release the Matrix Manipulation library I've done for it in open source. Its use is for people who do graphics the old school way for whatever reason (I did it for fun). Simple enough source code, just watch out for the namespace's it can get a little complicated due to the way I've included functions under the same name for bothby WiiPhlex - Coding
For shore, after you have a good handel on C++, you should branch out and try some different languages, C#, Java and a scripting language usually helps, lua or python are popular.by WiiPhlex - Offtopic
Read my previous reply then consider if you want to go ahead with it.by WiiPhlex - Coding
It has just occured to me that if you are only using a 2D plane, theres little point in using a colour key (that I can see). Why not just delete the pixels you don't want? This would save a few bytes of memory, a few cycles printing the pixels, as well as all the hastle an computation of iterating through all of the pixels and testing them to see if its colour matches when deleting them willby WiiPhlex - Coding
I believe i just said that? Anyway, it is true everything is pointers you just don't know it. You can manually manage your memory using the keyword unsafe although its recommended that you don't explicitly manage memory. When you say int variable = 20, you just created a pointer to somewhere in memory that stores the value of 20, where as in C++ it would create a variable with 20 that cby WiiPhlex - Offtopic
You can use libwiisprite with 3D if you have a lot of time and patience, but don't worry about that. But now that I think about it, there is little need for changing the sample rate on a 2D game, so now I don't see why they would even do that.by WiiPhlex - Coding
Dykam Wrote: ------------------------------------------------------- > WiiPhlex Wrote: > -------------------------------------------------- > ----- > > Once you have learned the > > syntax for C++, learning C# is far easier, you > > don't need to manage the memory yourself for > > example (if you don't know how much time that > > saves youby WiiPhlex - Offtopic
Crayon Wrote: ------------------------------------------------------- > C because the syntax is similar and Java > because it's object oriented language, C isn't object oriented therefore their syntax is not similar, Java must have classes and C doesn't even have them.by WiiPhlex - Offtopic
Short answer... no, eventually it will be phased out. look at C for example. It was created in 1972 and is still in use today (although not so much as it was), Almost ever OS is made on it. C++ is currently the industry standard for programming games and most applications. It is a very popular language because it has procedural and object orientated paradigms, there for it apealls to C programmerby WiiPhlex - Offtopic
The method you described that you used in the Allegro is called a colour key, it checks each pixels RGB value (8bit channels usually) and if that pixel has a value of (255,0,255) for example (this is a common colour as it isn't often used in games) then the video card will not render that part of the texture/sprite/image etc. Now I've been looking at the libwiisprite documentation andby WiiPhlex - Coding
Have you tried applying textures to 3D primitives?by WiiPhlex - Coding
Its currently marked for deletion, meh, try and be helpful and people don't like it haha. If you want my honest opinion on programming with C++, learn to do it on a PC first then it won't be so hard going into programming wii (even though it is one of the easiest consoles to program for), to teach a begginer everything there is to printing "hello world" to the screen on wii, then he/shby WiiPhlex - Offtopic
I noticed this in libwiisprite documentation while i was reading through it: Quotelibwiispritevoid wsp::Image::BindTexture ( bool bilinear = true ) Used to select this image for the next texturing process. Most of the time you won't gonna use this. Parameters: bilinear Turns on bilinear filtering. Does this mean that the default is point sampling or trilinearby WiiPhlex - Coding
Some of the tags didn't work correctly but for what its worth its there now.by WiiPhlex - Offtopic
If you like I can post up a very indepth C++ tutorial that i wrote for a book a while backby WiiPhlex - Offtopic