traingame.git
13 years agoSome tweaks to GenTrack curve function
Nick Gasson [Sun, 10 Apr 2011 19:41:52 +0000 (20:41 +0100)]
Some tweaks to GenTrack curve function

13 years agoAdd a new BezierCurve::uniform function which has linear arc length behaviour
Nick Gasson [Sun, 10 Apr 2011 15:02:55 +0000 (16:02 +0100)]
Add a new BezierCurve::uniform function which has linear arc length behaviour

This improves the animation of train moving along curves.

14 years agoConnect up diagonal track
Nick Gasson [Sat, 19 Feb 2011 16:53:27 +0000 (16:53 +0000)]
Connect up diagonal track

14 years agoPlace diagonal track when shift held down
Nick Gasson [Sat, 19 Feb 2011 16:34:17 +0000 (16:34 +0000)]
Place diagonal track when shift held down

14 years agoFix right-angled curves in editor
Nick Gasson [Sat, 19 Feb 2011 16:18:48 +0000 (16:18 +0000)]
Fix right-angled curves in editor

14 years agoStart using GenTrack in editor
Nick Gasson [Sat, 5 Feb 2011 12:01:58 +0000 (12:01 +0000)]
Start using GenTrack in editor

14 years agoEditor generates GenTrack instead of curves
Nick Gasson [Fri, 4 Feb 2011 08:39:58 +0000 (08:39 +0000)]
Editor generates GenTrack instead of curves

14 years agoSimplify the pclass model a bit
Nick Gasson [Sat, 29 Jan 2011 21:03:51 +0000 (21:03 +0000)]
Simplify the pclass model a bit

14 years agoTidy up pclass model
Nick Gasson [Sat, 29 Jan 2011 17:16:18 +0000 (17:16 +0000)]
Tidy up pclass model

14 years agoFinish saddle tank engine model
Nick Gasson [Sat, 29 Jan 2011 16:40:44 +0000 (16:40 +0000)]
Finish saddle tank engine model

14 years agoStart a saddle tank engine model
Nick Gasson [Sat, 29 Jan 2011 15:21:48 +0000 (15:21 +0000)]
Start a saddle tank engine model

14 years agoSwitch back to -O2
Nick Gasson [Sat, 29 Jan 2011 11:17:58 +0000 (11:17 +0000)]
Switch back to -O2

14 years agoBump copyright year to 2011
Nick Gasson [Sat, 22 Jan 2011 15:24:38 +0000 (15:24 +0000)]
Bump copyright year to 2011

14 years agoRemove redundant merge_vector
Nick Gasson [Sat, 22 Jan 2011 15:14:59 +0000 (15:14 +0000)]
Remove redundant merge_vector

14 years agoRemove debug messages from make_mesh
Nick Gasson [Sat, 22 Jan 2011 14:45:08 +0000 (14:45 +0000)]
Remove debug messages from make_mesh

14 years agoForce -O3 on Unix GCC
Nick Gasson [Sat, 22 Jan 2011 14:42:26 +0000 (14:42 +0000)]
Force -O3 on Unix GCC

14 years agoFix FPE with integer vector division
Nick Gasson [Sat, 22 Jan 2011 14:42:08 +0000 (14:42 +0000)]
Fix FPE with integer vector division

14 years agoCache noise data
Nick Gasson [Mon, 17 Jan 2011 22:02:40 +0000 (22:02 +0000)]
Cache noise data

14 years agoSome more tweaks to grass noise
Nick Gasson [Mon, 17 Jan 2011 20:57:55 +0000 (20:57 +0000)]
Some more tweaks to grass noise

14 years agoOptimise noise function
Nick Gasson [Sun, 16 Jan 2011 22:18:59 +0000 (22:18 +0000)]
Optimise noise function

14 years agoDitch own noise implementation for Perlin one
Nick Gasson [Sun, 16 Jan 2011 22:03:01 +0000 (22:03 +0000)]
Ditch own noise implementation for Perlin one

14 years agoFunctioning noise texture but underlying grid is visible
Nick Gasson [Sun, 16 Jan 2011 21:43:42 +0000 (21:43 +0000)]
Functioning noise texture but underlying grid is visible

14 years agoSimple noise texture
Nick Gasson [Sun, 16 Jan 2011 15:38:21 +0000 (15:38 +0000)]
Simple noise texture

14 years agoAdd multiple chunk support to VBOs as well
Nick Gasson [Sun, 16 Jan 2011 10:25:05 +0000 (10:25 +0000)]
Add multiple chunk support to VBOs as well

14 years agoFix mesh buffer merging with multiple chunks
Nick Gasson [Sun, 16 Jan 2011 10:13:34 +0000 (10:13 +0000)]
Fix mesh buffer merging with multiple chunks

