izawartka
7578202e18
Improved camera hook
...
+When the scenery loads, the view is now rotated to match the orientation of the main SignalBox
+When the scenery loads, the zoom is set to the default value (5)
+When clicking on a SignalBox, the camera rotation is set according to its orientation
*Renamed the onCenter hook to setCamera and added rot and zoom options
2025-07-23 02:53:47 +02:00
izawartka
607599479e
Added SignalBox.getFinalRotation()
...
+Added SignalBox.getFinalRotation()
2025-07-23 02:49:08 +02:00
izawartka
4c7e917ba5
Minor fixes and tweaks
...
*Changed view align to work with switch and route tracks
*Changed spawn-points layer display name
-Removed comments in useZoomPubSub.js
-Removed redundant import in misc.js
2025-07-23 01:52:45 +02:00
Igor Zawartka
08a7d66490
Merge pull request #8 from dominik-korsa/align-track
...
Align the view to a straight track on double click
2025-07-23 01:18:22 +02:00
dominik-korsa
de6d3aa5dc
Use ZoomPanEmitter/Subscriber instead of a context for aligning the view
2025-07-23 00:44:13 +02:00
dominik-korsa
2e1947a7d4
Reindent TrackRenderer.js to use 4 spaces
2025-07-23 00:24:29 +02:00
dominik-korsa
a653a5ac2e
Merge branch 'refs/heads/main' into align-track
...
# Conflicts:
# src/components/map/object-renderers/TrackRenderer.js
2025-07-23 00:23:25 +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
2b94c0efaa
Align the view to a straight track on double click
...
This feature will be useful when exporting the visualization to an SVG file
2025-07-19 16:33:43 +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
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
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
izawartka
d84eafcd66
Updated sign defs
...
+Added definitions for w14a_oneside and w14b_oneside signs
*Fixed w9 sign definition being before w9a_oneside and w9b_oneside
2025-07-13 23:48:48 +02:00
izawartka
fdc28c467c
Added list.py
...
+ Added list.py script to help generate a list of sceneries from public/sceneries/
2025-07-13 23:47:25 +02:00
izawartka
04364de22b
Fixed minor bugs
...
*Fixed options for disabled layers in the side menu not collapsing
*Fixed missing return value in ElectrificationResolver._findTracksAdjacentToRoutes
*Changed SceneryObject.fromText to throw an error instead of logging it
*Updated tools/scp.py version text
2025-07-13 23:46:02 +02:00
Igor Zawartka
a0b792fb6f
Merge pull request #3 from dominik-korsa/switch-tracks
2025-07-13 23:11:21 +02:00
dominik-korsa
55312b48ae
Don't use flapMap for a single category in SceneryLayer
2025-07-13 23:06:09 +02:00
dominik-korsa
391be08250
Place route name label at the start of route
2025-07-13 22:58:55 +02:00
dominik-korsa
94554d5200
Remove isolation-id objects from model and modify isolation id renderer
2025-07-13 22:38:11 +02:00
izawartka
8501f71d4c
1.3.2 Release tweaks
...
*Changed buildVersion to 1.3.2
2025-07-13 21:51:50 +02:00
dominik-korsa
b0e0c85c6a
Remove unused maxRouteConnectionDistance config field
2025-07-13 21:43:26 +02:00
dominik-korsa
d394e843d7
Revert showing warning for the empty object type
2025-07-13 21:30:28 +02:00
dominik-korsa
b31277e614
Fix undefined reference in connect-tracks.js
2025-07-13 21:28:17 +02:00
dominik-korsa
7d36835b28
Don't remove route tracks in scenery processor script
2025-07-12 21:43:26 +02:00
dominik-korsa
3ae1827d10
Create IsolationId class, split IsolationEndRenderer and IsolationIdRenderer
2025-07-12 19:58:51 +02:00
dominik-korsa
5546601b67
Implement category application order
2025-07-12 19:07:45 +02:00
dominik-korsa
b137af2843
Don't mark route tracks as derailing tracks
2025-07-12 18:28:57 +02:00
dominik-korsa
3c3d4bf204
Store reference to otherTrack in TrackConnection
2025-07-12 18:19:55 +02:00
dominik-korsa
5eca3d4558
Change position of the route arrow
2025-07-12 17:13:19 +02:00
dominik-korsa
f9ef9de7ef
Do not render 0-length tracks
2025-07-12 17:07:40 +02:00