Hi all.
I have created 3 different main menus for a dvd.
What i want to do is that if the viewer is to a different menu rather than those 3 (for e.g chapters menu, settings etc. or even plays the movie) when hits the menu button (which takes him to main) to take him randomly to a different main than the one we was. I know that has to do with very advanced commands, but is there someone who could point me the direction for doing this?
I am using Scenarist.
Thank you.
Here are some pointers to get you started:
1. One of the commands you can try is Set to GPRM; instead of the Assign operation select Random Value. It's been noticed though that random number generator isn't really random on some DVD players.
2. Alternatively, try using Change GPRM Mode command to set a GPRM into counter mode. It will make it auto increment once a second. Put this command into First PGC.
3. The commands for a random jump would go into Pre commands of the Root menu. Use Remainder operation of the Set to GPRM command to calculate your quot;randomquot; GPRM Mod 3. Result could only be 0, 1, or 2. Based on this result jump to one of the three main menus. If you want to have more than three different actions, change Mod 3 to the number of actions.
Originally Posted by srfscenarwhen hits the menu button (which takes him to main) to take him randomly to a different main than the one we was.
I don't use Scenarist but this idea was used in Star Wars: The Phantom Menace R1. It had random main menus. I believed it used the random function.
Thanx alot Dimmer.
I tried what u said but it seems i must be doing something wrong...
could you be kind enough to type an example of those commands?
Thanx!
If everything works but you are just seeing same menu over an over - it is just a problem with random generator in the player you are using. In those hundreds times I've played SW disk testing DvdReMake I've seen different menu only couple of times on test player.
I would think that using counter will be even less random.
I am trying it from Scenarist's Simulator, so i think it should work if i had everything correct. I would be gratefull if you could type the commands in details.
Thank you very much.
Originally Posted by srfscenarcould you be kind enough to type an example of those commands?
Here's how it might look if you use built-in random number generator.
Pre commands of Root menu:
Rnd GPRM0,65536
Mod GPRM0,3
if ( GPRM0 == 1 ) LinkPGCN Menu1-pgc
if ( GPRM0 == 2 ) LinkPGCN Menu2-pgc
LinkPGCN Menu3-pgc
Menu1-3 PGCs are your menus that you have to create in advance in order to be able to link to them.
The other method I mentioned would work because user presses Menu button on the remote at a random moment of time. Therefore, we can utilize system timer as a random number generator.
Add this command to First PGC:
Set GPRMMD CounterMode GPRM1=0
The Root menu would look almost the same:
Mov GPRM0,GPRM1
Mod GPRM0,3
if ( GPRM0 == 1 ) LinkPGCN Menu1-pgc
if ( GPRM0 == 2 ) LinkPGCN Menu2-pgc
LinkPGCN Menu3-pgc
Hope this helps. |