Jump to content



Photo
* * * * * 25 votes

WIP: Visual Pinball in Unity


  • Please log in to reply
811 replies to this topic

#201 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 12 March 2020 - 02:58 PM

If you uncollapse Data, then you cannot see it, which is why I couldn't find it from yesterday.

 

When you import textures that is limiting "Max-Size" 2048? To get better textures I can just change that.


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#202 freezy

freezy

    Member title

  • Members
  • PipPipPipPip
  • 683 posts

  • Flag: ---------

  • Favorite Pinball: T2, TOM, AFM

Posted 12 March 2020 - 08:40 PM

For the VR geeks:

 

https://blogs.unity3...ender-pipeline/



#203 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,311 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 13 March 2020 - 10:45 PM

@Rawd Nice! Be aware that saving to .vpx is a really fresh feature and there are probably still bugs (for starters I think the textures are screwed up) - and it only works if you "Import VPX as asset".

Could you explain how to export or save the table to .vpx please?  I do not see this option.


Edited by Rawd, 13 March 2020 - 10:47 PM.


 


#204 freezy

freezy

    Member title

  • Members
  • PipPipPipPip
  • 683 posts

  • Flag: ---------

  • Favorite Pinball: T2, TOM, AFM

Posted 13 March 2020 - 11:50 PM

You have to select the top node of the table in the hierarchy, then you'll have an export button in the inspector.

 

However, I haven't actually overridden the inspectors of the elements yet, so while you can update the raw data in each inspector, it's not very comfortable. Also, moving and scaling stuff in the scene view doesn't have any effect (i.e. doesn't update the data that gets written to the .vpx).



#205 Rawd

Rawd

    Pinball Wizard

  • VIP
  • 4,311 posts
  • Location:Edmonton, Canada

  • Flag: Canada

  • Favorite Pinball: Triple Strike



Posted 13 March 2020 - 11:56 PM

Ah.. OK thanks.   I basically wanted to use it for moving and scaling.  I can wait :)



 


#206 freezy

freezy

    Member title

  • Members
  • PipPipPipPip
  • 683 posts

  • Flag: ---------

  • Favorite Pinball: T2, TOM, AFM

Posted 21 March 2020 - 10:31 PM

Just a small update. Toxie recently merged a PinMAME project that doesn't use DirectX, meaning it's cross-platform. I started fiddling with it a bit, and it already looks pretty neat!

 



#207 Ben Logan

Ben Logan

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 2,275 posts
  • Location:California

  • Flag: ---------

  • Favorite Pinball: System 11

Posted 21 March 2020 - 11:25 PM

DMD looks warm and glowy. Excellent! 



#208 unclewilly

unclewilly

    sofa king.....

  • VIP
  • 5,072 posts
  • Location:Baltimore, Maryland

  • Flag: United States of America

  • Favorite Pinball: tz, tom, big hurt, who dunnit



Posted 22 March 2020 - 12:06 AM

Come on freezy. Got me itching to build a table now. Dmd looks very nice. What do alpha numerics look like in vr.
Maybe possible to seperate them?

Or better yet pull the dots straight from pinmame and have unity render them.

I'm thinking about vr as well as pinmames dmd is sometimes an issue in vr but if rendered by unity i would think would solve those issues

Edited by unclewilly, 22 March 2020 - 12:08 AM.

"it will all be ok in the end, if it's not ok, it's not the end"
 
Monster Bash VP10 WIP https://dl.dropboxus... (vpx)WIP15.vpx

uw2.gif


#209 STAT

STAT

    Pinball and Arcade Freak

  • VIP
  • 4,970 posts
  • Location:Wels - Austria

  • Flag: Austria

  • Favorite Pinball: Twilight Zone

Posted 22 March 2020 - 12:19 AM

STAT: wow ...

 

STAT with Beers: wwooww … :)

 

Guys, also with BG Support on 2nd Screen, or 3rd for DMD and more … ?

Hell, all the Vids Looking great … :tup:



#210 freezy

freezy

    Member title

  • Members
  • PipPipPipPip
  • 683 posts

  • Flag: ---------

  • Favorite Pinball: T2, TOM, AFM

Posted 22 March 2020 - 09:56 PM

Come on freezy. Got me itching to build a table now. Dmd looks very nice.

That's the highest compliment you could have made! Cheers! :)

 

I didn't look at alphanumeric yet, and TBH I think that still needs to be added to the PinMAME API I'm using. @toxie can confirm.

 

What you're seeing is a 128x32 texture in Unity, with the shader ported from dmdext (hence the dots), plus a little bloom (hence the glow).

 

@STAT: Yes, but it's still a bit unclear how. For VR we'll need to model the entire thing anyway, so why not just point three cameras and output them to three screens. On the other hand, we'll most likely integrate dmdext and B2S, so that would probably be more lightweight. Still all very much future talk though.



