Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted

Hey guys,

I was working on analyzing VPX files in a more efficient way, and while going through the primitive meshes I thought hey why not export them to something readable by the browser?The first prototype was quick, but getting all the remaining table elements as well (ramps, surfaces, triggers, spinners, flippers, lights, and many more) finally took more time than I thought.

Then I had to work to get the 100+MB VPX data down to something under 10MB preferably so it wouldn't take ages to load. Thanks to PNG crushing and Draco compression, the model files are now under 10MB in average.

Finally, the 3D model needed to be displayed in the browser, preferably with somewhat dynamic lighting, textures and proper materials. Three.js is one of the best frameworks for doing exactly that, and now, when browsing a release on VPDB, you have another "3D View" button below the download button where you can explore the table in 3D.

mb-browser.thumb.jpg.e2097d48aa6aaa79a2ae12f50b3b3d03.jpg

It's pretty awesome because it allows you to appreciate the author's attention to detail and explore parts of the table you usually don't see. You can also play with the lights and toggle every type of playfield element.

There are a few more things to do in my mind like bake shadow maps into the model, play with environment maps, and who knows, maybe one day we can hook this up to a ROM simulator. ;)

Enjoy!

  • Like 1
  • Thanks 1
Posted

Forget pretty, that is bloody awesome!

Can you plug it into pinballx somewhere as a table explorer option?!?! ;)

Slight issue with popeye though;

image.png.2608dab4c9dde5677830ce3b0520a704.png

Other tables i looked at look great though.

 

Posted

Well, this is the web, PinballX isn't ;)

Maybe bake a GLTF viewer into PinballX, given the data is available. Not sure how it would work with the controls though.

Yes, Popeye is the one of the table with issues. The problem is that in general there is a lot of z-fighting going on due to meshes posed on top of each. One solution is to basically pick one randomly, that worked for all tables but Popeye. It's actually a hard problem because you first need to identify which faces overlap, and then which one to prioritize. Both are hard problems, because the can only overlap partially, and then there isn't really a heuristic which one is supposed to go on top.

Anyway, I might be able to solve this at least for the playfield mesh, because I can do more educated guesses about which to render.

Posted

Well i was kinda kidding about pinballx!, but hey it would be great if it could be done even if it was if cab online only to a cut down version online. I reckon if you disabled most pinballx functionality while viewing it you'd have 7 buttons on mast cabs availbale, flippers, magna's, add player, add credit & plunger, leaving Exit to go back to pinballx. Don't know how you'd know the exact version of a table being played though.

Thanks a lot for it on vpdb anyway :)

  • 3 weeks later...
Posted

@freezy as @scutters said this is bloody amazing and awesome, really makes you appreciate the effort the author put into the tables.

Thanks for adding it to VPDB.

ian

  • 3 months later...
Posted

 

On 5/15/2019 at 6:06 PM, simbamame said:

@freezy as @scutters said this is bloody amazing and awesome, really makes you appreciate the effort the author put into the tables.

Thanks for adding it to VPDB.

ian

Wow! What a great addition to VPDB, thanks Freezy!

To get it noticed a bit more maybe a quick video showing some tables, with explanations of navigating and zooming functions ..?

Its pretty easy to navigate, but showing it might help newer people see how easy and awesome it really is.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...