14 years agoAvoid having an empty "null" chunk
Nick Gasson [Sat, 15 Jan 2011 22:10:00 +0000 (22:10 +0000)]
Avoid having an empty "null" chunk

14 years agoMove counting functions into MeshBuffer
Nick Gasson [Sat, 15 Jan 2011 22:07:56 +0000 (22:07 +0000)]
Move counting functions into MeshBuffer

14 years agoDelete some commented code
Nick Gasson [Sat, 15 Jan 2011 22:05:30 +0000 (22:05 +0000)]
Delete some commented code

14 years agoTexture sorting mesh implementation
Nick Gasson [Sat, 15 Jan 2011 22:03:14 +0000 (22:03 +0000)]
Texture sorting mesh implementation

14 years agoSimplify mesh buffer interface
Nick Gasson [Sat, 15 Jan 2011 18:29:52 +0000 (18:29 +0000)]
Simplify mesh buffer interface

14 years agoFix texture rendering
Nick Gasson [Sat, 15 Jan 2011 18:08:45 +0000 (18:08 +0000)]
Fix texture rendering

14 years agoRemove display list mesh implementation
Nick Gasson [Sat, 15 Jan 2011 17:15:40 +0000 (17:15 +0000)]
Remove display list mesh implementation

14 years agoMake Index unsigned instead of size_t
Nick Gasson [Sat, 15 Jan 2011 15:44:38 +0000 (15:44 +0000)]
Make Index unsigned instead of size_t

14 years agoUse packed vector representation
Nick Gasson [Sat, 15 Jan 2011 14:41:15 +0000 (14:41 +0000)]
Use packed vector representation

14 years agoProfile several more vector operations
Nick Gasson [Sat, 15 Jan 2011 11:42:18 +0000 (11:42 +0000)]
Profile several more vector operations

14 years agoAdd profiling script
Nick Gasson [Sat, 15 Jan 2011 10:33:07 +0000 (10:33 +0000)]
Add profiling script

14 years agoStart trying to optimise vector code
Nick Gasson [Sat, 15 Jan 2011 09:54:29 +0000 (09:54 +0000)]
Start trying to optimise vector code

14 years agoMake functions in anonymouse namespaces static
Nick Gasson [Tue, 21 Dec 2010 13:39:54 +0000 (13:39 +0000)]
Make functions in anonymouse namespaces static

14 years agoFix GenTrack crash
Nick Gasson [Wed, 20 Oct 2010 19:25:46 +0000 (20:25 +0100)]
Fix GenTrack crash

14 years agoUpdate figure8 map with new gen track
Nick Gasson [Wed, 20 Oct 2010 19:20:50 +0000 (20:20 +0100)]
Update figure8 map with new gen track

14 years agoFix display of message area text
Nick Gasson [Sun, 19 Sep 2010 10:37:45 +0000 (11:37 +0100)]
Fix display of message area text

14 years agoImprovements to power plant and coal mine models
Nick Gasson [Sun, 19 Sep 2010 09:27:20 +0000 (10:27 +0100)]
Improvements to power plant and coal mine models

14 years agoSave each bit of scenery only once
Nick Gasson [Sun, 12 Sep 2010 09:47:20 +0000 (10:47 +0100)]
Save each bit of scenery only once

14 years agoAdd coal mine model
Nick Gasson [Sun, 12 Sep 2010 09:42:06 +0000 (10:42 +0100)]
Add coal mine model

14 years agoDelete scenery that covers multiple tiles
Nick Gasson [Sun, 5 Sep 2010 09:55:32 +0000 (10:55 +0100)]
Delete scenery that covers multiple tiles

14 years agoAdd Industry implementation
Nick Gasson [Sun, 22 Aug 2010 10:52:24 +0000 (11:52 +0100)]
Add Industry implementation

14 years agoFix some function names
Nick Gasson [Sun, 22 Aug 2010 09:54:33 +0000 (10:54 +0100)]
Fix some function names

14 years agoStub interfaces for industry and cargo
Nick Gasson [Sun, 22 Aug 2010 09:49:43 +0000 (10:49 +0100)]
Stub interfaces for industry and cargo

14 years agoIncrease clip volume overlap to remove some artefacts
Nick Gasson [Sat, 21 Aug 2010 15:37:26 +0000 (16:37 +0100)]
Increase clip volume overlap to remove some artefacts

14 years agoImplement get_covers for GenTrack
Nick Gasson [Sat, 21 Aug 2010 14:21:26 +0000 (15:21 +0100)]
Implement get_covers for GenTrack

14 years agoDefault game camera to floating
Nick Gasson [Sat, 21 Aug 2010 13:50:09 +0000 (14:50 +0100)]
Default game camera to floating

14 years agoFixup the power plant model
Nick Gasson [Fri, 13 Aug 2010 20:36:55 +0000 (21:36 +0100)]
Fixup the power plant model

