Jump to content



Photo

Unity 3D and VPinMAME!


  • This topic is locked This topic is locked
1388 replies to this topic

#421 rockme

rockme

    Enthusiast

  • Members
  • PipPipPip
  • 108 posts
  • Location:Gothenburg, Sweden

  • Flag: Sweden

  • Favorite Pinball: Attack From Mars

Posted 08 April 2012 - 03:50 PM

No worries, take all the time you need, man! You´re doing incredible work! dblthumb.gif

I guess we are all just so very excited about this! I haven´t donated yet, but I probably
will very soon. Vive la France and Long Live Pinball! otvclap.gif

#422 louizou

louizou

    Enthusiast

  • Members
  • PipPipPip
  • 265 posts

  • Flag: France

  • Favorite Pinball: BlackKnight2k T2 Twilight Zone

Posted 08 April 2012 - 06:19 PM

@captain flemme : i'm from generation 75 (une vieille chouette quoi )
i need some help for finalising the reading of ms3d models and handle complex animations.
I thought i had finished with this , but trying to do my own models , i've found that my way of handling animations is not totally correct.
It's a difficult part and without unity knowledge , it may be a realy tough job.
There's an example called "procedural" for unity that shows how to create meshes by scripting (It could be a first thing to learn)
and this part of the help talking about animation , weigthing , rigging, etc.. http://docs.unity3d....oneWeights.html
and this one talking about animations curve : http://unity3d.com/s...p.SetCurve.html

@rockme : you're right , i must not try to go to fast.
even if i still have some weird bk2k behaviour sometimes, it's better than before.
I must continue testing this table and class of 1812 to find the solution.
Thanks for the support wink.gif




uplogomini.png

Continue helping us at [email protected]

 


#423 CPSNine

CPSNine

    Enthusiast

  • Platinum Supporter
  • 136 posts

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

  • Favorite Pinball: Tales of the Arabian Nights

Posted 09 April 2012 - 02:34 AM

Great job Louizou, thank you for keeping us updated on your progress.
My Cab: Pin-up
Universal Pinball Machine

#424 louizou

louizou

    Enthusiast

  • Members
  • PipPipPip
  • 265 posts

  • Flag: France

  • Favorite Pinball: BlackKnight2k T2 Twilight Zone

Posted 09 April 2012 - 10:25 AM

It still needs tweaking as it crashes at the first play, but after one or two resets it gives this :





uplogomini.png

Continue helping us at [email protected]

 


#425 rockme

rockme

    Enthusiast

  • Members
  • PipPipPip
  • 108 posts
  • Location:Gothenburg, Sweden

  • Flag: Sweden

  • Favorite Pinball: Attack From Mars

Posted 09 April 2012 - 10:32 AM

That looks awesome if you ask me! Great job!! dblthumb.gif

#426 kruge99

kruge99

    Pinball Wizard

  • VPF Staff
  • 3,901 posts
  • Location:Markham, Ont.

  • Flag: Canada

  • Favorite Pinball: Black Knight, High Speed and Pin*Bot



Posted 09 April 2012 - 10:33 AM

QUOTE (louizou @ Apr 9 2012, 06:25 AM) <{POST_SNAPBACK}>
It still needs tweaking as it crashes at the first play, but after one or two resets it gives this :


Impressive!! dblthumb.gif


Best Regards,
Todd.

[proud owner of a Williams Solar Fire]

- It's called "The American Dream" because you have to be asleep to believe it.
George Carlin
- Truly great madness cannot be achieved without significant intelligence.
Henrik Tikkanen
- "Reality check, Michelle, Talk about composure, Total lack of. He's a man-- About-- 12 Feet Tall--"
Carrie Kelly
Posted Image

#427 Glxb

Glxb

    Enthusiast

  • VIP
  • 385 posts

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

  • Favorite Pinball: The Addams Family



Posted 09 April 2012 - 10:57 AM

AWESOME!

GLXB
Follow me on twitter. @GLXB

#428 gStAv

gStAv

    Pinball Lover

  • Members
  • PipPipPipPip
  • 1,331 posts

  • Flag: Sweden

  • Favorite Pinball: TOM, IJ, AFM, WC94

Posted 09 April 2012 - 11:00 AM

Yejjj! otvclap.gif otvclap.gif

3rs054-6.png


#429 rehab

rehab

    Enthusiast

  • Members
  • PipPipPip
  • 381 posts
  • Location:Amsterdam

  • Flag: Netherlands

  • Favorite Pinball: funhouse,AFM,MM

Posted 09 April 2012 - 11:39 AM

mighty!

#430 snograt

snograt

    Neophyte

  • Platinum Supporter
  • 7 posts
  • Location:London

  • Flag: England

  • Favorite Pinball: The Machine: Bride of Pin*bot

Posted 09 April 2012 - 11:57 AM

Fantastique!

#431 bent98

bent98

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,077 posts
  • Location:NY

  • Flag: United States of America

  • Favorite Pinball: Roadshow, Haunted House, Safe Cracker

Posted 09 April 2012 - 11:58 AM

great job

#432 louizou

louizou

    Enthusiast

  • Members
  • PipPipPip
  • 265 posts

  • Flag: France

  • Favorite Pinball: BlackKnight2k T2 Twilight Zone

Posted 09 April 2012 - 11:58 AM

thanks all !!

But i think it lacks something really important !!

RAMPS !!

This scares me a lot but i must fight my fears !!

Wired ramps , here i come !!


uplogomini.png

Continue helping us at [email protected]

 


#433 Glxb

Glxb

    Enthusiast

  • VIP
  • 385 posts

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

  • Favorite Pinball: The Addams Family



Posted 09 April 2012 - 12:11 PM

