summaryrefslogtreecommitdiff
path: root/game/network
Commit message (Collapse)AuthorAge
* Remove all the old network link creation codeDan Goodliffe44 hours
|
* Add network helpers for easily adding a chain of linksDan Goodliffe44 hours
|
* Split link generation definitions according to terrainDan Goodliffe48 hours
| | | | Copies the same imperfect logic from old link addition functions.
* Split definition creation from link creationDan Goodliffe2 days
|
* Link helper to get an End pointer based on positionDan Goodliffe3 days
|
* Fix conditional render of rail linksDan Goodliffe3 days
| | | | | Tests for vertices, not links in network. Fixes case where links are present but not in network, e.g. currently being built.
* Set terrain height and surface when adding linkDan Goodliffe3 days
|
* Add new network building interfaceDan Goodliffe3 days
| | | | Imperfect, matches some legacy interface in places, has some TODO notes.
* New genCurveDef for 2 directionsDan Goodliffe3 days
| | | | | | | | Based on formula/code from https://www.ryanjuckett.com/biarc-interpolation/ Produces smoother curves instead of equal curves. Removes need for that awful formula for finding the radius of said curves which has a tendency to blow up to infinity, and if not that then crazy rounding/accuracy errors.
* Simplified genCurveDef for 1 directionDan Goodliffe3 days
| | | | | Uses new find_arc_centre for 1 direction which doesn't break for 180 degree solutions.
* Avoid out parameters with Ray::intersectSphereDan Goodliffe2025-04-24
|
* Fix all warnings game/network/*Dan Goodliffe2025-04-23
| | | | Mostly naming of variables.
* Make Collections::objects protected, extend interfaceDan Goodliffe2025-03-22
| | | | | Keeps all required features accessible, but through a controlled interface.
* Invert how shared/unique is specified for CollectionDan Goodliffe2025-03-22
| | | | Template param is a pointer now, typedefs added for ease.
* Add ManyPtr which tracks specified subclassesDan Goodliffe2025-03-22
| | | | | | This removes the need to repeated dynamic_cast the pointer. Provides interface which enforces the fastest option for the required types.
* Pass frustum into render functionsDan Goodliffe2025-03-07
| | | | Support for culling objects outside the view frustum
* Work around clang thinking this is unused in lambdasDan Goodliffe2025-03-01
|
* Improve number of segments in LinkCurve basesDan Goodliffe2025-02-23
|
* Initial commit setting terrain during network constructionDan Goodliffe2025-02-09
| | | | This is all in the wrong place, it shouldn't be part of the network interface.
* Add distance helperDan Goodliffe2025-01-21
| | | | Works with integer positions, first template param allows forcing to N dimensions
* Update rails render for being atop a surfaceDan Goodliffe2024-12-24
|
* Enable min mipmap on network textureDan Goodliffe2024-12-24
|
* Fix calculations for sleeper texture coordsDan Goodliffe2024-12-24
|
* Expose network base width and surfaceDan Goodliffe2024-12-22
|
* Adjust track height to blend into terrainDan Goodliffe2024-12-21
|
* Expose network link interface to define a base area of the linkDan Goodliffe2024-12-21
|
* Fix calculating radius and length of curved linksDan Goodliffe2024-12-21
|
* Fix GenDef for networks, should be globalsDan Goodliffe2024-11-05
|
* Further template maths functionsDan Goodliffe2024-10-21
|
* Move lots of maths helpers to inline, constexpr, templatesDan Goodliffe2024-10-20
| | | | Always for working with different dimensions/types
* Apply StdTypeDefs for TextureDan Goodliffe2024-08-10
|
* Add helper constructors to ArcDan Goodliffe2024-03-21
| | | | | | * Two angles, wraps logic ensuring b after a * Two vector directions * Centre and two endpoints, in at least 2 dimensions, uses .xy()
* Make arc_length a member functionDan Goodliffe2024-03-21
|
* Simplify vector addition/subtraction with differnt typesDan Goodliffe2024-02-24
| | | | | Automatically applies correct rounding with float to int operations, adjusts test expectations accordingly.
* Remove the generic cache completelyDan Goodliffe2024-01-26
|
* Remove the static texture cacheDan Goodliffe2024-01-25
| | | | | Static variables persist too long, destruction is unmanaged and occurs after the gl context is gone.
* Bind the network profile in as uniformsDan Goodliffe2024-01-22
| | | | Makes the network shaders generic to network type
* Remove the old custom mesh per network link renderingDan Goodliffe2024-01-21
|
* Pass curve link radius, no recalculate, its constantDan Goodliffe2024-01-20
|
* Implement basic network curve part shaderDan Goodliffe2024-01-20
|
* Update network with vertex arrayDan Goodliffe2024-01-20
|
* Render rail network using new shadersDan Goodliffe2024-01-20
| | | | Non-functional, totally unimplemented at this stage
* Copy render vital link data to vertex bufferDan Goodliffe2024-01-20
|
* Remove PositionxD from NetworkDan Goodliffe2024-01-07
|
* Global positions in network dataDan Goodliffe2024-01-07
|
* Template Ray on position typeDan Goodliffe2024-01-07
|
* Remove misleading power operator^ on vec2/3Dan Goodliffe2023-12-29
|
* Remove weird operator! on vec2/3Dan Goodliffe2023-12-29
|
* Switch to millimeters for spatial unitsDan Goodliffe2023-11-15
| | | | | | Mostly a case of changing far too many magic numbers, something else to fix I guess. I probably missed something. Also there's some hackery when loading 3D models, which are still assumed to be in metres.
* WIP typedefing just about everything elseDan Goodliffe2023-11-09
|