14 years agoCalculate tile size of buildings
Nick Gasson [Fri, 13 Aug 2010 12:59:24 +0000 (13:59 +0100)]
Calculate tile size of buildings

Use it to connect anchor to all covered tiles

14 years agoRevert to platform sections from 0.2.1
Nick Gasson [Fri, 13 Aug 2010 12:02:00 +0000 (13:02 +0100)]
Revert to platform sections from 0.2.1

But offset them by 0.5

14 years agoA few tweaks to platform end/middle
Nick Gasson [Fri, 13 Aug 2010 11:51:36 +0000 (12:51 +0100)]
A few tweaks to platform end/middle

14 years agoRemove scaling from building XML
Nick Gasson [Wed, 11 Aug 2010 21:55:46 +0000 (22:55 +0100)]
Remove scaling from building XML

14 years agoBuilding models should now only be in positive xyz space
Nick Gasson [Wed, 11 Aug 2010 21:52:56 +0000 (22:52 +0100)]
Building models should now only be in positive xyz space

14 years agoIRenderable is no longer needed
Nick Gasson [Sun, 1 Aug 2010 20:12:07 +0000 (21:12 +0100)]
IRenderable is no longer needed

14 years agoMove scenery into Anchor<T> class
Nick Gasson [Sun, 1 Aug 2010 20:09:45 +0000 (21:09 +0100)]
Move scenery into Anchor<T> class

14 years agoNew Anchor<T> template to generalise TrackNode
Nick Gasson [Sun, 1 Aug 2010 20:04:02 +0000 (21:04 +0100)]
New Anchor<T> template to generalise TrackNode

14 years agoAvoid annoying warning caused by Boost.Optional
Nick Gasson [Sun, 1 Aug 2010 19:11:12 +0000 (20:11 +0100)]
Avoid annoying warning caused by Boost.Optional

14 years agoScenery and track implement shared IRenderable interface
Nick Gasson [Sun, 1 Aug 2010 19:07:47 +0000 (20:07 +0100)]
Scenery and track implement shared IRenderable interface

14 years agoTweaks to the power plant model
Nick Gasson [Sun, 1 Aug 2010 18:35:40 +0000 (19:35 +0100)]
Tweaks to the power plant model

14 years agoAdd new power plant model
Nick Gasson [Sun, 1 Aug 2010 14:47:34 +0000 (15:47 +0100)]
Add new power plant model

14 years agoHold down right mouse button to pan camera
Nick Gasson [Sun, 1 Aug 2010 13:39:19 +0000 (14:39 +0100)]
Hold down right mouse button to pan camera

14 years agoCheck TERM is not `dumb' before colouring output
Nick Gasson [Sat, 31 Jul 2010 20:51:35 +0000 (21:51 +0100)]
Check TERM is not `dumb' before colouring output

Fixes GUD output

14 years agoFix memory corruption caused by incorrect height map index
Nick Gasson [Sat, 31 Jul 2010 18:45:32 +0000 (19:45 +0100)]
Fix memory corruption caused by incorrect height map index

14 years agoRename get_covers2 to get_height_locked
Nick Gasson [Sun, 25 Jul 2010 10:43:09 +0000 (11:43 +0100)]
Rename get_covers2 to get_height_locked

14 years agoLocked height map nodes covered by track
Nick Gasson [Sun, 25 Jul 2010 10:40:14 +0000 (11:40 +0100)]
Locked height map nodes covered by track

14 years agoRename Map::Vertex to Map::HeightMap to avoid confusion
Nick Gasson [Sun, 25 Jul 2010 09:59:58 +0000 (10:59 +0100)]
Rename Map::Vertex to Map::HeightMap to avoid confusion

14 years agoLoad SBend track as GenTrack
Nick Gasson [Sun, 25 Jul 2010 09:42:02 +0000 (10:42 +0100)]
Load SBend track as GenTrack

14 years agoGoing backwards on GenTrack
Nick Gasson [Sun, 25 Jul 2010 09:16:49 +0000 (10:16 +0100)]
Going backwards on GenTrack

14 years agoCache bounding polygon in GenTrack
Nick Gasson [Sun, 25 Jul 2010 08:51:06 +0000 (09:51 +0100)]
Cache bounding polygon in GenTrack

14 years agoLoad CurvedTrack as GenTrack
Nick Gasson [Sat, 24 Jul 2010 21:06:46 +0000 (22:06 +0100)]
Load CurvedTrack as GenTrack

14 years agoSave GenTrack to XML
Nick Gasson [Sat, 24 Jul 2010 20:11:06 +0000 (21:11 +0100)]
Save GenTrack to XML

