neverball
12 years agoFix redundant glTexEnv calls gles
parasti [Sun, 12 Jun 2011 13:55:03 +0000 (13:55 +0000)]
Fix redundant glTexEnv calls

(Also comment on the crossbar issue.)

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3598 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoAdd a structure to cache detected GL capabilities
parasti [Sun, 12 Jun 2011 13:54:51 +0000 (13:54 +0000)]
Add a structure to cache detected GL capabilities

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3597 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoRename a variable
parasti [Sun, 12 Jun 2011 13:54:34 +0000 (13:54 +0000)]
Rename a variable

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3596 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoFix not handling the third TU in particle code
parasti [Fri, 10 Jun 2011 18:17:23 +0000 (18:17 +0000)]
Fix not handling the third TU in particle code

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3595 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoRestore shadow clip
parasti [Tue, 7 Jun 2011 20:31:03 +0000 (20:31 +0000)]
Restore shadow clip

Really quite nasty, but also kinda cool.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3594 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoRestore compatibility with version 6 SOLs
parasti [Mon, 6 Jun 2011 13:15:41 +0000 (13:15 +0000)]
Restore compatibility with version 6 SOLs

Just enough for the SOLs to load (slowly), but without all of the
optimizations that mapc does for newly compiled SOLs.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3593 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoAdd some error checking in Neverputt when loading SOLs
parasti [Sat, 4 Jun 2011 11:01:23 +0000 (11:01 +0000)]
Add some error checking in Neverputt when loading SOLs

Do this so Putt would not crash on older format SOLs. Like me, players
probably have dozens of these installed through ZIP packages.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3590 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoSilence a warning
parasti [Tue, 31 May 2011 16:12:52 +0000 (16:12 +0000)]
Silence a warning

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3588 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoImplement crude handling of missing OpenGL extensions
parasti [Wed, 25 May 2011 20:04:13 +0000 (20:04 +0000)]
Implement crude handling of missing OpenGL extensions

That is, give up completely if any of the extensions are missing. This
is braindead (since only one of the extensions is truly mandatory),
but infinitely better than crashing due to attempts to call a NULL
function pointer.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3586 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoHide shadow in level pose mode
parasti [Wed, 25 May 2011 20:03:57 +0000 (20:03 +0000)]
Hide shadow in level pose mode

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3585 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoStay clear of GL namespace
parasti [Wed, 25 May 2011 16:47:20 +0000 (16:47 +0000)]
Stay clear of GL namespace

Preemptive future bug fixing brought to you by a crystal ball.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3584 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoTweak GLES compile-time switch semantics
parasti [Wed, 25 May 2011 16:47:03 +0000 (16:47 +0000)]
Tweak GLES compile-time switch semantics

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3583 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoFix comment anachronism
parasti [Wed, 25 May 2011 16:46:43 +0000 (16:46 +0000)]
Fix comment anachronism

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3582 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoFix shadow in Neverputt
parasti [Wed, 25 May 2011 16:46:27 +0000 (16:46 +0000)]
Fix shadow in Neverputt

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3581 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoFix shadow config
parasti [Wed, 25 May 2011 16:46:07 +0000 (16:46 +0000)]
Fix shadow config

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3580 78b8d119-cf0a-0410-b17c-f493084dd1d7

12 years agoFix crash on missing level background
parasti [Wed, 25 May 2011 16:45:51 +0000 (16:45 +0000)]
Fix crash on missing level background

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3579 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix look-around mode by resetting current color after drawing coin particles
parasti [Wed, 27 Apr 2011 21:14:09 +0000 (21:14 +0000)]
Fix look-around mode by resetting current color after drawing coin particles

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3577 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix shadow for non-standard ball radii
parasti [Mon, 18 Apr 2011 02:15:55 +0000 (02:15 +0000)]
Fix shadow for non-standard ball radii

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3576 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix color cache initialization for default and particle materials
parasti [Mon, 18 Apr 2011 01:50:40 +0000 (01:50 +0000)]
Fix color cache initialization for default and particle materials

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3575 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoTrack material state in a structure
parasti [Mon, 18 Apr 2011 01:50:23 +0000 (01:50 +0000)]
Track material state in a structure

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3574 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoSet GL pixel row alignment to be 1, not the default 4
parasti [Sat, 9 Apr 2011 19:50:46 +0000 (19:50 +0000)]
Set GL pixel row alignment to be 1, not the default 4

