home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2006 April / SGP.iso / dema / Keepsake-Demo-en-li-v1.0.exe / res / config / opengl.cfg < prev    next >
Text File  |  2005-09-26  |  7KB  |  166 lines

  1. ;-------------------------------------------
  2. ; OpenGL specific stuff
  3. ;-------------------------------------------
  4.  
  5. ; Override the detected graphics capabilities. 
  6. ; For broken drivers or unknown cards you can uncomment and set
  7. ; the following values. If commented, a nice default will be used instead.
  8. ;Video.OpenGL.Caps.CanClip = no
  9. ;Video.OpenGL.Caps.MaxTextureSize = 1024
  10. ;Video.OpenGL.Caps.MaxAspectRatio = 32768
  11.  
  12. ; Disable (change to no) below if hardware stencil buffer is not supported by
  13. ; your graphics hardware or you are experiencing crashes on your platform.
  14. ;
  15. ; ATI Radeon (r100) owners running Linux (DRI) should disable to avoid crashes.
  16. ;
  17. Video.OpenGL.Caps.Stencil = yes
  18.  
  19. ; Enable if OpenGL seems to crash for you. It is possible that this is
  20. ; caused by not correctly clipping geometry to screen boundaries.
  21. Video.OpenGL.Caps.NeedScreenClipping = yes
  22.  
  23. ; Set to the number of OpenGL clipping planes that are hardware accelerated.
  24. ; If set to 0 then this kind of clipping is disabled. Default is 6.
  25. Video.OpenGL.Caps.HWPlanes = 0
  26.  
  27. ; Clipping modes:
  28. ;    n (no clipping): don't use clipping at all but rely on z-buffer
  29. ;      to do the clipping for us. Only works when the object is rendered
  30. ;      using either ztest or zuse.
  31. ;    z (zbuf clipping): this is a variant of 'no clipping' specifically
  32. ;      for the outer polygon (or view). In this case the outside of that
  33. ;      portal (i.e. the places on the window/screen where CS will never
  34. ;      render) will be filled with z-buffer.
  35. ;    s (stencil clipping): use the stencil buffer for clipping.
  36. ;    p (plane clipping): use OpenGL plane clipping.
  37. ;    0 (software clipping): use the software clipper.
  38. ; All of these modes (except software clipping) have an uppercase variant
  39. ; which adds lazy clipping before doing the other operation. Lazy clipping
  40. ; means that a quick test on all triangles will discard all triangles that
  41. ; are totally invisible but keep all the others without clipping.
  42. ;
  43. ; Below are clipping modes for various operations. In addition to the
  44. ; modes described above you can also use 'auto' which will try to
  45. ; autodetect the most efficient operation. You can also use multiple
  46. ; modes in which case these modes will be used in case the first one
  47. ; is not possible for some reason. One example is that 'n' cannot be
  48. ; used on objects that are rendered with zfill or znone. In that case
  49. ; you need other modes. If you don't specify other modes then 0 will
  50. ; automatically be used (software clipping).
  51.  
  52. ; Clipping mode to use for portals with optional clipping (i.e. most
  53. ; regular portals). Possible values are n,N,s,S,p,P, or 0. Usually 'n'
  54. ; or 'N' is recommended. 'n' is better if you are on fast hardware that
  55. ; doesn't mind overdraw. 'N' is better if you have hardware for which
  56. ; overdraw is relatively expensive.
  57. Video.OpenGL.ClipOptional = n
  58.  
  59. ; Clipping mode to use for portals with required clipping (for special
  60. ; cases like floating portals). Possible values are s,S,p,P, or 0.
  61. Video.OpenGL.ClipRequired = p
  62.  
  63. ; Clipping modes to use for the outer portal. Possible values are z,
  64. ; Z,s,S,p,P, or 0.
  65. Video.OpenGL.ClipOuter = p
  66.  
  67. ; Enable Dither mode.
  68. Video.OpenGL.EnableDither = no
  69.  
  70. ; Enable Bilinear texture mapping (slower, especially
  71. ; if you don't have hardware acceleration).
  72. Video.OpenGL.EnableBilinearMap = no
  73.  
  74. ; Sharpen mipmaps to less blurry. May or may not improve visual quality, 
  75. ; depends on textures.
  76. ; Set to 0 to turn it off.
  77. Video.OpenGL.SharpenMipmaps = 0
  78.  
  79. ; If this is set to 'yes' then you don't care about good perspective
  80. ; correction. This may mean that textures are rendered faster.
  81. ; Wether or not this hint is honored depends on the implementation.
  82. Video.OpenGL.HintPerspectiveFast = no
  83.  
  84. ; This tells how to blend lightmaps with their underlying textures.
  85. ; Legal modes are 'multiplydouble', 'multiply' (the default), 'coloradd',
  86. ; 'add', and 'auto'. Choose to fit your hardware and taste.  The 'multiply' mode
  87. ; is supported on most hardware but is often too dark.  If your hardware
  88. ; supports it, 'multiplydouble' often gives a better scene.
  89. Video.OpenGL.LightmapMode = multiplydouble
  90.  
  91. ; Enable an artifical speed limit on the FPS. This can help to increase
  92. ; smoothness with very high frame rates. The value given is in ms.
  93. ;Video.OpenGL.FpsLimit = 40
  94.  
  95. ; The following variable indicates the size of super-lightmaps in queue 0.
  96. ; By default this will be equal to 256. Note that this size will always
  97. ; be capped by the maximum allowed texture size (see MaxTexWidth attribute
  98. ; above).
  99. ;Video.OpenGL.SuperLightMapSize = 256
  100.  
  101. ; Scale down textures by the factor 2^n-1. Usually set in case all textures 
  102. ; don't fit into the gfx card memory
  103. Video.OpenGL.TextureDownsample = 0
  104.  
  105. ; How many megabytes of textures are kept in (OpenGL) memory.
  106. ; Default is 128, set to 0 to keep all textures.
  107. ; Video.OpenGL.MaxTextureCache = 0
  108.  
  109. ; Anisotropic filtering. 1.0 means disabled,
  110. ; anything above enabled.
  111. Video.OpenGL.TextureFilterAnisotropy = 1.0
  112.  
  113. ; Bit depth of textures. Some cards may run faster
  114. ; with 16 bit textures, some save textures internally in
  115. ; 32 bit anyway. 0 means: use display color depth
  116. ; 8 is possible as well. Looks funny :)
  117. Video.OpenGL.TextureBits = 0
  118.  
  119. Video.OpenGL.BlendMipmap = no
  120.  
  121. ; Multisample samples; 0 = disabled
  122. ; This must be known before a canvas is opened, so it won't work with 
  123. ; card-specific configs (as those are read after opening.)
  124. Video.OpenGL.MultiSamples = 0
  125.  
  126. ; Multisample: whether favor quality over speed
  127. ; not supported by all drivers/cards
  128. Video.OpenGL.MultisampleFavorQuality = false
  129.  
  130.  
  131. ;@@@ Shouldn't those go to some canvas config?
  132. ; Width and height of the texture(s) used for font glyph caching.
  133. ;Video.OpenGL.FontCache.TextureSize = 256
  134. ; Number of textures used for font glyph caching.
  135. ;Video.OpenGL.FontCache.MaxTextureNum = 16
  136.  
  137. ;-------
  138. ; Force internal representation of texture formats
  139. ;-------
  140.  
  141. ; you can explicitly tell what targetformat for the sourceformats should be used
  142. ; note that the formats need to be both in the same class, that is
  143. ; you can map RGB to some specific RGB format only, no RGBA or Alpha format
  144. ;Video.OpenGL.TargetFormat.GL_RGB = GL_RGB8
  145. ;Video.OpenGL.TargetFormat.GL_RGBA = GL_RGB5_A1
  146. ; here you can specify if textures using a selected targetformat should be held
  147. ; compressed in texture memory (this is ignored if card does not support texture compression)
  148. ;Video.OpenGL.TargetFormat.GL_RGB5_A1 = compressed
  149. ;Video.OpenGL.TargetFormat.GL_R3_G3_B2 = compressed
  150.  
  151. ;------
  152. ; enable the use of certain opengl extensions
  153. ;------
  154. ;Video.OpenGL.UseExtension.GL_ARB_multitexture = yes
  155. ;Video.OpenGL.UseExtension.GL_ARB_texture_env_combine = yes
  156. ;Video.OpenGL.UseExtension.GL_ARB_texture_env_dot3 = yes
  157. ;Video.OpenGL.UseExtension.GL_ARB_texture_compression = yes
  158. ;Video.OpenGL.UseExtension.GL_NV_vertex_array_range = yes
  159. ;Video.OpenGL.UseExtension.GL_NV_vertex_program = yes
  160. ;Video.OpenGL.UseExtension.GL_SGIS_generate_mipmap = yes
  161. ;Video.OpenGL.UseExtension.GL_EXT_texture_filter_anisotropic = yes
  162.  
  163. ;Video.OpenGL.Canvas = crystalspace.graphics2d.glx
  164. ;Video.OpenGL.Canvas = crystalspace.graphics2d.glwin32
  165. ;Video.OpenGL.Canvas = crystalspace.graphics2d.glmac
  166.