Page 1 of 1

Time lord science

PostPosted: Thu Feb 21, 2008 9:53 pm
by Grogyan
I had a thought before the competition, how it would be neat to enter a building, where its bigger on the inside than it is on the outside.

How would I do this?


Yeah I know I am a bit fanatical about Dr Who

Re: Time lord science

PostPosted: Thu Feb 21, 2008 11:35 pm
by Chacal
You would need to do an instant teleport to a different room. I'm sure this can be done in 1st person, not sure about what the 3rd person camera would do.
This is pretty much what happens in Gahreesen when you enter the buildings.

Re: Time lord science

PostPosted: Fri Feb 22, 2008 4:32 am
by andylegate
That's having the inside of the building in a different PRP file than the outside and surounding areas I believe.

As Chacal said, that's how they do Gahreesen.

Re: Time lord science

PostPosted: Fri Feb 22, 2008 9:53 am
by Chacal
BTW for Gahreesen Cyan solved the 3rd-camera problem by locking the view and having the avatar perform an animation.
That's why you have to enter the buildings through either an airlock or an elevator.

Re: Time lord science

PostPosted: Fri Feb 22, 2008 11:44 am
by Nadnerb
What you need is to move the avatar into a camera region with the cutPosOnce flag set. That is how it is done. ;)

Re: Time lord science

PostPosted: Mon Feb 25, 2008 7:37 am
by andylegate
I don't suppose you could describe a little more in detail how that's done Nadnerb? Please? :D

Re: Time lord science

PostPosted: Mon Feb 25, 2008 5:27 pm
by Nadnerb
The same way you set any other camera flag. Just add it to the list of flags in the alcscript for the camera object. (not the camera region object)
Code: Select all
DoorCamRegion:
    region:
        type: camera
        camera:
            messages:
                - newcam: DoorCam
                   
DoorCam:
    camera:
        brain:
            type: fixed
            xpanlimit: 0.4
            zpanlimit: 0.4
            poa: 0,0,6
            flags:
                - followlocalavatar
                - cutposonce

The cutposonce flag should cause the camera to "snap" to a new location, cutting out the slow flying time, but after that one cut, it should behave normally and smoothly. The current issue with the cameras in Pahts going through walls is that the "cutpos" flag is set, which causes the camera to "snap" to it's intended position all the time, thus ignoring walls and other obstacles.

Re: Time lord science

PostPosted: Mon Feb 25, 2008 10:10 pm
by Grogyan
I'll try that out Nad, thanks