1
0
forked from 0ad/0ad
Commit Graph

2600 Commits

Author SHA1 Message Date
868649d491 This was SVN commit r2890. 2005-10-10 08:17:17 +00:00
57b8886f63 This was SVN commit r2889. 2005-10-10 05:25:56 +00:00
faa6a78304 Added LOS setting to GameAttributes. Also fixed a small bug with LOS rendering (the patch's render data wasn't updated for LOS until the second frame after it became visible, displaying it in black for 1 frame).
This was SVN commit r2887.
2005-10-10 03:35:32 +00:00
e294e30c51 Added LOS setting to game setup screen.
This was SVN commit r2886.
2005-10-10 03:34:45 +00:00
575500169d This was SVN commit r2885. 2005-10-10 02:24:48 +00:00
84d47305ea This was SVN commit r2884. 2005-10-10 02:24:00 +00:00
3414e847be Updated the temporary Bireme so it inherited from the ship template instead of the Female Citizen (which was fairly disturbing).
This was SVN commit r2883.
2005-10-09 14:22:55 +00:00
f2862de50e few xml error fixes
This was SVN commit r2882.
2005-10-09 11:17:40 +00:00
c468eedbbb Sped up LOS rendering.
This was SVN commit r2880.
2005-10-09 08:14:42 +00:00
57cfc7c6ac Made LOS drawn using terrain vertex color (which requires some terrain render data to be rebuilt each frame, but is faster).
This was SVN commit r2878.
2005-10-09 04:40:18 +00:00
aa1348b6a8 Atlas: Disable LOS when editing. Set up initial terrain data before starting CGame (since initialisation of LOS (and probably other things in the future) wants to know about the terrain).
World: Deallocate LOSManager.

This was SVN commit r2877.
2005-10-09 04:29:58 +00:00
0ed2815c8b Added initial version of LOS, and updated minimap to show both LOS and water.
LOS issues still outstanding:
- LOS looks ugly because of quad tesselation into 2 triangles
- Quad tesselation is unspecified by OpenGL (in fact using GL_QUADS on
LOS quads seemed to give different tesselations than it did for the
underlying terrain quads, but terrain rendering also used GL_QUADS).
This should be fixed once we decide on the quad tesselation issue.
- Units with traits.vision.permanent set are visible through FOW even if
you havent seen them before; this should only be true when you have seen
them before. But it gets even more complicated - if a permanent unit
seen through FOW dies or gets upgraded or something, perhaps you should
remember the old version. I'm not completely sure how to do this
(probably involves cloning its actor somehow).

This was SVN commit r2876.
2005-10-09 03:43:03 +00:00
7ebdefec4b Atlas: improved brushes
This was SVN commit r2875.
2005-10-09 03:26:16 +00:00
7fc8713794 Made the LOS properties slightly more realistic.
This was SVN commit r2874.
2005-10-09 03:00:03 +00:00
d4663954f2 Replaced the temporary ship with a new and improved bireme, stuck some units on the prop points for a sense of scale.
This was SVN commit r2873.
2005-10-09 01:21:31 +00:00
5070ced96f Properties for LOS for Matei: traits.vision.los (structures, units), traits.vision.permanent (structures, gaia).
This was SVN commit r2872.
2005-10-08 23:00:39 +00:00
Aeros
d3721d4491 This was SVN commit r2871. 2005-10-08 08:02:50 +00:00
Aeros
c15f69cb85 This was SVN commit r2870. 2005-10-08 07:58:04 +00:00
8bc8bcb740 Atlas: more flexible brushes
This was SVN commit r2868.
2005-10-08 03:55:21 +00:00
29d6f420fd GameView: removed unused ancient camera code.
Terrain: nicer handling of negative map coordinates (mainly for Atlas
brush previews that fall over the edge).
Misc: reverted seconds->microseconds.

This was SVN commit r2866.
2005-10-07 21:09:29 +00:00
04650efe7a Lots of gcc -Wall fixes. The common ones:
- switch() statements don't handle all values in an enum
- missing \n at end of file
- non-virtual destructors in classes containing virtual functions
- order of initializers in constructor initializer lists
... some other stuff (signedness, nested comments, unused variables) as
well.

