Log in

View Full Version : Roulette game in DVD Authoring


Genki
6th May 2013, 09:50
I would like to now if it's possible to made a roulette game by author a DVD with scenarist SD ?

What i wan't is simple, when the user put the enter button on his remote, he's redirect on differrents ways from the roulette choice.

I thank to use GPRM in counter mode, but the problem is this mode increase the value by 1 every seconds, my roulette is faster than 1 choice by second... (1 choice every 3 frames)

Did you have an idea how to realise it ?

Thank you for your help.

Genki
13th May 2013, 15:07
No one has an idea ?

Ghitulescu
13th May 2013, 16:20
You need to create a hell lot of small videos, for each state of the game. Have a look on any Disney original DVD, you'll find a game hidden somewhere and see how's done.

Genki
14th May 2013, 14:10
Thank for your answer.

Yes, I know I must create one video by each state, that point is not a problem, but what I'm trying to do is to recognize the exact moment when the user press "enter" on the remote for redirect the dvd to the correct video indicate by the roulette.

Example :
If the user put "enter" on :
Roulette choice 1, video frame 1 to 3 (or TC 00:00:00 to 00:00:02) -> Go to video 1
Roulette choice 2, video frame 4 to 6 (or TC 00:00:03 to 00:00:05) -> Go to video 2
Roulette choice 3, video frame 7 to 9 (or TC 00:00:06 to 00:00:08) -> Go to video 3
...
I tried to use highlight buttons by 3 frames, but dvd spec can't use highlits buttons with a too small time like 3 frames...


I don't know the Disney hidden DVD game that you talk about and I only have european disney blu-ray... I tried to find any screenshots or information about this game on the web, but I didn't find anything...

fvisagie
14th May 2013, 20:13
Forced subtitles?

Cheers,
Francois

Genki
15th May 2013, 09:09
Forced subtitles ? I don't understand how it can help me ?

fvisagie
15th May 2013, 09:33
Just an idea (which I haven't tried yet admittedly) - instead of buttons use forced subtitles to display the "random numbers", a new one every x frames, 3 in your case. You say you can't have corresponding 3-frame buttons, so you'd have to make do with a single button. If you prefer it could be formatted to blend in with the background, in which case it becomes invisible and the subtitle "random numbers" become the "buttons to which the user reacts".

Up to this point I'm pretty sure things would work; the challenge would be to detect when the user pressed the (hidden) button. You'd have to see if you can find the current frame number/timestamp, unfortunately I haven't yet tried something like that in the DVD VM.

Cheers,
Francois

Genki
15th May 2013, 10:05
If I understand your idea, it's the same way I use with highlights buttons with empty subpictures (it's like forced subtitle).

It's unfortunately not working :(

You'd have to see if you can find the current frame number/timestamp, unfortunately I haven't yet tried something like that in the DVD VM.
This is exactly the problem !

Ghitulescu
15th May 2013, 10:38
This is exactly the problem !
You have then to change the algorithm, because you can't retrieve this information using VM commands in DVD (and I am pretty sure neither in BD).

Genki
15th May 2013, 12:22
In BD, I suppose it's possible to make this with java...

But I think you're right, no way to get this information from DVD or BD with VM commands... too bad :(

TheSkiller
15th May 2013, 15:15
Yeah, unfortunately there's no way to get the current timestamp into the programming.
You can have a look at all the available SPRMs here (http://www.dvd-replica.com/DVD/sprm.php) for example.

I suppose one way it could work is by abusing the "navigation timer" in SPRM 9 but it would only work, if at all, while a still picture is being displayed and it's limited to 1 second steps.

The theory:
A still is being displayed, activating the navigation timer (setting it to 254). Now every second SPRM 9 will decrease by one.
When the user finally presses the enter button, the current value of SPRM 9 needs to be read-out and can be assigned to a (random) number for the Roulette game.


Edit: But why not simply skip all that and let the DVD player dig up a random number upon the user pressing enter during a menu sequence and use that? That would work for sure and it's not even complicated.

Genki
16th May 2013, 16:19
Yes, SPRM9 is an option, but like you said It can't be used for frame timing, just by second... Too easy to win on the game :D

Edit: But why not simply skip all that and let the DVD player dig up a random number upon the user pressing enter during a menu sequence and use that? That would work for sure and it's not even complicated.
It's an other solution, but I would prefer something precise :(
But I think I've no choice...

Anyway, thank you for your help guys ;)