14 years agoUndo accidental changes to gen_track.xml
Nick Gasson [Sat, 24 Jul 2010 19:58:28 +0000 (20:58 +0100)]
Undo accidental changes to gen_track.xml

14 years agoAlgorithm to check whether point is within bounding polygon
Nick Gasson [Sat, 24 Jul 2010 19:55:05 +0000 (20:55 +0100)]
Algorithm to check whether point is within bounding polygon

14 years agoCompute bounding polygon for GenTrack segments
Nick Gasson [Sat, 24 Jul 2010 17:57:44 +0000 (18:57 +0100)]
Compute bounding polygon for GenTrack segments

14 years agoChange CrossoverTrack to use Point<int> to store origin
Nick Gasson [Sat, 24 Jul 2010 12:38:09 +0000 (13:38 +0100)]
Change CrossoverTrack to use Point<int> to store origin

14 years agoAdd new get_covers2 method to return covered tile vertices
Nick Gasson [Sat, 17 Jul 2010 07:25:33 +0000 (08:25 +0100)]
Add new get_covers2 method to return covered tile vertices

14 years agoMove flat_graident_func into TrackCommon
Nick Gasson [Sat, 17 Jul 2010 07:14:39 +0000 (08:14 +0100)]
Move flat_graident_func into TrackCommon

14 years agoDraw sleepers in GenTrack segments
Nick Gasson [Tue, 6 Jul 2010 20:32:25 +0000 (21:32 +0100)]
Draw sleepers in GenTrack segments

14 years agoUn-inline definitions in MapLoader
Nick Gasson [Tue, 6 Jul 2010 20:31:59 +0000 (21:31 +0100)]
Un-inline definitions in MapLoader

14 years agoShift cube used for frustum culling
Nick Gasson [Sun, 4 Jul 2010 19:56:54 +0000 (20:56 +0100)]
Shift cube used for frustum culling

14 years agoTidy up function naming
Nick Gasson [Sun, 4 Jul 2010 19:51:52 +0000 (20:51 +0100)]
Tidy up function naming

14 years agoRename get_average_triangle{C,_c}ount
Nick Gasson [Thu, 1 Jul 2010 22:40:20 +0000 (23:40 +0100)]
Rename get_average_triangle{C,_c}ount

14 years agoDisplay render stats in game window
Nick Gasson [Thu, 1 Jul 2010 22:34:40 +0000 (23:34 +0100)]
Display render stats in game window

14 years agoRender sleepers on GenTrack
Nick Gasson [Thu, 1 Jul 2010 21:09:10 +0000 (22:09 +0100)]
Render sleepers on GenTrack

14 years agoMerge branch 'gen_track'
Nick Gasson [Wed, 30 Jun 2010 20:25:36 +0000 (21:25 +0100)]
Merge branch 'gen_track'

14 years agoTrain moving along GenTrack
Nick Gasson [Wed, 30 Jun 2010 20:24:47 +0000 (21:24 +0100)]
Train moving along GenTrack

14 years agoConnect up diagonal GenTrack segments
Nick Gasson [Sun, 27 Jun 2010 16:36:02 +0000 (17:36 +0100)]
Connect up diagonal GenTrack segments

14 years agoFix bug in rendering of Bezier rails
Nick Gasson [Sun, 27 Jun 2010 15:41:26 +0000 (16:41 +0100)]
Fix bug in rendering of Bezier rails

14 years agoFunction naming tidy up
Nick Gasson [Sun, 27 Jun 2010 15:23:17 +0000 (16:23 +0100)]
Function naming tidy up

14 years agoAdd new GenTrack test map
Nick Gasson [Sun, 27 Jun 2010 14:57:27 +0000 (15:57 +0100)]
Add new GenTrack test map

14 years agoBasic rendering of new generic track
Nick Gasson [Sun, 27 Jun 2010 14:57:13 +0000 (15:57 +0100)]
Basic rendering of new generic track

14 years agoLoad GenTrack segments from XML
Nick Gasson [Sun, 27 Jun 2010 12:59:49 +0000 (13:59 +0100)]
Load GenTrack segments from XML

14 years agoDon't use add_definitions to set compiler flags
Nick Gasson [Sun, 27 Jun 2010 10:53:20 +0000 (11:53 +0100)]
Don't use add_definitions to set compiler flags

14 years agoMerge branch 'master' into gen_track
Nick Gasson [Sun, 27 Jun 2010 10:24:34 +0000 (11:24 +0100)]
Merge branch 'master' into gen_track

14 years agoFix saving of maps with new schema names
Nick Gasson [Sun, 27 Jun 2010 10:24:16 +0000 (11:24 +0100)]
Fix saving of maps with new schema names

14 years agoAdd new GenTrack track implementation
Nick Gasson [Sun, 27 Jun 2010 10:16:30 +0000 (11:16 +0100)]
Add new GenTrack track implementation