Animated Linking Panel in the Book Pop up! Works!

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Re: Animated Linking Panel in the Book Pop up! Works!

Postby Nadnerb » Mon Nov 24, 2008 4:18 pm

Okay, so some of you may remember this old age. (go ahead, load it up) Back when I was actually doing something and working on animations, this was one of the test cases. (which actually led to the implementation of the "simple" type of camera as a usable type, iirc) If you link in and don't move, you'll notice that you'll get a flyby of the age. The flyby will end when you leave the region surrounding the linkin point. (and won't start again if you reenter it) The relevant alcscript goes somewhat like this:

Code: Select all
FlybyCam2:
    camera:
        animated: 1
        brain:
            xpanlimit: 0
            zpanlimit: 0
            type: simple
            flags:
             - cutpos
             - cutpoa
    animations:
        - name: FlybyCam2
          autostart: 0
          loop: 0
    logic:
        actions:
          - type: responder    #this responder is triggered by the first modifier on the region, it starts the animation and sets the camera
            name: FlybyCam2
            responder:
               states:
                - cmds:
                   - type: timercallbackmsg
                     params:
                        receivers:
                         - respondermod:FlybyCam2
                        id: 0
                        time: 2.0
                   - type: animcmdmsg
                     params:
                        receivers:
                         - 006D:FlybyCam2
                        animname: FlybyCam2
                        cmds:
                         - setbegin
                         - continue
                     waiton: 0
                   - type: cameramsg
                     params:
                        cmds:
                         - regionpushcamera
                         - respondertrigger
                        newcam: FlybyCam2
                     waiton: -1
                  nextstate: 1
                  waittocmd:
                    - key: 0
                      msg: 0

FlybyCamRegion:
    logic:
        modifiers:
          - name: EnterFlyby     #this modifier triggers the responder FlybyCam2 on entering the region (see direction: enter)
            flags:
             - multitrigger
            activators:
             - type: objectinvolume
            conditions:
             - type: volumesensor
               satisfied: true
               direction: enter
            actions:
             - type: responder
               ref: :FlybyCam2
          - name: ExitFlyby     #this modifier triggers the responder PopFlyby on exiting the region (see direction: exit)
            flags:
             - multitrigger
            activators:
             - type: objectinvolume
            conditions:
             - type: volumesensor
               satisfied: true
               direction: exit
            actions:
             - type: responder
               ref: :PopFlyby
        actions:
          - type: responder    #this responder disables the modifiers on this region (the enablemsg) and returns camera control to another camera
            name: PopFlyby
            responder:
               states:
                - cmds:
                   - type: cameramsg
                     params:
                        cmds:
                         - regionpushcamera
                         - respondertrigger
                         - setasprimary
                        newcam: IndoorAvCam
                     waiton: -1
                   - type: enablemsg
                     params:
                        receivers:
                         - 002D:EnterFlyby
                         - 002D:ExitFlyby
                        cmds:
                         - disable
                     waiton: -1
                  nextstate: 1
                  waittocmd: 0


The blender object "FlybyCamRegion" is a region surrounding the link in point, when the "EnterFlyBy" modifier is triggered, it runs the "FlybyCam2" responder in "FlybyCam2".

The blender object FlybyCam2 is a camera which has been animated, meaning I dragged it around and set keyframes for it. The animation settings can be seen on the object, as well as it's camera brain, which is a 'simple' with 0 pan and cutpos and cutpoa enabled. It contains the definition for the responder (which is called by the region enter modifier) which sends a message to activate the animation, and a camera message that forces the animated camera to be used. (the timercallback is just to delay the start of the animation)

Back to the region object, there is a second modifier, which triggers on exit. "ExitFlyby" triggers the "PopFlyby" responder, which uses another camera message to return the camera to normal (or rather, to another defined camera which I didn't include, it's a standard avatar following cam) and sends an enablemsg to both of the modifiers (EnterFlyby and ExitFlyby) on the region, disabling them so they won't be activated later, if the avatar reenters the region.
Last edited by Nadnerb on Mon Nov 24, 2008 4:36 pm, edited 1 time in total.
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Animated Linking Panel in the Book Pop up! Works!

Postby andylegate » Mon Nov 24, 2008 4:34 pm

Thanks Nadnerb! Looks interesting. I give it a try after dinner.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Animated Linking Panel in the Book Pop up! Works!

