aboeing

Members
  • Content count

    591
  • Joined

  • Last visited

Community Reputation

180 Neutral

About aboeing

  • Rank
    Advanced Member
  1. Thanks for the reply, yeah, I guess I will, I just thought someone might be able to point me to a tool that would save me an hour of my life.
  2. Hi, I have inherited a poorley written C++ program where pretty much all the code is written into .h files, there are about 30 classes. Does anyone know of a program that can split this header file into seperate .h and .cpp files for each class?
  3. Intel MMX application notes

    I'm still trying to find the complete set of these notes, but I have found a few application notes mirrored here: http://homepages.cae.wisc.edu/~ece734/mmx/index.html Please let me know if you know where to find the rest. Thanks!
  4. Scr Res and Freq

    On windows, you can use directX to query the display driver capabilities which will give you a list of resolutions and frequencies supported by your graphics card. Chances are theres a way to do it via WMI but I'm not sure how.
  5. Hi, Does anyone know where I can find a copy of the Intel MMX application notes? They used to be hosted here: http://developer.intel.com/drg/mmx/appnotes/ But are no longer, and the wayback machine doesn't have a copy. When they went down, they used to be mirrored here: http://www.ee.und.ac.za/DataCDs/Intel/DRG/MMX/APPNOTES/ But are again, no longer there. Anyone have a copy of them that they would be willing to send me, or happen to know where the appnotes are listed? I'm particularly interested in the "Fractals with MMX Technology" and "Median Filter" app notes. Thanks!
  6. Which physics API?

    Use PAL to evaluate your choice: http://pal.sourceforge.net/ Newton and Bullet are both in my opinion better choices than ODE.
  7. Great, thanks for that! Unfortunately the "safe" function he provided doesn't seem to work at all, (it just disables the default button) but the unsafe one that is advised against works fine.. (so far..) eg: SendMessage(hWnd, DM_SETDEFID, (WPARAM)IDOK, 0);
  8. Hi, I want to set the default active button on a dialoug, but have no idea how to do it. eg: a dialog box with 2 edit controls next to 2 buttons. If you type something into editbox1, then the first button should be 'selected' (ie: black border around it, so when you press enter, it is called) If you type something into editbox2, then the second button should be 'selected' (so when you press enter, the second button is called). Anyone know how to do this, or what google search words I should be using? (tab stop, active window, set focus, dont appear to be doing it...) Thanks!
  9. (p)threads : safe code?

    Thanks for the replies, yes I'm aware that printf isn't thread safe and the casts aren't pretty. Thanks for the stack explanation Evil Steve! I understand what happens now :) Cheers.
  10. Hi, I was wondering, looking at the code below, does it contain a problem with the 't' variable or not? (due to thread timing, or does it get copied) ie: Is there a problem, in that starting a thread takes an undetermined ammount of time, such that the PrintHello function would not necesarlly print 1->5, but instead might print 13345 (assuming the second thread is delayed in reading the 't') OR Depending on the calling convention, (ie : assuming no __fastcall), since the parameters are copied (ie: t is copied onto the stack anyway) - this program will always work correctly (ie: it will always print 12345 (well, not neccesarily in that order, but always 5,4,3,2 and 1 - never eg:13345)) Basically: What EXACTLY happens to the stack when a new thread is created? #include <pthread.h> #include <stdio.h> #define NUM_THREADS 5 void *PrintHello(void *threadid) { printf("\n%d: Hello World!\n", (int) threadid); pthread_exit(NULL); return 0; } int main (int argc, char *argv[]) { pthread_t threads[NUM_THREADS]; int rc, t; for(t=0;t < NUM_THREADS;t++){ printf("Creating thread %d\n", t); rc = pthread_create(&threads[t], NULL, PrintHello, (void *)t); if (rc){ printf("ERROR; return code from pthread_create() is %d\n", rc); } } getchar(); pthread_exit(NULL); return 0; } (see a similar incorrect example here :http://www.llnl.gov/computing/tutorials/pthreads/, but it is different since it passes a pointer to t) Thanks!!
  11. Hi all, Thanks for the advice, JasonBlochowiak - yes, I realise that, I was just using it as an example. AP - those are some great links! Thanks! kvp - thanks for the tip! I've got that old nVidia demo somewhere, I'll dig it up. Incidentally, for anyone else looking for this stuff, for irrlicht: Irrlicht clouds : http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=7746&highlight=cloud (ie: can use also for volume fog) Irrlicht grass : http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=10762&highlight=grass Irrlicht tree (procedural, self-generating) : http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?p=64583 Irrlicht terrain (fractal) and (lame) snow : http://zenprogramming.tripod.com/ Irrlicht (lame) sunrise & sunset: http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=10769&highlight=sunrise+sunset That pretty much leaves proper rain/snow, sunrise and sunset, and everything I wanted is there in one form or another. I've found this rain code: http://www.geocities.com/opengladiator/imagenes/LLUVIA.zip which looks okay. The results from the light scattering in this paper look fantastic: http://www.gamasutra.com/features/gdcarchive/2002/naty_hoffman.ppt "Rendering Outdoor Light Scattering in Real Time" - Naty Hoffman / Westwood Studios & Arcot J Preetham / ATI Research. I thought I once remember seeing an example implementation of this somwhere. Does anyone happen to have a link?
  12. Ah, see there you go! Thanks seb, I'll take a look at all those plug-in's you suggested. Thanks!
  13. I don't think its that unreasonable, there are plenty of engines that already have ROAM etc landscape rendering, and plenty have fog, lighting, and particle (snow,rain) effects - its just that most aren't that great. As for landscape generation, thats pretty common too, and not hard to do, and trees could be handled by something like SpeedTree. That leaves grass and proper sunrise/sunset lighting/scattering, and thats been around for a while. Of course I'm hoping for a magic brush, but im only expecting to find the next-best thing. Currently, my favourite option is to use irrlicht or cubeengine2 and do everything else myself - which I'd rather not, if someone else already has...
  14. Yeah I know, thanks, but I am hoping to find an open source/free engine with comparable(?) features. :)
  15. Hi, Would anyone be able to recommend a good (free) graphics engine that can do nice outdoor rendering? I would like to at least be able to have: - Some kind of landscape rendering algorithm - Weather effects: rain, fog, sunrise, sunset. - Trees, shrubs, grass. Perfably an engine which already has a demo with all these features. Finding the content to build the sytem would be a pain, so anything that can automatically generate landscape, trees, shrubs, clouds etc would be great. Thanks!