Fixes a few problems with non-multiple of 4 wide textures or
framebuffer, namely, skewed/corrupted textures in one case and memory
corruption when taking screenshots in the other.

(cherry picked from r3570 by parasti)

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3572 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMove saving of screenshots to before buffer swapping
parasti [Sat, 9 Apr 2011 19:50:29 +0000 (19:50 +0000)]
Move saving of screenshots to before buffer swapping

Same problem, different fix (since GL ES lacks glReadBuffer).

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3571 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoBump minimum supported SOL version
parasti [Sat, 9 Apr 2011 17:42:49 +0000 (17:42 +0000)]
Bump minimum supported SOL version

Fixes crashes. Compatibility would be preferable, but unlikely.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3569 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix compilation with particle VBOs
parasti [Sat, 9 Apr 2011 17:42:33 +0000 (17:42 +0000)]
Fix compilation with particle VBOs

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3568 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix remaining errors when compiling against GL ES 1.1 headers
parasti [Sat, 9 Apr 2011 17:42:16 +0000 (17:42 +0000)]
Fix remaining errors when compiling against GL ES 1.1 headers

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3567 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRemove forced quit after replay ends
parasti [Sat, 9 Apr 2011 17:41:56 +0000 (17:41 +0000)]
Remove forced quit after replay ends

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3566 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMakefile: re-add mapc to SOL deps
parasti [Sat, 9 Apr 2011 17:41:45 +0000 (17:41 +0000)]
Makefile: re-add mapc to SOL deps

Breaks concurrent compilation hardcore.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3565 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix mapc dependence on share/glext.h
parasti [Sat, 9 Apr 2011 17:41:29 +0000 (17:41 +0000)]
Fix mapc dependence on share/glext.h

(cherry picked from r3525 by parasti)

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3564 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years ago[gles] land.png, ocean.png: Remove alpha channel (see r3554)
elviz [Thu, 7 Apr 2011 06:03:59 +0000 (06:03 +0000)]
[gles] land.png, ocean.png: Remove alpha channel (see r3554)

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3563 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years ago[gles] Adjust several material flags
elviz [Wed, 6 Apr 2011 14:48:16 +0000 (14:48 +0000)]
[gles] Adjust several material flags

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3562 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years ago[gles] Fix blue-sea material
elviz [Wed, 6 Apr 2011 08:57:59 +0000 (08:57 +0000)]
[gles] Fix blue-sea material

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3561 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoOptimization to sol_apply_mtrl.
rlk [Tue, 5 Apr 2011 19:42:18 +0000 (19:42 +0000)]
Optimization to sol_apply_mtrl.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3560 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFixed the level fade-out.
rlk [Tue, 5 Apr 2011 19:22:23 +0000 (19:22 +0000)]
Fixed the level fade-out.
Reworked the shadow texture transform, fixing it for rotating bodies.
Conditioned out separate specular for ES.
Macroed glOrtho for ES compatibility.
Added glClientActiveTexture extension function.
Expanded a few glColorv functions.
Change glLightModeli to glLightModelf for ES compatibility.
Implemented a glClipPlane function compatible with both GL and ES.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3559 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix title screen fly-by initialization
parasti [Tue, 5 Apr 2011 15:08:01 +0000 (15:08 +0000)]
Fix title screen fly-by initialization

