home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / os2 / programm / 4768 < prev    next >
Encoding:
Text File  |  1992-09-08  |  2.9 KB  |  66 lines

  1. Newsgroups: comp.os.os2.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!usenet-feed.cc.umr.edu!mcs213c.cs.umr.edu!johns
  3. From: johns@mcs213c.cs.umr.edu (John Stone)
  4. Subject: Re: I want to learn how to do simple graphics, keyboard, and joystick I/O
  5. References: <1992Sep2.104307.14331@cco.caltech.edu> <1992Sep2.212551.19196@umr.edu> <1992Sep5.193043.4750@sbcs.sunysb.edu>
  6. Date: Sun, 6 Sep 1992 05:39:21 GMT
  7. Nntp-Posting-Host: mcs213c.cs.umr.edu
  8. Organization: University of Missouri - Rolla
  9. Sender: cnews@umr.edu (UMR Usenet News Post)
  10. Message-ID: <1992Sep6.053921.20831@umr.edu>
  11. Lines: 53
  12.  
  13.  
  14. Hi there!
  15.  
  16. Here is some more info on what I've got:
  17. I've been working on some more stuff, I have done a really simple
  18. 3d perspective projection library, just enough to see if I should
  19. pursue 3d, I've been VERY encouraged by the speed ;-)
  20.  
  21. If you have seen the "unreal" demo (on wuarchive.wustl.edu) that
  22. has the moving fractal landscapes in 3d (plotted with lots of points...)
  23. I've been able to duplicate the effect in 32 bit OS/2 :-)
  24.  
  25. I should be uploading 3 demo programs to hobbes in the next few days,
  26. one is a volcano simulation (just a cute little thing) that uses 
  27. a point aggregation algorithm with trajectory to build up a volcano...
  28.  
  29. The second demo is a cellular automata demo that I adapted from 
  30. psuedocode in an old Scientific American (did it 2 years ago in pascal,
  31. and I just rewrote it in C with my graphics lib)
  32.  
  33. The third is my favorite, it uses more of what OS/2 is good at :-)
  34. It is my own version of the Landscapes section of the unreal demo
  35. that everyone has been seeing lately... (from the Assembly '92 demos)
  36. I allocate storage for 160,000 altitude points, and fill it with either
  37. a 3D sinewave, or a fractal landscape (may add a few other things before
  38. putting it on hobbes) and I use an integer 3d projection routine that
  39. I wrote to animate/rotate these 3d surfaces... (using lots of points like
  40. the unreal demo)
  41.  
  42. You can see how I handle screen switching in the cells.exe demo, in that
  43. one I keep calculating new frames even when it isn't in the foreground,
  44. in volcano, I just ignore switching (I allow it, but I don't save the screen
  45. before allowing the switch, so if you could trash it, although I haven't
  46. been able to yet...)
  47. In the 3d program, I don't allow screen switching during the rendering, 
  48. because I need as much speed as possible, but I may change that...  
  49. I use VioScrLock() to get the screen, and I use the status param
  50. to detect if I actually got it or not... (in the case of non-blocking)
  51.  
  52. anyway, give me a couple more days and I'll release the elementary stuff
  53. that I have done so far.
  54.  
  55. I REALLY need to get on the ball with a lot of 2D library stuff like
  56. floodfills, filled polys (need these to continue with the 3d stuff too)
  57. and stuff like bitblts (for games etc)
  58.  
  59. I have had no luck with getting Mouxxxxx() calls to work in 320x200 yet.
  60.  
  61. Later,
  62.         John Stone
  63.         johns@cs.umr.edu
  64.  
  65.  
  66.