1
0
forked from 0ad/0ad
Commit Graph

3915 Commits

Author SHA1 Message Date
6b73ba0296 - Terrain conformance should now work in Atlas as well.
- Renamed Passive stance to Hold (which is what it's called in the
design doc and GUI).

This was SVN commit r4345.
2006-09-16 21:30:23 +00:00
58c159faa0 texture tweaks
This was SVN commit r4344.
2006-09-16 20:30:29 +00:00
d370aa226c This was SVN commit r4343. 2006-09-16 20:29:46 +00:00
bb649c2d4c This was SVN commit r4342. 2006-09-16 20:29:05 +00:00
0484a50f4a This was SVN commit r4341. 2006-09-16 20:28:28 +00:00
04b9809e0b Made CTerrain::getSlopeAngleFace even more "continous" at places where the slope changes rapidly (before, it only checked elevation forward and right, now it also looks left and up).
This was SVN commit r4340.
2006-09-16 20:16:42 +00:00
0baca62d61 # Fixes to terrain conformance and movement speed bonus.
- Simplified CTerrain::getSlopeAngleFace and made it work correctly in
all cases (before, it sometimes returned NAN and used an overly
complicated method based on 8 angle sectors instead of a "continuous"
method).
- Removed the EntityMovement event - instead, movement speed modifier is
calculated in C++ for performance.

This was SVN commit r4339.
2006-09-16 20:13:40 +00:00
cd792eeb8e XML/JS fixes to movement and terrain conformance.
This was SVN commit r4338.
2006-09-16 20:11:42 +00:00
b0e7085fb9 Changed default stance to Hold so units don't look like they're attacking each other in Atlas (eventually we can make this be "aggress" in the game but hold in Atlas).
This was SVN commit r4337.
2006-09-15 18:59:44 +00:00
6e328f1c1c Linux fixes.
This was SVN commit r4335.
2006-09-14 23:04:20 +00:00
43526b061d Linux fixes.
This was SVN commit r4334.
2006-09-14 23:03:54 +00:00
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