Commit Graph

7505 Commits (41742219d161e87b9e4a8bb8063fd5ec452c7868)
 

Author SHA1 Message Date
Armin Burgmeier 41742219d1 Remove obsolete ColorAnimation values from materials 2015-10-03 11:56:54 -04:00
Armin Burgmeier b8ed577c0f Rotate the OGRE coordinate frame by 90 degrees in X
Also rotate all meshes backwards so that everything keeps working. This should
make it more convenient for modellers to create new meshes.
See http://forum.openclonk.org/topic_show.pl?pid=29410#pid29410.
2015-10-03 11:39:08 -04:00
Armin Burgmeier 745683c860 Small shader preprocessor fixes 2015-10-03 11:18:47 -04:00
Peter Wortmann 530bc1deef Rebalance shading
This attempts to replicate the look of the "rim shading" change using
less insane methods. Notably

 1. Use the same light normals for objects and landscape
 2. Change extend_normal so it is less "extreme" (= light is coming from
    the front more often)
 3. Ramp up weight of edge normals for landscape significantly so they
    doesn't *completely* disappear.
 4. Ambient light 200% brighter, point lights 150% brighter.
2015-10-03 15:32:39 +01:00
Peter Wortmann df6d564d2d Remove "ColorAnimation"
Not used any more
2015-10-03 15:32:39 +01:00
Peter Wortmann cf4ed1b0b7 Shiny materials, shader reorganisation
This implements the proposal made in the forum for "shiny" materials -
material can now determine the angle at which the most light is reflected.
Shiny materials might set this lower to approximate a "reflection" effect,
and increase the "spottiness" at the same time. To compensate for the
lack of brightness without light, "emittance" can be used.

Not sure this is the most elegant way to model this - the "proper" way
here would be to have emittance, shading and specular as three separate
light parameters instead of molding one into the other and using the third
to compensate.