QUOTE (louizou @ Apr 9 2012, 12:58 PM) <{POST_SNAPBACK}>
thanks all !!

But i think it lacks something really important !!

RAMPS !!

This scares me a lot but i must fight my fears !!

Wired ramps , here i come !!


Just figured out why they would be a problem, FP doesn't store them as a model but a series of parameters?

I know this sort of thing is way down the line but do you think its possible to have the mechanical sounds in it? like the ball dropping onto the table, ball rolling, hitting metal etc?

GLXB


Edited by Glxb, 09 April 2012 - 12:12 PM.

Follow me on twitter. @GLXB

#434 louizou

louizou

    Enthusiast

  • Members
  • PipPipPip
  • 265 posts

  • Flag: France

  • Favorite Pinball: BlackKnight2k T2 Twilight Zone

Posted 09 April 2012 - 01:23 PM

i see them a s an eventual problem on the physics side ( i hope they won't be to cpu intensive )

For the sounds , i think it could be possible.

You can start prepare some good ones!

It will be a pleasure to test that when the ramps will be finished wink.gif

Edited by louizou, 09 April 2012 - 01:33 PM.

uplogomini.png

Continue helping us at [email protected]

 


#435 louizou

louizou

    Enthusiast

  • Members
  • PipPipPip
  • 265 posts

  • Flag: France

  • Favorite Pinball: BlackKnight2k T2 Twilight Zone

Posted 09 April 2012 - 05:23 PM

oups !! something i forgot to ask ...

is my understanding of a spanned table correct !

For 2 screens with a resolution of 1280*720 , would that give this ?


uplogomini.png

Continue helping us at [email protected]

 


#436 freezy

freezy

    Member title

  • Members
  • PipPipPipPip
  • 685 posts

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

  • Favorite Pinball: T2, TOM, AFM

Posted 09 April 2012 - 06:17 PM

Great work. So if I understand this correctly, the sound/DMD comes from VPinMame and the table you've managed to convert from FP. But what about the scripting? Did you already manage to convert the .vb from FP into your Unity3D engine, or is VPinMame also involved in that? And how does it hook into all the playfield lighting/behavior, is your import engine already so powerful it fully integrates with your table model?

Anyway, I'm enjoying your progress!

#437 destruk

destruk

    VPF Veteran

  • VPF Staff
  • 6,338 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: Ultrapin!



Posted 09 April 2012 - 06:25 PM

QUOTE (louizou @ Apr 9 2012, 11:23 AM) <{POST_SNAPBACK}>
oups !! something i forgot to ask ...
is my understanding of a spanned table correct !
For 2 screens with a resolution of 1280*720 , would that give this ?


For what your image shows, for a spanned display system it needs to be rotated 90 degrees counter-clockwise and each half requires the same resolution.
Spanned displays only work on limited hardware - so, windows XP, nvidia cards older than a GTS260, and two specific driver revisions are compatible, so you would be better off not using them, or program discrete individual displays with independent resolution and rotation options.

Build a fire, vipers love the heat.


#438 louizou

louizou

    Enthusiast

  • Members
  • PipPipPip
  • 265 posts

  • Flag: France

  • Favorite Pinball: BlackKnight2k T2 Twilight Zone

Posted 09 April 2012 - 06:35 PM

hi freezy

you can have a look at previous pages , you will find some scripting example .

I don't use any functions of the fp script engine.

I try to make a mix between fp objects properties and vpinmame scripting .

As an exemple , for the kickers , I use orientation of the fp model (rotation parameter) and strength, to know where and how strong i must eject the ball.

If you look at those script example , you can notice that kicker vp params are here , but , they are not used (i'll remove this in a neer future to avoid confusion)

QUOTE (destruk @ Apr 9 2012, 08:25 PM) <{POST_SNAPBACK}>
QUOTE (louizou @ Apr 9 2012, 11:23 AM) <{POST_SNAPBACK}>
oups !! something i forgot to ask ...
is my understanding of a spanned table correct !
For 2 screens with a resolution of 1280*720 , would that give this ?


For what your image shows, for a spanned display system it needs to be rotated 90 degrees counter-clockwise and each half requires the same resolution.
Spanned displays only work on limited hardware - so, windows XP, nvidia cards older than a GTS260, and two specific driver revisions are compatible, so you would be better off not using them, or program discrete individual displays with independent resolution and rotation options.


thanks brian for the answer,

having 2 separates windows will involve creating a second exe with lan communication between them ... that will be a little more work.

the image is 2560*720 so each half has the same res.

I can rotate each view separately if needed (not yet implemented , but easily doable)

I don't know how to do , ok ... i'll see it later

uplogomini.png

Continue helping us at [email protected]

 


#439 freezy

freezy

    Member title

  • Members
  • PipPipPipPip
  • 685 posts

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

  • Favorite Pinball: T2, TOM, AFM

Posted 09 April 2012 - 09:17 PM

Thanks louizou!

I'm still not 100% grasping the approach, however I'm looking forward to fiddling with code once it's open sourced smile.gif

#440 Captain Flemme

Captain Flemme

    Hobbyist

  • Members
  • PipPip
  • 31 posts
  • Location:Paris

  • Flag: France

  • Favorite Pinball: high speed II, MM, TOM, LOR .....

Posted 09 April 2012 - 09:48 PM

Hi,

impressionant !!! tu a aussi code la physique ?? out tu utilises celle de unity ??? et unity n'importe pas les objets 3D ???

Donc de la meme generation, moi 73.

Although i will read what you've put on the thread.

Is there a lot of diference between c++ and c# ????
is it so hard to switch between the two ??

Edited by Captain Flemme, 09 April 2012 - 09:51 PM.