Commit Graph

1021 Commits

Author SHA1 Message Date
ehofman
d56b961c47 A patch from Frederic Bouvier which performs z-buffer ordering of the cloud layers to prevent transparency problems with other (se mi) transparent objects. Good work Frederic! 2003-08-22 08:07:21 +00:00
ehofman
858a73e187 Adjust the layer span and amount of curving based on the eleveation of the layer 2003-08-19 12:04:15 +00:00
ehofman
1623aee1e0 MacOS X fixes 2003-08-19 08:25:16 +00:00
curt
c0a633ea1d Give calc_tex_coords() a more conformant name: sgCalcTexCoords() 2003-08-19 02:08:16 +00:00
ehofman
5628c85b51 Frederic Bouvier:
This patch was inspired by Norman. Otherwise there is a segfault on Linux because the global variable tries to access OGL before a valid context is initialized.
2003-08-16 12:30:25 +00:00
ehofman
2e1accc0f3 Don't use glGet because of performance issues 2003-08-15 17:44:36 +00:00
ehofman
93b747f1ba Add support for NVidia cards with a broken OpenGL implementation 2003-08-15 17:19:22 +00:00
ehofman
21c16b4a51 A small update to the fog punch through code 2003-08-14 12:32:58 +00:00
ehofman
e5e1e165b9 Adjust the fog punch through effect for oursun 2003-08-14 09:58:48 +00:00
ehofman
8ae39ae8d4 MSVC fixes 2003-08-12 19:26:03 +00:00
curt
110e01a861 Remove extraneous/unneeded dependencies on glut. SimGear should no longer
have any glut dependies.
2003-08-11 21:16:53 +00:00
curt
578e774778 Remove "glut" dependency.
- SkyContext.[ch]pp needs to query the window size, but apparently doesn't
  do anything with it.  We can hard wire a size and the cloud code seems to
  behave fine.

- SkyLight.[ch]pp depends on glut_shapes so I copied over the code so it
  can access those routines locally.  (The routines that are used are
  simply combining calls to libGLU.a
2003-08-11 21:14:48 +00:00
curt
d7d13e458c Oops, it doesn't do much good to declare a function as "static" in the .hxx 2003-08-11 19:42:08 +00:00
curt
0bf579cf27 Only use the ";" delimiter under WIN32 2003-08-09 02:54:15 +00:00
curt
77cefa924c Add a routines that takes a search path (separated by sgSearchPathSep) and
seperates them into a vector of strings which it then returns.
2003-08-08 19:54:49 +00:00
ehofman
1fe26901af Go back to a function that actually does check wheter endian swapping needs to be done 2003-08-07 14:11:35 +00:00
ehofman
0dd50cf3d8 Add support for using textures as a basis for cloud fields. This is not yet completely finished. The orientation is not right. 2003-08-07 12:34:23 +00:00
ehofman
54b3c711c3 Add support for rgba textures 2003-08-07 12:31:16 +00:00
ehofman
f404161d23 Improve endian awareness somehwat. Still not therer though 2003-08-06 17:54:19 +00:00
ehofman
5a13068aaa Melchior FRANZ: Make the clouds3d code valgrind clean 2003-08-05 18:59:58 +00:00
curt
32067b9adf Changed "GL/glut.h" to <GL/glut.h> 2003-08-05 14:45:42 +00:00
ehofman
ea2f5f0035 Put clouds3d back in the build proces after (hopefully) fixing all the build problems 2003-08-04 17:29:30 +00:00
ehofman
ea6540ef90 Add dynamic glMultiTextureARB detection 2003-08-04 17:10:52 +00:00
ehofman
1d5c1de5d3 Add a safety precausion 2003-08-04 17:05:12 +00:00
ehofman
4b11d87a22 Add runtime detection of glActiveTextureARB 2003-08-04 12:54:57 +00:00
ehofman
c2149f9ea6 Pre-initialize the variables driving the external force 2003-08-04 12:07:04 +00:00
ehofman
73a4994cac Norman Vine:
Note that SSG and OpenGL use different representations
of Matrices.

1) SSG is row major and OpenGL is column major

