home *** CD-ROM | disk | FTP | other *** search
/ 3D Graphics Programming for Windows 95 / 3D_Graphics_Programming_for_Windows_95_Microsoft_1996.iso / readme.txt next >
Text File  |  1996-07-15  |  4KB  |  106 lines

  1. //////////////////////////////////////////////
  2. ///                                        ///
  3. /// 3D Graphics Programming for Windows 95 ///
  4. ///                                        ///
  5. //////////////////////////////////////////////
  6.  
  7. by Nigel Thompson
  8. Microsoft Press, 1996
  9.  
  10.  
  11.  
  12. Companion CD Installation Instructions:
  13. ---------------------------------------
  14.  
  15. 1.  To install the sample programs on your hard disk,
  16.     insert the CD into your CD-ROM drive and run Setup.exe.
  17.     If you install with the default setup, a \3d directory
  18.     will be created on your hard disk and all the sample
  19.     files and directories will be placed in that directory.
  20.  
  21. 2.  To install the DirectX 2 SDK, insert the CD into your
  22.     CD-ROM drive, and run \DirectX\Setup.exe.
  23.  
  24. 3.  If you want to install the contents of the \Tools
  25.     directory from the CD to your hard disk, you must
  26.     copy the contents manually.
  27.  
  28.  
  29. Additional Files on the CD:
  30. ---------------------------
  31.  
  32. Included on the CD with the sample files are three additional
  33. files that you might find useful.  You must edit these files
  34. before running them IF you did NOT install the samples with the
  35. default settings.
  36.  
  37. build.bat    - builds all the samples at once.
  38.  
  39. CleanMFC.exe - cleans the Debug directories after building the sample
  40.                projects and leaves only the EXE files.
  41.  
  42. setenv.bat   - sets your environment for the build.bat.
  43.  
  44.  
  45. Warning Messages:
  46. -----------------
  47.  
  48. When you first open the sample projects inside Visual C++, you
  49. might get a warning message saying
  50.  
  51.          "Not all of the windows in the workspace could be opened"
  52.  
  53. This is just a warning and you will only see it the first time you
  54. open each project.  This warning occurs because some of the include
  55. statements that are part of the DirectX software are declared in such
  56. a way that causes the Visual C++ dependency generator to include a
  57. full path to the file when the project is saved.  Your path may be
  58. different than the path used to save this file originally, so you
  59. see the above message.  Once you close the project, Visual C++ will
  60. save your path so the next time you open the project you won't see the
  61. warning.
  62.  
  63.  
  64. DirectX 2 SDK Issues:
  65. ---------------------
  66.  
  67. This is a first release of the DirectX SDK, so the drivers might not 
  68. work on all machines.  Please look at the SDK release notes if you
  69. are having problems.
  70.  
  71.  
  72. Shapes Sample (Chapter 4):
  73. --------------------------
  74.  
  75. As you read Chapter 4, you will find a note describing a known 
  76. problem that can occur when you run the Shapes sample program.
  77. One of the Edit menu options in the Shapes sample is Landscape 1.
  78. Selecting Landscape 1 is supposed to show you a shape that looks
  79. like a landscape.  Sometimes, right in middle of your landscape, you
  80. will see an obviously out-of-place spike going right through your
  81. scene.  This is a bug in the DirectX software that has been reported
  82. as is being worked on, but was not fixed for this first release of
  83. DirectX.
  84.  
  85. One way to remove the spike is to resize the window.  The other way is
  86. through a workaround suggested by the DirectX developers that you can
  87. include if you want to:
  88.  
  89. In the 3dPlus project, in the 3dShape.cpp file, edit the 
  90. C3dShape::CreateSurface function as follows:
  91.  
  92. ...
  93.  
  94. for (int iRow = 0; iRow <= iXSteps; iRow++) {
  95.     z= z1;
  96.     for (int iCol = 0; iCol <= iZSteps; iCol++) {
  97.         pv->x = D3DVAL(x);
  98.         pv->y = D3DVAL(y);
  99.         pv->z = D3dVAL(z);
  100.  
  101.   // ADD THE FOLLOWING IF STATEMENT //
  102.         if (pv->z == 0.0f || pv->z == -2.0f || pv->z == -4.0f || pv->z == -6.0f)
  103.             pv->z = D3DVAL(z) + 0.01f;
  104.  
  105.  
  106.