Postby Aloys » Mon Nov 24, 2008 5:04 pm

Nadnerb wrote:
andylegate wrote:In Riven (and other Myst games) the flyby's happened after you touched the linking book. I'm wondering if Python can be set up for a Fan Age to do the same thing.....you link and fade out, screen loads, but python has the first thing to happen is a flyby movie. Once the movie is done, it has you in the Age.....I think this is done in Python upon Game Intilazation, I'll have to look, but of course I'm about as much of an expert on Python as my 5 year old. Others might figure this part out better than me.


Quite possible, and can and has been done without python. (somone tell bob not to yell at me, I'm not at home and can't provide examples :P)

Robert provides an example of the fake linking process in Ahra Pahts with the Prin Pahts nexus links. (as the nexus room is not actually in a separate Age)
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)

Re: Animated Linking Panel in the Book Pop up! Works!

Postby GPNMilano » Mon Nov 24, 2008 5:25 pm

Aloys wrote:
Nadnerb wrote:
andylegate wrote:In Riven (and other Myst games) the flyby's happened after you touched the linking book. I'm wondering if Python can be set up for a Fan Age to do the same thing.....you link and fade out, screen loads, but python has the first thing to happen is a flyby movie. Once the movie is done, it has you in the Age.....I think this is done in Python upon Game Intilazation, I'll have to look, but of course I'm about as much of an expert on Python as my 5 year old. Others might figure this part out better than me.


Quite possible, and can and has been done without python. (somone tell bob not to yell at me, I'm not at home and can't provide examples :P)

Robert provides an example of the fake linking process in Ahra Pahts with the Prin Pahts nexus links. (as the nexus room is not actually in a separate Age)


I think what they're talking about isn't the same Aloys. what they're discussing is upon link in you get the same flyby you did in the Myst ages, before "landing" at the link in spot.
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am

Re: Animated Linking Panel in the Book Pop up! Works!

Postby Chacal » Mon Nov 24, 2008 6:07 pm

Nadnerb wrote:If you link in and don't move, you'll notice that you'll get a flyby of the age.


I don't get a flyby. :(

PS: Why does that Age remind me of Quake 2 ?
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: Animated Linking Panel in the Book Pop up! Works!

Postby Nadnerb » Mon Nov 24, 2008 6:31 pm

Dunno, I've never played Quake 2. >.> Reminds me of Half Life 2 though. >.>

Are you using the version I linked to, or the one you got off ULM?
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Animated Linking Panel in the Book Pop up! Works!

Postby andylegate » Mon Nov 24, 2008 7:08 pm

Ah too cool!!!!

I did this for Teledahn! Wow! :shock:

Hang on a sec, I'm uploading the movie to the server. I'll post a link in a few minutes. Y'all gotta see this.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Animated Linking Panel in the Book Pop up! Works!

Postby andylegate » Mon Nov 24, 2008 7:21 pm

Okay, here's what I did:

I had imported Teledahn some time ago. So I loaded up Teledahn. I put in a camera, and dragged it around as Nadnerb said, putting in keys for it. Even drug around, it came out really smooth.
I put in a detect region, deleted everything else and exported as a prp for Teledahn. Went into the Teledahn .age file with UruFun and added my prp page. Then resumed the sum file. (oh yah, before i exported it, I used Nadnerb's scripting up there).

I linked in, and walked over to where I put in the detect regions, and BAM, it worked!. I captured it with fraps, and then used the Windows Movie Maker to clip the beginning part.

So here's a link to the Windows Media File, it's about 8.5 MB big. I tried making it smaller video size 320 x 240 and binked it, but it shot the file size up to 22 mb! Ouch.

Here's the link:

tldnflyby.wmv
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Animated Linking Panel in the Book Pop up! Works!

Postby Chacal » Mon Nov 24, 2008 9:20 pm

Nadnerb wrote:Are you using the version I linked to, or the one you got off ULM?


The one you linked to. I downloaded it again to make sure.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: Animated Linking Panel in the Book Pop up! Works!

Postby Nadnerb » Mon Nov 24, 2008 9:48 pm

That's strange. I just went back and tested it again... Dowloaded from my link... Even deleted the sav... I definitely get the flyby. :P
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

PreviousNext

Return to Building

Who is online

Users browsing this forum: No registered users and 3 guests