Commit Graph

3704 Commits

Author SHA1 Message Date
8126769863 Linux fixes.
This was SVN commit r4333.
2006-09-14 23:03:16 +00:00
33ddc81871 Linux fixes.
This was SVN commit r4332.
2006-09-14 23:02:39 +00:00
09b87e84ec #Bugfix: Shadows appeared to be rendered one frame too late
close #141

The problem was that the shadow matrices were setup in BeginFrame, but
GraphicsView calls SetCamera after BeginFrame. The solution was to move
the shadow matrix setup into CRenderer::SetCamera.

This caused a second problem because RenderReflections/RenderRefractions
used SetCamera to change the OpenGL matrices. Solved this problem by
distinguishing explicitly between the camera used for the scene as a
whole and the camera used to configure OpenGL. The latter can be a
virtual camera for shadow or reflection rendering and similar
render-to-texture effects.

This was SVN commit r4330.
2006-09-14 20:06:21 +00:00
1767fe0304 close #103
Produce a more informative warning when GL_ARB_texture_env_crossbar is
missing, and disable shadows in that case.

This was SVN commit r4329.
2006-09-14 19:15:32 +00:00
99a3241616 This was SVN commit r4328. 2006-09-14 18:48:18 +00:00
faa998b8a9 # more mouse fixes (windowed mode)
note: previous fix (clamp to 0 in screen_to_client) causes spurious
messages if mouse moves outside of the window (which is bad). "client"
coords are allowed to be negative, but "idealized client coords" (which
are defended by assert >= 0 or is_in_window) aren't.
fixes #146

This was SVN commit r4324.
2006-09-11 23:30:23 +00:00
1056788a6a - Added support for translating texture coordinates in fancy water, so it can move in some direction like the non-fancy water can.
- Removed a debug assertion that could occur in windowed mode if you
moved your mouse above or to the left of the window (client x and y >=
0); instead, negative client coordinates are now clipped to 0. (The
coordinates can't actually stay negative because we are casting them to
uints, so that would give very large values.)

This was SVN commit r4323.
2006-09-11 22:35:44 +00:00
c4607a9c34 Added support for translating texture coordinates in fancy water, so it can move in some direction like the non-fancy water can.
This was SVN commit r4322.
2006-09-11 22:33:55 +00:00
b177f2b711 Removed some console spam from playing unit sounds.
This was SVN commit r4321.
2006-09-10 23:51:08 +00:00
aa6ca7d1e8 Modified world intersection so that you can also intersect with the water plane, which is useful for making ships move around as expected when you rightclick a spot on the water.
This was SVN commit r4319.
2006-09-10 20:38:39 +00:00
df1a779d76 # Updates to water rendering (more effects).
This was SVN commit r4318.
2006-09-10 05:31:41 +00:00
222d90727e Updated water shader to support more settings (specular strength and reflection tint).
This was SVN commit r4317.
2006-09-10 05:30:49 +00:00
aa50820d9a #Unit AI: Aggressive, defensive and stand ground stances.
Also split Entity.cpp further, moving the rendering code to
EntityRendering.cpp and the JS interface code to
EntityScriptInterface.cpp. This makes each individual file smaller
(about 1000 lines still!) and lets them be compiled independently.

This was SVN commit r4314.
2006-09-09 00:00:23 +00:00
aceaee324b XML and JavaScript changes for unit stances.
This was SVN commit r4313.
2006-09-08 23:58:57 +00:00
18720c9c20 # multimonitor mouse fix (2)
hopefully found last confusion between screen/client coords (now prefix
the former with screen_*)
SDL passes around client coords in message as Uint16, int in API calls,
Window gives/takes screen space POINT (LONG x,y)

This was SVN commit r4311.
2006-09-08 20:09:26 +00:00
c7870cfbb4 buildFileList -> buildDirEntList to emphasize that dirs can be returned. (pt2)
This was SVN commit r4310.
2006-09-08 18:41:30 +00:00
5473187487 buildFileList -> buildDirEntList to emphasize that dirs can be returned. (1/2)
This was SVN commit r4309.
2006-09-08 18:38:15 +00:00
f8bff91a38 Sped up territory border rendering by caching each edge segment's terrain-conformed coordinates so they don't have to be recalculated each frame.
This was SVN commit r4308.
2006-09-08 16:03:18 +00:00
6db054f7dd # Add JS variable renderer.fancyWater to enable/disable fancy water rendering at runtime
This was SVN commit r4307.
2006-09-07 22:16:15 +00:00
c183bcde1f Territory boundaries are now rendered before transparent objects, so these can properly cover them.
This was SVN commit r4306.
2006-09-06 22:26:27 +00:00
e2262b0525 Fixed references to animation files containing extraneous spaces.
Moved some animations out of "not used" since they are actually used.
Renamed "rich's_man" because the apostrophe messes with xargs.