(cherry picked from r3557 by parasti)

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3558 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoImplemented an ugly hack to silence a C warning about casting a void pointer to a...
rlk [Mon, 4 Apr 2011 21:54:20 +0000 (21:54 +0000)]
Implemented an ugly hack to silence a C warning about casting a void pointer to a function pointer.  It's really great that POSIX forces you to break the language rules like that.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3556 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdded a test to enable conditional compilation of OpenGL ES.
rlk [Mon, 4 Apr 2011 21:31:16 +0000 (21:31 +0000)]
Added a test to enable conditional compilation of OpenGL ES.
Added GL GetProcAddress for all extensions.
Reworked reflection rendering for NVIDIA Linux.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3555 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFlattened the alpha of the background gradients to allow the elimination of color...
rlk [Sun, 3 Apr 2011 20:00:13 +0000 (20:00 +0000)]
Flattened the alpha of the background gradients to allow the elimination of color buffer clearing.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3554 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoOptional use of vertex arrays in the particle system.
rlk [Sun, 3 Apr 2011 19:25:33 +0000 (19:25 +0000)]
Optional use of vertex arrays in the particle system.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3553 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoConverted putt vector to SOL.
rlk [Sun, 3 Apr 2011 18:23:04 +0000 (18:23 +0000)]
Converted putt vector to SOL.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3552 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoSeveral minor changes for ES compatibility.
rlk [Sun, 3 Apr 2011 17:49:26 +0000 (17:49 +0000)]
Several minor changes for ES compatibility.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3551 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoPorted the mtrl loft to putt.
rlk [Sun, 3 Apr 2011 15:59:17 +0000 (15:59 +0000)]
Ported the mtrl loft to putt.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3550 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoPushed the mtrl tracking code down through the entire game render.
rlk [Sun, 3 Apr 2011 15:38:34 +0000 (15:38 +0000)]
Pushed the mtrl tracking code down through the entire game render.
Eliminated most of the client state enable/disable.
Fixed a couple materials with zero emission alpha, which is non-default but does nothing.
Minimized billboard transformations.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3549 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoEnabled SOL billboards on items.
rlk [Sat, 2 Apr 2011 17:01:39 +0000 (17:01 +0000)]
Enabled SOL billboards on items.
Added experimental highlight to coin to enhance visibility at low res (320x240).  I don't really expect this feature to be popular.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3548 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoConverted the remaining particle usage (coin bursts) to point sprite.
rlk [Sat, 2 Apr 2011 16:17:32 +0000 (16:17 +0000)]
Converted the remaining particle usage (coin bursts) to point sprite.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3547 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMinor tweaks to geom.c.
rlk [Fri, 1 Apr 2011 16:40:18 +0000 (16:40 +0000)]
Minor tweaks to geom.c.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3546 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoSketched in possible alternatives for jump and goal particles.
rlk [Thu, 31 Mar 2011 22:03:01 +0000 (22:03 +0000)]
Sketched in possible alternatives for jump and goal particles.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3545 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdded a per-rendering pass mesh count to the body draw structure. This optimizes...
rlk [Thu, 31 Mar 2011 20:24:26 +0000 (20:24 +0000)]
Added a per-rendering pass mesh count to the body draw structure.  This optimizes the rendering of bodies that have no materials matching the current pass.
Reordered the material flags to ensure that cheap state changes happen more often than expensive ones.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3544 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRewrote all mtrl files to use flag names instead of an integer bitmap. This is done...
rlk [Thu, 31 Mar 2011 18:16:42 +0000 (18:16 +0000)]
Rewrote all mtrl files to use flag names instead of an integer bitmap.  This is done so that mtrl flag values can be modified and reordered in the engine without having to recompute all bitmap values for all materials.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3543 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFinished GUI rewrite.
rlk [Thu, 31 Mar 2011 16:42:53 +0000 (16:42 +0000)]
Finished GUI rewrite.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3542 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoTiny tweaks to eliminate pointless transforms.
rlk [Wed, 30 Mar 2011 22:32:38 +0000 (22:32 +0000)]
Tiny tweaks to eliminate pointless transforms.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3541 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoGUI rewrite is mostly complete. Removed all display list usage and merged everything...
rlk [Wed, 30 Mar 2011 21:56:16 +0000 (21:56 +0000)]
GUI rewrite is mostly complete.  Removed all display list usage and merged everything down to a single vertex buffer object.  The counter and timer widgets (originally based on separate digit DLs) are currently broken.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3540 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdded default material to enable SOL files that don't apply any materials.
rlk [Tue, 29 Mar 2011 20:56:38 +0000 (20:56 +0000)]
Added default material to enable SOL files that don't apply any materials.
Added star mtrl files.  They weren't being additive blended.
Merged back.c into geom.c.
Replaced back display list with back SOL.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3539 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoConverted mark GL into SOL.
rlk [Tue, 29 Mar 2011 17:34:06 +0000 (17:34 +0000)]
Converted mark GL into SOL.
Moved fader draw to sol_fade and reimplemented in terms of billboard drawing.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3538 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFixed flag SOL. The culprit was a lack of texture coords.
rlk [Mon, 28 Mar 2011 22:38:25 +0000 (22:38 +0000)]
Fixed flag SOL.  The culprit was a lack of texture coords.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3537 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoCURRENTLY BROKEN DUE TO FLAG GEOM.
rlk [Mon, 28 Mar 2011 21:26:05 +0000 (21:26 +0000)]
CURRENTLY BROKEN DUE TO FLAG GEOM.
Added separate material flags for S and T clamp.
Merged goal, switch, and jump geometry.
Converted flag to SOL.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3536 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoTesting a SOL-based goal renderer as an efficient alternative to the display lists...
rlk [Sun, 27 Mar 2011 21:54:43 +0000 (21:54 +0000)]
Testing a SOL-based goal renderer as an efficient alternative to the display lists used by the switches, teleporters, etc.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3535 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdded a billboard VBO to the draw structure.
rlk [Sun, 27 Mar 2011 20:31:12 +0000 (20:31 +0000)]
Added a billboard VBO to the draw structure.
Re-implemented sol_bill and sol_back using VBOs.
Backgrounds and balls are now fully functional.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3534 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFixed rendering decals after opaque material and before transparent material. This...
rlk [Sun, 27 Mar 2011 19:38:28 +0000 (19:38 +0000)]
Fixed rendering decals after opaque material and before transparent material.  This was causing Z fighting.
Fixed material state revert in sol_draw.  This was allowing state to leak the level and corrupt the GUI.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3533 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFixed the shadow, though the shadow clip is still broken.
rlk [Sat, 26 Mar 2011 20:41:49 +0000 (20:41 +0000)]
Fixed the shadow, though the shadow clip is still broken.
Added the shadow flag to everything.  We'll sort out the non-shadow later.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3532 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoConverted the SOL renderer to use VBOs.
rlk [Sat, 26 Mar 2011 19:03:53 +0000 (19:03 +0000)]
Converted the SOL renderer to use VBOs.
Multitexture shadow is not yet implemented.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3531 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdded struct b_offs to solid_base.
rlk [Thu, 17 Mar 2011 20:14:26 +0000 (20:14 +0000)]
Added struct b_offs to solid_base.
Refactored solid_base, solid_draw, and mapc to accomodate b_offs.
Temporarily commented out the glMultiTexture conditional.
Fixed long type warning in sync.c under OSX.
Fixed Ogg Vorbis warning static callbacks.
Added timer feature to mapc.
Added CSV feature to mapc.
Removed "visible geom" output from mapc output, as offs is more relevant.
Removed uniq_geoms tweak from mapc.
Added uniq_mtrl tweak to mapc (just for symmetry, not for optimization.)

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3527 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoBranch for OpenGL ES work.
rlk [Tue, 15 Mar 2011 18:59:00 +0000 (18:59 +0000)]
Branch for OpenGL ES work.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3524 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoNevermania: Texture tweaks
elviz [Mon, 14 Mar 2011 03:11:22 +0000 (03:11 +0000)]
Nevermania: Texture tweaks