This was SVN commit r2864.
2005-10-07 15:24:29 +00:00
8529426fa8 Optimisation: Don't recalculate actor transform data for entities that haven't moved
This was SVN commit r2862.
2005-10-07 02:44:54 +00:00
dbd58f4011 Remove CRenderer::Close(), which wasn't called anyway and the only reasonable
calling site would have been just before the destructor.
m_VertexShader is no longer leaked.

This was SVN commit r2860.
2005-10-06 16:07:36 +00:00
greybeard
6b25cafe05 The const size_t GFX_DRV_VER_LEN was increased from 64 to 256 to accommodate extraneous drivers found in the windows registry. This was made to prevent an assertion in wdetect.
This was SVN commit r2858.
2005-10-06 03:45:33 +00:00
bc8eba1002 Work around a bug in ATI's Linux OpenGL driver.
This was SVN commit r2857.
2005-10-06 03:29:26 +00:00
d2ee50031c Fix shlight.vs for ATI cards.
The NVidia shader compiler is not as strict as the ATI compiler.

This was SVN commit r2856.
2005-10-05 19:29:52 +00:00
13697b8512 Stupid bug in VertexArrayIterator template - forgot a return *this.
This was SVN commit r2854.
2005-10-05 16:54:10 +00:00
f1ee2cd66d Add the notion of render paths and an appropriate configuration option.
Add Ogl_Shader and Ogl_Program handle types for shaders/programs loaded
from
files.
In the vertexshader render path, use a vertex program for lighting for
optimization.

This was SVN commit r2853.
2005-10-05 16:42:09 +00:00
539460abd8 This was SVN commit r2852. 2005-10-05 08:35:14 +00:00
7e8ab14139 This was SVN commit r2851. 2005-10-05 07:38:55 +00:00
639a1ee8cb This was SVN commit r2850. 2005-10-05 07:38:04 +00:00
932cab0da1 This was SVN commit r2849. 2005-10-05 07:37:34 +00:00
6859ce1e52 ooops missing texture I shouldn't have renamed
This was SVN commit r2848.
2005-10-05 05:23:17 +00:00
72d71ae3a9 renamed some shoreline textures, painted the terrain on the 0ad map, and fixed a bad link in the roman barracks entity
This was SVN commit r2847.
2005-10-05 05:03:21 +00:00
a4fc7105be Explicitly call VertexBufferManager cleanup code, since we can't rely on
the order of destructors called for global instances.

This was SVN commit r2846.
2005-10-04 20:54:47 +00:00
a181ef1fef This was SVN commit r2845. 2005-10-04 07:03:07 +00:00
57a9941176 This was SVN commit r2844. 2005-10-04 07:02:33 +00:00
721f6e4a1e Atlas: [very] primitive brushes
This was SVN commit r2843.
2005-10-04 02:50:59 +00:00
7abf24b6c6 Possible speed optimisation for gaia entities (don't inherit the usual events and the entity script).
This was SVN commit r2842.
2005-10-03 20:57:10 +00:00
5e3b6fcbe3 goto crosses initialization (deja vu? ;)).
This was SVN commit r2840.
2005-10-03 19:37:45 +00:00
b8c2f424e7 glDrawRangeElements -> glDrawRangeElementsEXT (fixes compilation error; EXT/ARB/etc extensions need to be used for everything not in GL1.1)
Reinserted mu-like symbol.
Fixed some minor warnings.

This was SVN commit r2838.
2005-10-03 16:04:55 +00:00
d367014972 vfs_store: set return value to #bytes written
fix 2 bugs in tex / ogl_tex reported by philip (related to caching) -
thanks!
tex: documented header and improved implementation. add tex_transform_to
for convenience. change tex_write to require going through tex_wrap.

This was SVN commit r2837.
2005-10-03 12:57:31 +00:00
c8b3be282d This was SVN commit r2836. 2005-10-03 05:00:36 +00:00
f0542c9b45 This was SVN commit r2835. 2005-10-03 04:59:48 +00:00
9a527643ff This was SVN commit r2834. 2005-10-03 04:57:33 +00:00
fec54c7f0d This was SVN commit r2833. 2005-10-03 04:56:20 +00:00
9369ea0978 This was SVN commit r2832. 2005-10-03 04:55:55 +00:00
8bb6a6b56f This was SVN commit r2831. 2005-10-03 04:52:02 +00:00
17bc0a98df This was SVN commit r2830. 2005-10-03 04:49:09 +00:00
4054c13c1f This was SVN commit r2829. 2005-10-03 04:48:18 +00:00