This was SVN commit r4304.
2006-09-04 21:35:10 +00:00
245496e201 Fixed warnings/errors/leaks related to Xerces update
This was SVN commit r4303.
2006-09-04 20:59:21 +00:00
christoph
e9fcf77ff1 Reordering animation folder
This was SVN commit r4298.
2006-09-04 19:13:11 +00:00
christoph
a87c18aada Reordering animation folder
This was SVN commit r4297.
2006-09-04 19:02:23 +00:00
christoph
c4c5f7d7e6 Reordering animation folder
This was SVN commit r4296.
2006-09-04 18:53:14 +00:00
dave
b899ff6823 Premake need to be changed to create makefiles which work on OSX
updated the lua to handle os x project files

This was SVN commit r4293.
2006-09-04 16:33:47 +00:00
dave
3b41b5fbd1 Moved the include of cmath out of the #ifdef
This avoids stuff like

/usr/include/c++/4.0.0/cmath:85: error: template with C linkage
/usr/include/c++/4.0.0/cmath: In function 'float std::abs(float)':
/usr/include/c++/4.0.0/cmath:92: error: declaration of C function 'float
std::abs(float)' conflicts with
/usr/include/c++/4.0.0/cmath:88: error: previous declaration 'double
std::abs(double)' here

This was SVN commit r4291.
2006-09-03 02:17:57 +00:00
8e02ec84f9 Updated OpenAL to 1.1 (which no longer includes ALUT).
Changed player-id code a bit so the entity and actor and unit should
stay in sync more often. (The entity/actor/unit mixing still looks a bit
dodgy and unreliable, though.)
Simplified console help code.
Allowed init/shutdown to be done with the simulation/world/etc parts
disabled (so the actor viewer can load faster).

This was SVN commit r4289.
2006-09-02 21:20:25 +00:00
dave
12b060d34f isfinite etc.. is now properly defined as a macro
This was SVN commit r4288.
2006-09-02 19:41:26 +00:00
dave
0ffabbc5dc Mac compat ..
This was SVN commit r4287.
2006-09-02 17:21:49 +00:00
3ea971b87f This was SVN commit r4286. 2006-09-01 23:30:45 +00:00
dave
2bb1bde51e Mac gcc complains about mixing size_t, uint etc..
This was SVN commit r4285.
2006-09-01 06:59:29 +00:00
e8633554a5 This was SVN commit r4284. 2006-09-01 06:07:38 +00:00
35627236af This was SVN commit r4283. 2006-09-01 06:07:05 +00:00
8f64ee6c9e This was SVN commit r4282. 2006-09-01 06:05:16 +00:00
b1e3dbd1ca #Philip the One-Eye
This was SVN commit r4281.
2006-09-01 05:43:54 +00:00
856c4e38e2 This was SVN commit r4280. 2006-09-01 05:43:09 +00:00
a8dacd1d17 This was SVN commit r4279. 2006-09-01 05:42:38 +00:00
fe6d7c058a This was SVN commit r4278. 2006-09-01 05:41:51 +00:00
5ae400a8fd This was SVN commit r4277. 2006-09-01 05:41:27 +00:00
2896d607c3 This was SVN commit r4276. 2006-09-01 05:39:27 +00:00
cbd76bb839 This was SVN commit r4275. 2006-09-01 05:38:52 +00:00
35bf56b348 #Spartan single player and multi-player shields
This was SVN commit r4274.
2006-09-01 05:37:31 +00:00
f79af31e42 Units can no longer "track" enemies that are out of the player's LOS when performing a contact action (attack, gather, etc).
This was SVN commit r4272.
2006-09-01 00:24:26 +00:00
37e924ec4a Fixed up traits.vision.permanent (the default value was not set to false).
This was SVN commit r4271.
2006-09-01 00:23:55 +00:00
789c850049 # Updates to fog of war rendering.
This was SVN commit r4270.
2006-08-31 23:56:12 +00:00
4a45724ef2 Updated water shaders to support darkening when out of LOS.
This was SVN commit r4269.
2006-08-31 23:55:39 +00:00
c4d478a690 Fixed a crash in renderTerritories when there were no Settlements.
This was SVN commit r4267.
2006-08-29 03:46:14 +00:00
973161ed1b Territory manager now ignores territory centres that have ENTF_DESTROYED, so it will work when you delete objects in Atlas.
This was SVN commit r4265.
2006-08-28 23:05:15 +00:00
a55697e2e5 # Improved territory rendering.
- Territory boundaries are now offset slightly and drawn in player
colour, so you can see whose territory you're on the border of.
- Removed some duplication in the code by modifying a loop slightly.

This was SVN commit r4264.
2006-08-28 23:01:16 +00:00