git-svn-id: https://s.snth.net/svn/neverball/trunk@3523 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoClip shadow above ball with a texture
parasti [Sun, 13 Mar 2011 17:58:07 +0000 (17:58 +0000)]
Clip shadow above ball with a texture

Requires ARB_multitexture, but tries hard to be optional.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3522 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoTweak shadow code to keep the transforms in one place
parasti [Sun, 13 Mar 2011 17:58:01 +0000 (17:58 +0000)]
Tweak shadow code to keep the transforms in one place

git-svn-id: https://s.snth.net/svn/neverball/trunk@3521 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMove lines around
parasti [Sun, 13 Mar 2011 17:57:51 +0000 (17:57 +0000)]
Move lines around

git-svn-id: https://s.snth.net/svn/neverball/trunk@3520 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoset-tones.txt: puncuation.
tonesfrommars [Sat, 12 Mar 2011 19:07:05 +0000 (19:07 +0000)]
set-tones.txt: puncuation.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3519 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agotones/bumperoo.map: fix coin values.
tonesfrommars [Sat, 12 Mar 2011 03:14:45 +0000 (03:14 +0000)]
tones/bumperoo.map: fix coin values.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3518 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agobigpipe.map: add funhouse rotation to big pipe. Too much?
tonesfrommars [Sat, 12 Mar 2011 03:12:07 +0000 (03:12 +0000)]
bigpipe.map: add funhouse rotation to big pipe. Too much?