2) SSG uses a Z is up whereas conventionally OpenGL uses
   Z is pointing into the screen
   ie this just requires swapping the Y and the Z axis < columns >
   and negating the new Y column

3) Now since SSG eventually calls OpenGL SSG must do this
   for us behind the scenes or else things just wouldn't work
   so inorder to get Clouds3D to render in the proper location
   we should just need to use the Matrix that SSG uses for a Camera
   Matrix and pass this directly to the Clouds3D Camers
2003-08-03 21:23:21 +00:00
ehofman
c9a4a6975c Hide an obvious mistake by defining our own ulEndianLittleDouble function for now 2003-08-03 08:25:26 +00:00
ehofman
1a1aa37a0e Adjust the fog according to visibillity 2003-08-01 14:20:20 +00:00
ehofman
7d3abdc512 Add cloud movement direction and speed 2003-07-31 14:46:24 +00:00
ehofman
db4c2243e3 Keep the stack clean 2003-07-31 09:04:32 +00:00
curt
6dc243e1af Actually commit the code changes which impliment a "scale" animation type. 2003-07-25 14:48:02 +00:00
ehofman
adb5fb3bee MSVC warning fixes 2003-07-23 09:59:39 +00:00
ehofman
7955319771 Jim Wilson:
Fixed texture translation so step and scroll values work with interpolation tables as well.  Moved step/scroll calculation to utility function to improve code readability.
2003-07-21 08:37:22 +00:00
ehofman
3da76522f8 Fix a typo 2003-07-16 11:32:08 +00:00
ehofman
c9ac1b5a06 Don't bother other develoers with problems caused by MipsPro (version < 7.3) compilers 2003-07-13 12:34:52 +00:00
ehofman
51dff6b537 Don't check for OpenGL libraries without at least including -lm 2003-07-12 09:18:54 +00:00
curt
1f4b55e98e Attempt to get these files back to a compilable state. 2003-07-11 17:50:32 +00:00
ehofman
229ea27050 Don't use floats where ints are more appropriate 2003-07-11 10:55:17 +00:00
ehofman
505b4c434d Allow removing of the texture data after it is sent to OpenGL 2003-07-11 09:57:28 +00:00
ehofman
12ab6872ec Sync he configure script with that one from FLightGear by splitting the LIBS cariable into a base_LIBS, opengl_LIBS, network_LIBS and thread_LIBS variable 2003-07-10 10:02:10 +00:00
ehofman
4c78e887e1 Jim Wilson:
This update adds the ability to do multiple texture transforms (Steve B. thinks supporting them at the plib level would be inefficient, which is probably true).

Removed units (e.g. "_m") from texture translation property and variable names since the texture translation values are dimensionless.

Added the ability to specify a scroll factor for stepped texture animation that needs to scroll smoothly when approaching the step interval (e.g. odometer movement).
2003-07-10 09:49:29 +00:00
ehofman
8871655a9b Don't delete the texture data after sending it to OpenGL. 2003-07-10 09:14:34 +00:00
curt
db1966c156 A couple more sanity checking tweaks for texture freeing. 2003-07-09 20:58:39 +00:00
ehofman
d4c0c8940b Prevent deleting the texture data for a second time in the destructor 2003-07-09 20:51:04 +00:00
ehofman
d4134195ea Fix a silly bug where is tested against the wrong variable 2003-07-09 19:46:04 +00:00
ehofman
a8fd1b4c16 Leave the clouds3d commented out for now 2003-07-09 14:46:30 +00:00
ehofman
086473c8eb A first attempt at making the clouds3d endian aware. Almost there. 2003-07-09 14:43:53 +00:00
ehofman
5642ef61ca Back out a patch that never went in CVS ... 2003-07-09 13:40:06 +00:00
ehofman
fec7c62b17 Don't link agains OpenGL libraries when it's not needed 2003-07-07 11:27:10 +00:00