• What are you working on? V10
    2,002 replies, posted
[QUOTE=andersonmat;21968256]@i300, is there a call back when it finishes its synchronous upload?[/QUOTE] Not built in, but I do call the selector uploadDone when everything in the thread is finished.
What have I created
I seem to have pinpointed something. I think I have done something wrong with my data. I am going to rewrite some parts and then come back. [editline]02:06PM[/editline] Everything works when I dont add the data to the request. Ill be working on this now!
I added cell shading to the DOF. [IMG]http://i41.tinypic.com/wgvn93.png[/IMG]
[QUOTE=r4nk_;21968501]What have I created[/QUOTE] The greatest "next gen" game. I want to play.
The realism is soooo beautiful
I thought there was a hole in my screen, and I was looking through it to the real world on the other side! Those graphics are simply stunning
[QUOTE=HTF;21968754]I added cell shading to the DOF. [IMG]http://i41.tinypic.com/wgvn93.png[/IMG][/QUOTE] Most realistic game 2010.
[img]http://coreygilmore.com/uploads/2007/08/beating_a_dead_horse.jpg[/img]
[img]http://i43.tinypic.com/15o72ue.jpg[/img] added more contrast so that you can see better
[QUOTE=luck_or_loss;21969631][img]http://i43.tinypic.com/15o72ue.jpg[/img] added more contrast so that you can see better[/QUOTE] Stop now, it has run all out of funny!
[img]http://www.cubeupload.com/files/609200untitled.png[/img] Just topped it off is all.
[QUOTE=Ortzinator;21969552][img]http://coreygilmore.com/uploads/2007/08/beating_a_dead_horse.jpg[/img][/QUOTE]
This thread currently is just like this bus: [img]http://4gifs.com/gallery/d/149834-1/Swat_bus_explosion.gif[/img]
[IMG]http://i43.tinypic.com/qz0lf6.png[/IMG]Fishy fishy?
As the OP of thread, I declare this page to be fresh and content-filled.
[QUOTE=nullsquared;21970403]As the OP of thread, I declare this page to be fresh and content-filled.[/QUOTE] Hey did anyone hear of that programming language Fortran which is coming out soon? I'm fucking hyped, it has DO, IF and GOTO statements, how fucking awesome is that!
This is hell. I honestly thought I could finish the basics in this application in a couple hours, or less. Anyone want to try and compile it and see it it works for them? [url]http://anyhub.net/file/anyhub.zip[/url]
No, not really, I'll write my own that's better and faster. :smugdog:
[QUOTE=Dlaor;21970660]Hey did anyone hear of that programming language Fortran which is coming out soon? I'm fucking hyped, it has DO, IF and GOTO statements, how fucking awesome is that![/QUOTE] Meh, BASIC has had those for years. I'm excited for the DOUBLE PRECISION type!
[QUOTE=andersonmat;21970927]No, not really, I'll write my own that's better and faster. :smugdog:[/QUOTE] Oh thanks. :3: I am trying to fix it and then submit it to the app store fast enough, but it isn't working :( Its defiantly the data, I just can't figure out whats wrong with it.
[QUOTE=DrLuke;21970287]This thread currently is just like this bus: [img]http://4gifs.com/gallery/d/149834-1/Swat_bus_explosion.gif[/img][/QUOTE] You're only supposed to blow the BLOODY DOORS OFF
in totally relevant news... wav.h [cpp]#include <cstdint> /* This is the structure of a fairly-standard PCM WAV file. Although some exporters may add stuff like metadata that breaks compatibility with this structure. */ struct wavHeader { char riffID[4]; // "RIFF" uint32_t riffSize; char format[4]; // "WAVE" char fmtID[4]; // "fmt " uint32_t fmtSize; // should be 16 for pcm uint16_t audioFormat; // should be 1 for pcm uint16_t numChannels; uint32_t sampleRate; uint32_t byteRate; uint16_t blockAlign; uint16_t bitsPerSample; // 8 = 8-bit, 16 = 16-bit, etc. char dataID[4]; // "data" uint32_t dataSize; }; class wav { public: wavHeader header; void* data; bool good; int numSamples; wav(const char* filename); short getSample16(int pos, int channel); private: bool isWav(); };[/cpp] wav.cpp [cpp] #include <fstream> #include "wav.h" wav::wav(const char* filename) { good = false; std::ifstream file(filename, std::ifstream::binary); if(file.good()) { file.read((char*)&header, sizeof(header)); if(isWav()) { data = malloc(header.dataSize); file.read((char*)data, header.dataSize); numSamples = header.dataSize / (header.bitsPerSample/8) / header.numChannels; good = true; } } } bool wav::isWav() { return !strncmp(header.riffID, "RIFF", 4) && !strncmp(header.fmtID, "fmt ", 4) && !strncmp(header.dataID, "data", 4) && !strncmp(header.format, "WAVE", 4) && header.fmtSize == 16 && header.audioFormat == 1; } short wav::getSample16(int pos, int channel) { if(header.bitsPerSample == 16 && channel < header.numChannels && pos < numSamples) return *((short *)data + pos * header.numChannels + channel); else // ??? return 0; }[/cpp] using this for my audio codec, although it's a bit inconsistent and incomplete. feel free to use.
I finished it! :woop: I'm quickly adding some memory leak fixes, then Ill make a video.
@pondefloor: Don't assume short is 16 bits, it might break on 64 bit systems.
[QUOTE=nullsquared;21972797]@pondefloor: Don't assume short is 16 bits, it might break on 64 bit systems.[/QUOTE] i'm on a 64-bit system ._.
Moving a camera is easy in DirectX, rotating it is a whole other thing. I've looked up matrices and they just make me go what and make me look for a wall to bang my head against.
Don't dis matrices. I [img]http://www.facepunch.com/fp/rating/heart.png[/img] them.
[QUOTE=pondefloor;21972899]i'm on a 64-bit system ._.[/QUOTE] Well it [i]probably[/i] is 16 bits but I'm just saying it's not a good idea to assume. Either way you're already using typedefs from cstdint, just use int16_t instead of short.
[QUOTE=i300;21972278]I finished it! :woop: I'm quickly adding some memory leak fixes, then Ill make a video.[/QUOTE] Cool! Also, you should make a system to stop spam on your website. It appears someone took the liberty to fill it up with random strings of characters.
Sorry, you need to Log In to post a reply to this thread.