git-svn-id: https://s.snth.net/svn/neverball/trunk@3517 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoNevermania: Add ladybirds.map
elviz [Sat, 12 Mar 2011 02:33:57 +0000 (02:33 +0000)]
Nevermania: Add ladybirds.map

git-svn-id: https://s.snth.net/svn/neverball/trunk@3516 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoGenerate texture coordinates for ball shadow
parasti [Fri, 11 Mar 2011 13:00:43 +0000 (13:00 +0000)]
Generate texture coordinates for ball shadow

Best case scenario: fixes shadow on rotating bodies and breaks nothing.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3515 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agomapc: Allow more (temporary) edges
elviz [Wed, 9 Mar 2011 20:50:10 +0000 (20:50 +0000)]
mapc: Allow more (temporary) edges

git-svn-id: https://s.snth.net/svn/neverball/trunk@3514 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoCache and share base SOL data
parasti [Mon, 7 Mar 2011 20:16:04 +0000 (20:16 +0000)]
Cache and share base SOL data

git-svn-id: https://s.snth.net/svn/neverball/trunk@3513 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoNevermania: Add rings.map
elviz [Sun, 27 Feb 2011 00:46:44 +0000 (00:46 +0000)]
Nevermania: Add rings.map

git-svn-id: https://s.snth.net/svn/neverball/trunk@3512 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix naming inconsistency
parasti [Fri, 25 Feb 2011 15:27:38 +0000 (15:27 +0000)]
Fix naming inconsistency

Arguably an improvement, but hey.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3511 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoOpt not to crash when loading level SOLs with no balls
parasti [Thu, 24 Feb 2011 22:40:23 +0000 (22:40 +0000)]
Opt not to crash when loading level SOLs with no balls

Instead, allocate a dummy ball structure with zero radius.  This is
incredibly stupid, but it also gives more interesting results than
simply refusing to load the level.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3510 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoTolerate mismatching number of levels in the score file
parasti [Thu, 24 Feb 2011 18:11:22 +0000 (18:11 +0000)]
Tolerate mismatching number of levels in the score file

git-svn-id: https://s.snth.net/svn/neverball/trunk@3509 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoSet svn:eol-style=native for some more text files
elviz [Wed, 23 Feb 2011 21:13:19 +0000 (21:13 +0000)]
Set svn:eol-style=native for some more text files

git-svn-id: https://s.snth.net/svn/neverball/trunk@3508 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoNevermania: Dial down sharpening of level shots
elviz [Wed, 23 Feb 2011 11:44:06 +0000 (11:44 +0000)]
Nevermania: Dial down sharpening of level shots

git-svn-id: https://s.snth.net/svn/neverball/trunk@3507 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoadd tones level set
tonesfrommars [Sun, 20 Feb 2011 01:01:46 +0000 (01:01 +0000)]
add tones level set

git-svn-id: https://s.snth.net/svn/neverball/trunk@3506 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agodiscs.map: Use standard turf texture and switch to billboards as path markers
elviz [Sat, 19 Feb 2011 22:59:04 +0000 (22:59 +0000)]
discs.map: Use standard turf texture and switch to billboards as path markers

git-svn-id: https://s.snth.net/svn/neverball/trunk@3505 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoNevermania: Replace uses of poof-blue with orb-blue
elviz [Sat, 19 Feb 2011 22:56:12 +0000 (22:56 +0000)]
Nevermania: Replace uses of poof-blue with orb-blue

git-svn-id: https://s.snth.net/svn/neverball/trunk@3504 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoAdd new billboard for marking platform paths
elviz [Sat, 19 Feb 2011 22:52:58 +0000 (22:52 +0000)]
Add new billboard for marking platform paths

The aim is to have a path marker texture that has better visibility than poof-blue when used with light backgrounds (e.g., alien) while retaining a reasonable look in darker ones. The image has been softened slightly to make the edges appear less jagged when mipmapping is turned off, as is the default setting. (May be revised later.)

git-svn-id: https://s.snth.net/svn/neverball/trunk@3503 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix lookaround mode without changing lerp alpha, also fix fly-by this way
parasti [Thu, 17 Feb 2011 11:11:49 +0000 (11:11 +0000)]
Fix lookaround mode without changing lerp alpha, also fix fly-by this way