Furthermore, this reorganises shaders in a major way: We reduce the
number of shader files down to three, pushing a number of possible
configurations into preprocessor. I believe this should be easier to
understand, which for the moment trumps theoretical extensibility
benefits.
2015-10-03 15:32:39 +01:00
Peter Wortmann f0030e33e0 Warning fixes
Actually pretty sure a few of them were bugs. Hopefully no new
ones were introduced here.
2015-10-03 15:32:39 +01:00
David Dormagen 619fc0b65a new animal: puka
Currently only walks around and randomly electrocutes you.
2015-10-03 13:54:19 +02:00
Julius Michaelis 6fe58fd878 Add warning about old gcc when !HAVE_WORKING_REGEX
Related to ee859d8.
2015-10-03 13:42:46 +02:00
Julius Michaelis 2ad045f8d6 Replace strtod with stringstreams in C4ScriptGuiWindow::SetPositionStringProperties to avoid locale problems (second attempt)
Also added warnings and fixed a few whitespacing errors.
2015-10-03 13:17:17 +02:00
Sven Eberhardt 7211ee171f Follow view of dead clonk for two seconds before respawning with base respawner (#1390). 2015-10-03 02:23:35 -04:00
David Dormagen 910aa4efaa squid: updated behavior & added angry squid
The default squid is still friendly (with a new texture now). Setting friendly=false during Place()ment creates red, angry squids.
Being in an ink blot drains a Clonk's breath faster now (because of the panic and increased heart-rate of course).

The friendly squid texture was created by Matthi as well.
2015-10-02 18:34:48 +02:00
David Dormagen 38397aacaa bubble: fix category
The bubble is definitely not a vehicle.
2015-10-02 17:59:45 +02:00
David Dormagen c1bb8ef34d diamond: fixed graphics file name in material file 2015-10-02 17:16:59 +02:00
Sven Eberhardt 664798af39 Add fireflies to Crash Landing. 2015-10-01 23:28:15 -04:00
Sven Eberhardt c678c07c40 Add squid to The Raid.
Just so we show it off somewhere.
2015-10-01 23:22:57 -04:00
Sven Eberhardt 69b3b21766 Remove erroneous IsInteractable from windmill.
It doesn't seem to have an interaction. Pressing [Space] in front of the windmill would just cause a script error.
2015-10-01 23:21:24 -04:00
Sven Eberhardt bffc08c314 Diamonds: More bling when dug out and placement in arbitrary areas.
It was a bit weird when they just "appeared" so now there's also a sound.

Also added a forward for placement directly on Diamond, since sockets are their "natural" placement method.
2015-10-01 22:45:13 -04:00
Sven Eberhardt 5b47a26d30 Perform DugOut callback also on non-collectibles and on objects not created through Dig2Object mechanism. 2015-10-01 22:43:01 -04:00
Nicolas Hake c8e1a38950 Revert "Replace strtod with strtof_l ..."
This reverts commit 139dee9874.

The commit introduced a memory leak on glibc, and broke the build on all
other platforms.
2015-10-01 20:50:40 +02:00
Julius Michaelis 139dee9874 Replace strtod with strtof_l in C4ScriptGuiWindow::SetPositionStringProperties to avoid locale problems
(That function could still use some more love, though: Error messages and not accepting ridiculous things when parsing.)
2015-10-01 19:50:05 +02:00
Armin 5a2bfe40a6 Docs: Map.c examples: Replace DrawSulphur with DrawFirestone. 2015-10-01 18:46:35 +02:00
Armin 895d5f1b0e Add german Flooden Veins description and correct some mistakes. 2015-10-01 18:46:35 +02:00
Randrian45 8076075c5b added firefly and test scenario for it
squashed:
adjusted fireflies to style guidelines
* fireflys emmit light
+ added firefly and test scenario for it
2015-10-01 18:40:14 +02:00
David Dormagen e6e4f06c92 added diamond item 2015-10-01 16:35:58 +02:00
Sven Eberhardt b5fe6ea02a Fix mac build. 2015-10-01 00:22:43 -04:00
Sven Eberhardt 3d7d848eea When fading from running songs, fade out and then start new songs directly instead of fading into them.
For songs that start abruptly, fading into them often ruins the beginning.
2015-10-01 00:08:35 -04:00
Sven Eberhardt 17e0e2f423 Add breaks between music. 2015-09-30 22:50:18 -04:00
David Dormagen a8943f88d5 added squid
Model and texture by Matthi.
2015-09-30 18:31:44 +02:00
Julius Michaelis 9a7d57c0d2 Fix assertion firing in C4ConsoleGUI::SetInputFunctions introduced by 9e771ac 2015-09-30 14:35:50 +02:00
Clonkonaut bfd0bd035d Added magic energy support for 3rd party devs. 2015-09-30 10:20:20 +02:00
Clonkonaut 178e904fdd HUD redesign. Beware!
Added interaction icon to help knowing when interaction is possible.
Limited crew portraits and information to two clonks.
Added additional warnings texts for further clonks (crew count > 2).
Moved inventory from bottom to top.
2015-09-30 10:11:43 +02:00
Sven Eberhardt fc7d16b2aa Fix mac build (I hope). 2015-09-29 21:31:13 -04:00
Sven Eberhardt 737b1fd8fd Save screenshots in background thread (#998, #1104).
Also ensure music keeps streaming while collecting data for full map screenshot.
2015-09-29 20:48:34 -04:00
Sven Eberhardt 3159793dfc MSVC build fix 2015-09-29 20:38:15 -04:00
Julius Michaelis ee859d85e0 Remove boost any usage of boost libraries 2015-09-30 00:16:12 +02:00
Julius Michaelis 0d1a0241f9 Fix umlauts and typo in GoldRush dialogue 2015-09-29 21:30:57 +02:00
David Dormagen 6756db2768 C4ScriptGuiWindow: fix copyright header
The remaining old header has now been adjusted to the new one.
See e0dc30c59a for details.
2015-09-29 19:13:12 +02:00
Sven Eberhardt 62c3d13ece Document InitializeAmbience. 2015-09-28 20:20:57 -04:00
Sven Eberhardt 8614ce46c4 Create default ambience controller in all scenarios.
Can be overloaded by providing a custom function InitializeAmbience either globally or in the Scenario proplist.
2015-09-28 20:20:31 -04:00
Sven Eberhardt 59d7c761fc Screenshot fixes and optimizations.
* There was an off-by-one-error causing a blank line at the screen upper screen border.
* Remove ApplyGamma. It is always applied because Gamma is just part of the drawing shaders now.
* Save by copying rows instead of pixels for whole map screenshots.
2015-09-28 18:54:34 -04:00
Sven Eberhardt f1970c5bc1 Add day/night cycle to The Raid.
It looks really cool and the first mission should show that feature.
2015-09-28 17:01:03 -04:00
Sven Eberhardt aff87890e7 Fix initial ambience and music setting in sequences without cursor. 2015-09-28 16:53:14 -04:00
Sven Eberhardt edf66783aa Announce the name of each music piece only once. 2015-09-28 16:29:36 -04:00
Sven Eberhardt d6f16a0890 Change music switch due to playlist change to prefer to resume pieces that were recently played. 2015-09-28 16:29:36 -04:00
David Dormagen 2346745fe8 chippie finetuning
- do not attack things when under water
- can catch fire now
- reduce normal (random) chance of laying eggs, still the same amount of eggs when leeching HP
- can grow to oversize when sucking on a Clonk (large chippies look cool)
2015-09-28 19:56:12 +02:00
Sven Eberhardt 6da62d9220 Enable music resume in ambience music switcher. 2015-09-27 20:58:55 -04:00
Sven Eberhardt 3f6cacade4 Add parameters to Music and SetPlayList to resume a piece from where it was last interrupted. 2015-09-27 20:58:37 -04:00
Sven Eberhardt 766cd3e7d6 Fix default map zoom in docs (#1409). 2015-09-27 16:12:17 -04:00
Sven Eberhardt 9e771acfd1 Editor: Add most recently entered script lines to dropdown list.
This also enables easier auto-completion via arrow-down.
2015-09-27 15:28:17 -04:00