Ben Walker (@benprototype) header
Ben Walker (@benprototype) profile picture

engineering things

United Kingdom
Joined April 2015
Photo by Ben Walker (@benprototype)Photo by Ben Walker (@benprototype)Photo by Ben Walker (@benprototype)Photo by Ben Walker (@benprototype)Photo by Ben Walker (@benprototype)Photo by Ben Walker (@benprototype)Photo by Ben Walker (@benprototype)Photo by Ben Walker (@benprototype)Photo by Ben Walker (@benprototype)Photo by Ben Walker (@benprototype)
Parking Simulator is now free to play! Updates coming very soon to bring more cars and levels to the game. Play now on PC, Phone, Tablet or Xbox! roblox.com/games/5801575819/… #robloxdev #rbxdev #roblox @ToppleGames
11
15
5
123
ok its fast again. this is a way more detailed voxel grid and way more explosions than would ever happen in game average is 4ms and 99th percentile is 19ms which is like 50fps only performance concern now is memory usage of all the meshes/textures on mobile i think
1
12
470
i implemented various optimisations and got it from p50=40ms, to p50=4-5ms so an 8x speed up on average and p99 before was 80ms which felt horrible theres probably a bit more left to squeeze out plus i could compute the chunks in parallel but its not worth the effort i think
1
202
its a bit slow with this many explosions and chunk updates going on at once i'll try profiling it and speeding up the slow bits next. it might also be able to run chunk updates in parallel but i've not tried that before worst case i can just lower the voxel/render resolutions
1
8
470
I need to tune the noise, but adding material variations to the rock is pretty simple. I can use the marching squares to detect contours for each material and generates a few more meshes per chunk
1
7
319
Rendering the destructible terrain with meshparts. I'm honestly surprised the engine allows this. Not being able to use a fragment shader makes texturing this so difficult. There's a few layers of dynamic meshes per chunk here to get the grass and mud layers to work.
7
5
126
5,575
Here's a few screenshots that show a bit more detail. Each chunk is made up of a rock mesh, a grass mesh, and a mud projection. Triangulating all this fast enough for real-time destruction was certainly fun.
6
401
Ben Walker retweeted
#robloxdev item boxes go boing
6
6
159
10,492
voxels data -> chunks -> marching squares contour detection -> tracing edge loops -> convex decomposition -> ear clipping triangles and its so fasttttttt and can update in real time! mesh parts next. i really hope i dont hit an engine limitation so much work went into this haha
30
31
2
561
25,688
rendering each chunk with a mesh part now triangulation has some precision related issues and it seems like i'll need to use parts/wedges along the boundary for collisions it slows down a bit updating the entire map like this but it's not optimised for this at all
15
1,102
Grenades now go boom. I switched the terrain over to a custom marching squares approach. It's just creating thousands of parts right now. I will try out a dynamic mesh next + hopefully proper textures
3
7
441
working on a new (old) game. this is how grenades work, right?
1
17
970
Working on a 'parking sensor' feature for parking simulator that will detect when you're getting close to obstacles and show a warning + beep
1
14
369
mostly working
1
11
287
Working on new content for parking simulator
2
8
465
Kinematic vehicle path planning is very difficult but I've finally made some progress. This is using A* to explore the 'state space' and find a series of inputs that get the car to the target. Its like pathfinding - but also considers momentum, turning circle, and collisions.
5
51
1,828
There's a lot of parameters to tune. I stumbled on the values here by pure luck, and tweaking even slightly completely breaks things. I clearly have a lot to improve but I'm confident this approach can give me good results!
4
335
Making some progress on the vehicle collision predictor. I've implemented an approximation of the physics engine, which can simulate the future position of car. The next step is to try apply inputs based on this simulation to avoid the predicted collisions.
1
6
371
Very rough npc-vehicle controller. It doesn't pathfind or try to avoid collisions yet. It just tries to drive towards the target and park on top of it.
2
3
53
2,830
Looks like flights are leaving the holding pattern
2
385