Do this by copying the new view to the old view. It might seem that
this totally breaks interpolation (just like the previous fix), but
neither lookaround nor fly-by are lockstepped which makes
interpolation non-applicable here.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3501 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix lookaround mode
parasti [Thu, 17 Feb 2011 10:43:17 +0000 (10:43 +0000)]
Fix lookaround mode

git-svn-id: https://s.snth.net/svn/neverball/trunk@3500 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoRandom cleanup
parasti [Thu, 17 Feb 2011 10:43:11 +0000 (10:43 +0000)]
Random cleanup

git-svn-id: https://s.snth.net/svn/neverball/trunk@3499 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix interpolation in fall-out and goal screens
parasti [Tue, 15 Feb 2011 22:02:02 +0000 (22:02 +0000)]
Fix interpolation in fall-out and goal screens

git-svn-id: https://s.snth.net/svn/neverball/trunk@3498 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix crash on attemp to render missing background
parasti [Sat, 12 Feb 2011 22:04:02 +0000 (22:04 +0000)]
Fix crash on attemp to render missing background

git-svn-id: https://s.snth.net/svn/neverball/trunk@3497 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix misnamed function
parasti [Fri, 11 Feb 2011 21:09:26 +0000 (21:09 +0000)]
Fix misnamed function

git-svn-id: https://s.snth.net/svn/neverball/trunk@3496 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix interpolation in title screen replays
parasti [Fri, 11 Feb 2011 21:09:18 +0000 (21:09 +0000)]
Fix interpolation in title screen replays

git-svn-id: https://s.snth.net/svn/neverball/trunk@3495 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoImplement particle interpolation
parasti [Fri, 11 Feb 2011 19:34:14 +0000 (19:34 +0000)]
Implement particle interpolation

git-svn-id: https://s.snth.net/svn/neverball/trunk@3494 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoslope.map: Tiny texture fix
elviz [Fri, 11 Feb 2011 17:11:35 +0000 (17:11 +0000)]
slope.map: Tiny texture fix

git-svn-id: https://s.snth.net/svn/neverball/trunk@3493 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix glitches in teleport interpolation
parasti [Fri, 11 Feb 2011 17:05:54 +0000 (17:05 +0000)]
Fix glitches in teleport interpolation

git-svn-id: https://s.snth.net/svn/neverball/trunk@3492 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoTrack command state in a structure
parasti [Fri, 11 Feb 2011 17:05:44 +0000 (17:05 +0000)]
Track command state in a structure

git-svn-id: https://s.snth.net/svn/neverball/trunk@3491 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoPass the interpolation blend factor differently
parasti [Fri, 11 Feb 2011 17:05:35 +0000 (17:05 +0000)]
Pass the interpolation blend factor differently

Rather than pass it to the draw function, make it a member of the lerp
structure and set it through a function call.  Doing it this way
eliminates a few ill defined cases: 1) transitions between screens
that use different blend factors; 2) screens that render game state
from either a replay or a simulation.

git-svn-id: https://s.snth.net/svn/neverball/trunk@3490 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoFix missing do-while wrappers for macros
parasti [Fri, 11 Feb 2011 00:20:22 +0000 (00:20 +0000)]
Fix missing do-while wrappers for macros

git-svn-id: https://s.snth.net/svn/neverball/trunk@3489 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoOrthonormalize the interpolated reference frame
parasti [Fri, 11 Feb 2011 00:20:16 +0000 (00:20 +0000)]
Orthonormalize the interpolated reference frame

git-svn-id: https://s.snth.net/svn/neverball/trunk@3488 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoImplement game state interpolation (WIP)
parasti [Thu, 10 Feb 2011 19:00:24 +0000 (19:00 +0000)]
Implement game state interpolation (WIP)

git-svn-id: https://s.snth.net/svn/neverball/trunk@3487 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoMove reflective flag to SOL draw structure
parasti [Thu, 10 Feb 2011 19:00:01 +0000 (19:00 +0000)]
Move reflective flag to SOL draw structure

git-svn-id: https://s.snth.net/svn/neverball/trunk@3486 78b8d119-cf0a-0410-b17c-f493084dd1d7

13 years agoSplit SOL data structures into base, varying and rendering parts
parasti [Thu, 10 Feb 2011 18:59:50 +0000 (18:59 +0000)]
Split SOL data structures into base, varying and rendering parts

git-svn-id: https://s.snth.net/svn/neverball/trunk@3485 78b8d119-cf0a-0410-b17c-f493084dd1d7