Commit Graph

236 Commits

Author SHA1 Message Date
dominik-korsa
d60184c8cc
Fix wrong Quaternion class use in vector3.js 2025-07-23 01:10:22 +02:00
dominik-korsa
3aec232bf0
Fix wrong Quaternion class use in some places 2025-07-23 01:07:44 +02:00
dominik-korsa
b7c71e37ac
Merge branch 'main' into prefab-parser
# Conflicts:
#	src/components/map/object-renderers/TrackRenderer.js
#	src/helpers/miscHelper.js
2025-07-23 01:03:59 +02:00
dominik-korsa
9a04a7b2a8
Rename Quaternion filename and class to avoid merge conflict 2025-07-23 00:59:33 +02:00
Igor Zawartka
7a2c969489
Merge pull request #9 from dominik-korsa/elevation-map
Start elevation legend at 0
2025-07-23 00:18:21 +02:00
dominik-korsa
72b01b0d47
Start elevation legend at 0 2025-07-23 00:15:10 +02:00
Igor Zawartka
b97668cd63
Merge pull request #7 from dominik-korsa/elevation-map
Add track elevation layer
2025-07-23 00:07:51 +02:00
dominik-korsa
6b6fa79501
Replace useGradients hook with GradientsManager 2025-07-22 23:48:02 +02:00
izawartka
872d44a3f0 Improved Platform transforms & rendering
*Improved Platform (MiscGroups) transforms. Positions are now 100% accurate, rotations ~90%
*Platforms won't be rendered if their tilt is too big
*Misc objects now use yawData.yaw as their "y rotation" in rendering
*Renamed Platforms layer
2025-07-22 16:37:37 +02:00
izawartka
0c656f3ca6 Improved MiscGroups transforms
*Improved the way how MiscGroups apply transforms to their children
2025-07-21 19:02:32 +02:00
izawartka
f6ca38e0f9 Added Platforms disable option
+Added an option to disable Platform objects parsing and rendering
2025-07-21 18:59:44 +02:00
izawartka
884652ac8f Updated scp.py
*Updated scp.py to not ignore MiscGroups
2025-07-21 18:54:36 +02:00
izawartka
4855787e23 Added Quaternion class
+Added Quaternion class
2025-07-21 18:54:04 +02:00
izawartka
5b83f8c817 Added platforms renderer
+Added an experimental platforms renderer
2025-07-20 23:31:22 +02:00
dominik-korsa
ec20068309
Pass scenery directly to Gradients 2025-07-19 17:54:03 +02:00
dominik-korsa
94bfa7c060
Add Track.getPointAtDist method and refactor StandardTrack._calcPoints() 2025-07-19 16:19:46 +02:00
dominik-korsa
ff3baa3c26
Display track radius in track hover info 2025-07-19 15:48:36 +02:00
dominik-korsa
fe17f058bb
Use numbers instead of strings for slopes 2025-07-19 15:37:45 +02:00
dominik-korsa
167f8d87fe
Remove PointTrack class 2025-07-19 15:29:42 +02:00
dominik-korsa
e3b34cd149
Remove RouteTrack class 2025-07-19 15:18:01 +02:00
dominik-korsa
56c1360e30
Merge remote-tracking branch 'refs/remotes/upstream/main' into prefab-parser 2025-07-19 14:07:45 +02:00
dominik-korsa
aea4e53760
Extract Switch._createTrackConnections method
# Conflicts:
#	src/model/switch.js
2025-07-19 14:02:55 +02:00
dominik-korsa
e1d1540f9e
Remove SwitchPrefab class 2025-07-19 13:41:04 +02:00
dominik-korsa
b99c302c75
Rename otherEnd to getOtherEnd 2025-07-19 13:26:30 +02:00
dominik-korsa
8f94f0f142
Remove SwitchPrefabTrack class 2025-07-19 13:24:57 +02:00
dominik-korsa
e95a4dddaf
Remove SwitchPrefab._verifyConnections() 2025-07-19 13:10:01 +02:00
dominik-korsa
14b69ed562
Move connection processing to Python script 2025-07-19 13:06:38 +02:00
izawartka
c01077ce38 MiscGroups bugfixes
*Fixed parser crashing if Platform def not found
*Fixed MiscGroups order
-Removed Platform.miscGroups (debug)
2025-07-19 12:50:56 +02:00
izawartka
9840400fd9 Fixed Routes double apply
*Fixed Route objects being able to be applied more than once
2025-07-19 12:30:31 +02:00
izawartka
02bbf352d7 Increased signal signs max distance
*Increased Constants.parser.attachSignsMaxDistanceX
2025-07-19 12:28:34 +02:00
izawartka
5d9a9f3769 Updated Vector3
+Added various Vector3 methods - divide (by scalar), length, lengthSq, normalize
2025-07-19 12:27:21 +02:00
izawartka
87b2091333 Added Platforms parsing
+Added support for parsing Platforms
+Added glb_bounds.py - a script for extracting bounding boxes from GLB files
*Updated scp.py to not ignore MiscGroups and Platforms
2025-07-19 12:26:23 +02:00
izawartka
c6b6fef724 Improved Misc objects parsing
+Added AngleHelper.normalizeDegVector
+Added support for MiscGroups
+Added an option to skip base Misc objects parsing
*Moved nextMiscId from Scenery to SceneryParser
*Cleane up SceneryParser code
2025-07-19 12:22:38 +02:00
dominik-korsa
0d7e8dc18c
Move some prefab processing from JavaScript to Python script 2025-07-19 02:13:17 +02:00
izawartka
15c7d8ba9e Moved misc to a separate directory
*Moved "Misc" objects to /src/model/misc
2025-07-18 21:58:22 +02:00
Igor Zawartka
2d51dfe260
Merge pull request #6 from dominik-korsa/derailer-direction
Flip derailer icon depending on the derailing direction
2025-07-18 20:11:43 +02:00
dominik-korsa
8c48da785b
Add track elevation layer 2025-07-17 22:54:39 +02:00
dominik-korsa
4c4da95016
Flip derailer icon depending on the derailing direction 2025-07-16 23:54:28 +02:00
dominik-korsa
c7dec4abaf
Fixed switch Rkpd 60E1-190-1_9 connections, added more debug logs 2025-07-16 21:56:52 +02:00
dominik-korsa
6d04705c6f
Update call to SwitchPrefab.parseExported 2025-07-16 16:21:44 +02:00
dominik-korsa
b7896bca6e
Change placement of isolation id marker 2025-07-16 16:20:33 +02:00
dominik-korsa
d5206e4281
Use track data from the parse-prefabs script for all prefabs 2025-07-16 16:08:48 +02:00
dominik-korsa
ebbb2323e8
Create eprint function for info logging 2025-07-16 13:01:18 +02:00
dominik-korsa
6ce107fcba
Add script usage note 2025-07-16 12:51:27 +02:00
dominik-korsa
7ddf45cbc4
Print output in a more usable format 2025-07-16 12:17:33 +02:00
dominik-korsa
e3b991f786
Parse actual tracks in prefabs 2025-07-16 11:54:12 +02:00
dominik-korsa
507c516b0b
Export prefabs to JSON 2025-07-16 10:37:07 +02:00
izawartka
17435b829e Improved connectTracks
*Optimized the connectTracks function
+Added an optional warning indicating which Switch's incorrect definition might be associated with a track connection error
2025-07-14 22:08:44 +02:00
izawartka
72c3c7f089 Fixed electrification propagation on switches
*Fixed NON_ELECTRIFIED status being propagated back when NEVP is on a track with more than 2 connections

coming from >------------[-- NEVP --]----> propagate
                       /
don't propagate! <----/       ^ current track with 3 connections
2025-07-14 19:30:43 +02:00
izawartka
bb5de115b7 1.4.0 Release tweaks 2025-07-13 23:56:10 +02:00