#211 unclewilly

unclewilly

    sofa king.....

  • VIP
  • 5,072 posts
  • Location:Baltimore, Maryland

  • Flag: United States of America

  • Favorite Pinball: tz, tom, big hurt, who dunnit



Posted 22 March 2020 - 10:07 PM

Any decision on scripting language?

"it will all be ok in the end, if it's not ok, it's not the end"
 
Monster Bash VP10 WIP https://dl.dropboxus... (vpx)WIP15.vpx

uw2.gif


#212 freezy

freezy

    Member title

  • Members
  • PipPipPipPip
  • 683 posts

  • Flag: ---------

  • Favorite Pinball: T2, TOM, AFM

Posted 22 March 2020 - 11:12 PM

It's still too early to tell. We're currently testing Unity's new DOTS physics (which allows switching to Havok in basically one click). If we're able to integrate VPX's flipper physics into that, authors would be able to benefit from a fully-fledged physics engine for all kinds of neat mechanics. So a lot of code that today's table scripts need to work around VPX's limitations would be obsolete, and I don't think creating a VBScript API would make much sense. So in that case, scripting would be in C#, but of course, that's many ifs.



#213 Mr H

Mr H

    Enthusiast

  • Members
  • PipPipPip
  • 96 posts

  • Flag: Australia

  • Favorite Pinball: Monsterbash

Posted 23 March 2020 - 02:52 AM

Nice work. Those reflections on the metal. Nothing much to most, but to me - so much. The lighting in realtime is going to be amazing. No need for pre-rendered tables. And to be able to change the environment and reflections properly with a hdri, will be so good. I'm clapping!



#214 TouchMaster97

TouchMaster97

    Enthusiast

  • Members
  • PipPipPip
  • 152 posts

  • Flag: Netherlands

  • Favorite Pinball: Haunted House

Posted 23 March 2020 - 11:39 AM

In case it's possible, how about making the camera automatically move to the backbox whenever appropriate? Tables like Pistol Poker, Cirqus Voltaire, Banzai Run and even Riverboat Gambler could take advantage of that.



#215 dark

dark

    3D model-man

  • VIP
  • 1,936 posts
  • Location:Toronto

  • Flag: Canada

  • Favorite Pinball: Star Wars, AbraCadaBra,MB, LAH,JPark...too many to choose!

Contributor

Posted 23 March 2020 - 03:26 PM

In case it's possible, how about making the camera automatically move to the backbox whenever appropriate? Tables like Pistol Poker, Cirqus Voltaire, Banzai Run and even Riverboat Gambler could take advantage of that.

This could be done in Future pinball since it used openGL and dynamic camera and FP is quite old now.  Unity can definitely support a dynamic camera that can be scripted to react to game events such as the ones you describe.



#216 LoadedWeapon

LoadedWeapon

    The Night Owl..

  • Members
  • PipPipPipPipPip
  • 2,562 posts
  • Location:South Carolina USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG



Posted 03 April 2020 - 02:57 AM

Wow this looks amazing! I can't wait to check it out..

#217 Ben Logan

Ben Logan

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 2,275 posts
  • Location:California

  • Flag: ---------

  • Favorite Pinball: System 11

Posted 03 April 2020 - 04:39 AM

Great to see you, LoadedWeapon. Your "nightmods" remain legendary!



#218 RonnyWilliam1

RonnyWilliam1

    Hobbyist

  • Members
  • PipPip
  • 20 posts

  • Flag: Canada

  • Favorite Pinball: Gladiators

Posted 13 April 2020 - 09:16 PM

Man, this could be the Ultimate Visual Pinball port when it's done! Not only would add support for a dynamic camera like Future Pinball has, but it could be even for making pinball games kinda like what Pinball FX 3 has done (I think at least)!

 

I can see tons of revolutionary pinball games being developed with this when it's done, including some of my potential pinball games.

 

And before anyone that has not said this on this thread yet, I know there is already some pinball engines available on the unity asset store, but either they are 2D or they're expensive, so this might a great alternative, probably the best pinball engine for unity once this is far enough on it's beta.



#219 jipeji16

jipeji16

    Enthusiast

  • Members
  • PipPipPip
  • 103 posts

  • Flag: France

  • Favorite Pinball: Creature from the black lagoon

Posted 19 April 2020 - 05:54 PM

Woooow :) very good news !!!! Incredible work Freezy !!! 



#220 Mr H

Mr H

    Enthusiast

  • Members
  • PipPipPip
  • 96 posts

  • Flag: Australia

  • Favorite Pinball: Monsterbash

Posted 11 May 2020 - 02:21 PM

How is it all going Freezy? Making much progress with VP and Unity seeing as Covid19 has most of us in lockdown!