Dustin Carlino
f6a53797f0
manually glueing together some fixed intervals
2019-02-06 22:53:43 -08:00
Dustin Carlino
3bf4807364
thoughts on a different simulation model and a plugin skeleton to play
...
with it
2019-02-06 19:14:19 -08:00
Dustin Carlino
d56f04167b
tools to debug individual sidewalk corners. fixed some bugs where
...
sidewalk corners were incorrectly placed in the first place, causing bad
drawing. bug due to the same naive adjacent road approach
2019-02-06 13:58:44 -08:00
Dustin Carlino
b68b3117bc
woops, somehow regressed and dropped second_half when finding original hits for adjacent roads
2019-02-06 13:21:14 -08:00
Dustin Carlino
579097dbb1
fiddling with the event loop. simplified code, but didn't fix issues.
2019-02-06 12:58:26 -08:00
Dustin Carlino
904991e8e0
sorting roads per intersection by adjacency more carefully for merged
...
intersections. no real noticeable effect yet.
2019-02-06 10:53:30 -08:00
Dustin Carlino
40d3c6b0ca
count all Prerender uploads, not just the ones that happen in draw()
2019-02-05 15:02:10 -08:00
Dustin Carlino
17a0b57644
squeeze in vehicle type to CarID, for debugging convenience
2019-02-04 20:26:22 -08:00
Dustin Carlino
be1735d715
just skip bike trips that are silly loops
2019-02-04 15:32:46 -08:00
Dustin Carlino
09193d5f51
be able to spawn cars from buildings too
2019-02-04 13:58:23 -08:00
Dustin Carlino
13698cdb20
small fixes... debug buildings, spawn from headless, timer for
...
instantiating a scenario
2019-02-04 11:56:54 -08:00
Dustin Carlino
e0fd39bb7c
stop requiring hotkeys for TopMenu folders
2019-02-02 16:09:30 -08:00
Dustin Carlino
461efe4ef8
prerender crosswalks
2019-02-02 15:24:54 -08:00
Dustin Carlino
3f4711b13d
at last, prerender cars
2019-02-02 14:43:24 -08:00
Dustin Carlino
e330061b91
undo rendering hacks for tiny cars at borders, without fixing the spawning problem yet
2019-02-02 14:16:15 -08:00
Dustin Carlino
5a4a6bddf2
prerender bikes
2019-02-02 14:03:00 -08:00
Dustin Carlino
d08751fb64
preupload pedestrian geometry
2019-02-02 13:44:27 -08:00
Dustin Carlino
8a7413ac68
clean up old traits
2019-02-02 12:50:28 -08:00
Dustin Carlino
12540970b3
actually, can refactor further by borrowing the AgentCache in the
...
call-site. doh, that was so simple in hind-sight.
2019-02-02 12:47:55 -08:00
Dustin Carlino
61d1d2fe83
revamp handling of onscreen stuff. no more callback plumbing, and can
...
plumb prerender successfully into dynamic stuff. just can't do as much
work directly in DrawMap.
2019-02-02 12:32:07 -08:00
Dustin Carlino
bc4ba647bc
caching Renderables for agents
2019-02-01 15:10:35 -08:00
Dustin Carlino
ff80d0d445
disable time travel recording by default
2019-02-01 14:38:55 -08:00
Dustin Carlino
3451b65823
lazily compute SimStats
2019-02-01 14:31:35 -08:00
Dustin Carlino
58c4cb5e1b
dont look up full SimStats unless needed
2019-02-01 13:45:37 -08:00
Dustin Carlino
92134f9125
get halloween working with small lines. refactor a Line::maybe_new.
2019-02-01 12:12:40 -08:00
Dustin Carlino
097d1591e1
load previous/next initial map. refactor this functionality for sim
...
savestates
2019-02-01 11:03:57 -08:00
Dustin Carlino
c4d09b6e4f
rearrange colorscheme ownership
2019-01-31 23:28:26 -08:00
Dustin Carlino
64573ea0ea
own canvas inside of ezgui, not in applications. lots of refactoring
...
unlocked now...
2019-01-31 22:33:36 -08:00
Dustin Carlino
8d897f2266
speed up mouseover in main UI, and do it any zoom level now
2019-01-31 16:41:11 -08:00
Dustin Carlino
142bd57aa0
refactoring some approx_eq EPSILON_DIST checks
2019-01-31 15:10:33 -08:00
Dustin Carlino
32a308f120
dont crash when warping to a thing twice
2019-01-31 14:57:52 -08:00
Dustin Carlino
b9e96618da
stop abusing max distance for path tracing. disable some newly brokenish stuff
2019-01-31 13:09:15 -08:00
Dustin Carlino
7519fdf584
using strong Distance types in many more places
2019-01-30 15:54:54 -08:00
Dustin Carlino
0c6f7c424d
removing dimensioned from last few crates
2019-01-30 14:29:42 -08:00
Dustin Carlino
ac2b8f5a9a
switch to new units in sim... and editor, darnit, accidentally ammended
...
commit
2019-01-30 14:19:48 -08:00
Dustin Carlino
2a70efde5f
simplify: slice can fail. all the callers dont have to check for EPSILON_DIST
...
(also, disable not-so-useful geom unit tests that use randomness)
2019-01-29 18:53:04 -08:00
Dustin Carlino
a98383db8f
dealt with cases where a pair of intersections has two roads between them
2019-01-29 15:34:53 -08:00
Dustin Carlino
103a4ca053
ensuring no tiny Lines exist in most cases
2019-01-29 13:23:54 -08:00
Dustin Carlino
7495d29288
handle a case when drawing shared sidewalk corners
2019-01-28 23:57:39 -08:00
Dustin Carlino
2e982ec827
making an infinite line type, to be less confusing
2019-01-28 18:28:05 -08:00
Dustin Carlino
f2d8e77759
figured out the source of a weird polyline bug, adding checks to avoid
...
it in the future
2019-01-26 16:27:11 -08:00
Dustin Carlino
c58113d631
port the simpler intersection merging to InitialMap-world. try the
...
geometry restoration... wait, need more stuff first
2019-01-26 14:59:18 -08:00
Dustin Carlino
ab6796d56c
make intersection actually be a polygon now
2019-01-26 13:31:29 -08:00
Dustin Carlino
5ca066a7df
dont even draw parcels by default
2019-01-26 10:58:08 -08:00
Dustin Carlino
476a4346e8
disable slow and unused startup step, and add more timing in DrawMap
2019-01-26 10:39:43 -08:00
Dustin Carlino
2a59f90abb
do basic polygon batching for cars
2019-01-25 14:23:39 -08:00
Dustin Carlino
a999cdd57b
prerender intersection stuff too
2019-01-25 12:10:30 -08:00
Dustin Carlino
9cd2795329
prerender lane polygons for MASSIVE win
2019-01-25 11:24:43 -08:00
Dustin Carlino
8afe83162b
collapsing all lane markings into a single Drawable
2019-01-25 11:21:46 -08:00
Dustin Carlino
f59879011d
prerender buildings and parcels
2019-01-25 10:50:40 -08:00
Dustin Carlino
25bc02fb32
using prerender for lanes... a good start.
2019-01-25 10:38:40 -08:00
Dustin Carlino
623e578665
inverting the ezgui/GUI control to plumb Prerender
2019-01-25 10:19:58 -08:00
Dustin Carlino
6af551bc95
plumbing colorscheme early to support prerendering in DrawMap construction...
2019-01-25 09:46:19 -08:00
Dustin Carlino
b21852875e
batch lots more easy things... down from 760 calls for a scene to 158
2019-01-25 08:39:45 -08:00
Dustin Carlino
a065c63ad7
batching sidewalk lines. fix the very silly batching bug
2019-01-25 08:10:09 -08:00
Dustin Carlino
9ac0674e62
stop rounding yellow center lines. the roundness gets cut off by the intersection anyway.
2019-01-24 18:14:35 -08:00
Dustin Carlino
c7eaa2cf55
exposing some basic drawing performance stats...
2019-01-24 16:21:56 -08:00
Dustin Carlino
237a19b6ec
appease the clippy
2019-01-24 16:17:22 -08:00
Dustin Carlino
559d568acd
make Polygon store points and indices. don't use this fact for rendering
...
just yet.
2019-01-24 15:13:27 -08:00
Dustin Carlino
9182a57af5
enabling draw_arrow again... math is not quite great
2019-01-24 10:01:30 -08:00
Dustin Carlino
8d270574ec
revamping fork math
2019-01-23 17:27:34 -08:00
Dustin Carlino
a25f358295
hacking around top menu issue mostly
2019-01-23 16:19:32 -08:00
Dustin Carlino
f1b81456a6
calculating line height from the font
2019-01-23 14:02:43 -08:00
Dustin Carlino
9c94e2f374
simplify text API and storage to have one bg color per line
2019-01-23 13:38:24 -08:00
Dustin Carlino
9b14206be0
implementing GfxCtx forking... aka, reset uniforms
2019-01-23 12:22:26 -08:00
Dustin Carlino
fb7a809892
tweaked camera based on canvas. workable, not great.
2019-01-22 17:12:48 -08:00
Dustin Carlino
08db3bf27f
rendering traffic signal diagrams with lights per lane... needs work, so
...
disabling it
2019-01-22 11:58:56 -08:00
Dustin Carlino
6dee096a0e
zorder for cars/peds too... had to rework get_objects_onscreen
2019-01-21 14:51:57 -08:00
Dustin Carlino
1e7b8f2dfc
end interactive trips at border nodes
2019-01-21 13:53:24 -08:00
Dustin Carlino
a129adeaa1
refactoring spawning plugin so far
2019-01-21 12:43:35 -08:00
Dustin Carlino
c87c7b32ae
make interactive driving trips still end at a building
2019-01-21 12:21:26 -08:00
Dustin Carlino
4b42f70da4
actually spawning walking trips...
2019-01-21 11:59:59 -08:00
Dustin Carlino
0d297b9dac
let mouseover happen at low zoom for the agent spawner plugin
2019-01-21 11:47:44 -08:00
Dustin Carlino
f58f8a7ef1
make single spawn work from bldg to bldg or driving lane to driving lane
2019-01-21 11:34:22 -08:00
Dustin Carlino
998c27ddff
starting a plugin to interactively spawn specific agents
2019-01-20 19:31:07 -08:00
Dustin Carlino
11045fd44f
zorder for lanes and intersections
2019-01-20 14:15:50 -08:00
Dustin Carlino
f018158aa3
remove copyright comment from remaining files
2019-01-20 13:57:55 -08:00
Dustin Carlino
ae6438e8b7
show sidewalk corners when zoomed out
2019-01-19 21:19:49 -08:00
Dustin Carlino
4ca6571e2f
warp by stable intersection ID
2019-01-19 21:10:54 -08:00
Dustin Carlino
fad89ddffa
include more pts in the intersection polygon to only cover area from the original road bands. also fix a bug deduping points in the polygon.
2019-01-19 20:56:03 -08:00
Dustin Carlino
e403a6388d
a much simpler, general approach for intersection polygons. needs a
...
little work, but it replaces lots of other code.
disabled, but adding a few more cases to the list of manually merged short roads
2019-01-19 19:07:07 -08:00
Dustin Carlino
0c32faa40c
moving neighborhood to map_model crate, so convert_osm can stop depending on sim
2019-01-17 15:29:00 -08:00
Dustin Carlino
63c24ce5a7
improve robustness of image diffing script, even when intersection IDs change
2019-01-17 14:29:31 -08:00
Dustin Carlino
761008b3ac
make raw roads directly refer to intersections
2019-01-17 11:30:58 -08:00
Dustin Carlino
3422877d3d
adding a stable ID for raw roads and intersections. way easier to refer to things in the midst of deletions.
2019-01-17 11:10:05 -08:00
Dustin Carlino
dfe50dcee4
reasonable support for roundabouts... collapse it to a single
...
intersection, which usually gets treated like a stop sign, and has
reasonable geometry
2019-01-16 15:05:44 -08:00
Dustin Carlino
802cf333b8
list possible easy simplifications in the geom validator plugin
2019-01-16 12:48:40 -08:00
Dustin Carlino
e8e119dbbf
remove all the polyline shifting/polygon variants that might fail
2019-01-15 15:25:00 -08:00
Dustin Carlino
aae021f478
oops, gigantic change trying to handle bad lane geometry
...
- debug points and triangles of lanes
- disabled fixes for polylines with points that change angles by 180 and can be fixed by swapping them
- organize intersection polygon code in different methods for the degenerate cases
- try something new for degenerate-two's... fix road centers, then calculate intersection corners. it fixed a few spots!
2019-01-15 13:48:15 -08:00
Dustin Carlino
3cc1ccfd26
annotate screencaps with an intersection in the shot
2019-01-15 11:00:13 -08:00
Dustin Carlino
66ef25c8aa
tool to compare screencaps
2019-01-15 10:06:54 -08:00
Dustin Carlino
09a3aed407
import raw map to synthetic
2019-01-15 09:37:23 -08:00
Dustin Carlino
bae23f79da
even better progress, and make it easier to deal with failed montage
2019-01-14 12:01:56 -08:00
Dustin Carlino
299f05e0a2
force showing full detail when screencapping at low zoom
2019-01-14 11:24:07 -08:00
Dustin Carlino
dbfc1ec0d2
combine the tiled images
2019-01-14 11:13:48 -08:00
Dustin Carlino
afa159abb4
ezgui-driven magic for screencapping EVERYTHING
2019-01-14 08:46:40 -08:00
Dustin Carlino
e607c6574a
actually, use screengrab
2019-01-13 17:54:58 -08:00
Dustin Carlino
a94fddb209
try screenshot capture again. it's very slow and broken.
2019-01-13 15:40:58 -08:00
Dustin Carlino
66006618df
hold a key to show traffic signal diagram
2019-01-13 14:14:07 -08:00
Dustin Carlino
f1536fa260
make sure sidewalk corner polygons dont explode out of the original intersection polygon
2019-01-12 23:31:35 -08:00