Correct Avatar Camera settings (poa?)

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!

Correct Avatar Camera settings (poa?)

Postby Jamey » Sat Nov 08, 2008 1:00 pm

Hi guys,

I've been working on my age for a bit trying to get the correct camera settings for an avatar camera in my age. The only problem is that I've been messing with something that I will have no idea what happens when I export it :oops:

Ok, below is a picture of my avatar in Relto, I have positioned the camera with my mouse to the exact position I want to set the camera to in my age:


Show Spoiler


http://img161.imageshack.us/my.php?imag ... 766xg0.png (if picture above does not show up)

Ok, now that you all have seen where I want the avatar camera to be relative to the avatar, what would be the settings I would put into the camera alc script to get the avatar camera to turn out like the picture above?
KI#46415
Jamey
 
Posts: 528
Joined: Sat Oct 20, 2007 8:32 pm
Location: Chicago, IL

Re: Correct Avatar Camera settings (poa?)

Postby Nadnerb » Sat Nov 08, 2008 1:53 pm

if what you're looking for is the default relto camera settings, I can give you those, since I went to the trouble of copying the parameters for use in one of my ages at one point.

Code: Select all
OutdoorAvCam:
    camera:
        transitions:
          - velocity: 50
            poaveloctiy: 50
            accel: 10
            decel: 10
            poaaccel: 10
            poadecel: 10
        brain:
            velocity: 50
            poaveloctiy: 50
            accel: 10
            decel: 10
            poaaccel: 10
            poadecel: 10
            xpanlimit: 0.8
            zpanlimit: 0.8
            type: avatar
            poa: 0,0,6
            offset: 0,18,12
            flags:
              - followlocalavatar
              - maintainLOS


On the other hand, if what you're trying to get is the camera view offset slightly to the left, as seen in your picture, then you would want to add a slight negative X offset to the Point On Avatar. (POA)

Code: Select all
            poa: -0.5, 0, 6
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: Correct Avatar Camera settings (poa?)

Postby Jamey » Sat Nov 08, 2008 2:07 pm

well, I'm actually not trying to get the camera a little to the left of the avatar, what I'm trying to do is get the camera to be as close to the avatar as shown in the picture, I don't want the camera to favor the left or right side of the avatar, I want it to be in the middle at that close range as shown in the picture. (I had to use the scroll on my mouse to move the camera as close as it is shown)

I think doing this might have something to do with the offset settings, and not the poa, but I'm not sure.


...I really hope that made sense :P
KI#46415
Jamey
 
Posts: 528
Joined: Sat Oct 20, 2007 8:32 pm
Location: Chicago, IL

Re: Correct Avatar Camera settings (poa?)

Postby Nadnerb » Sun Nov 09, 2008 10:13 pm

Okay, in that case, you would want to reduce the length of the offset vector, moving towards the poa. The offset setting is measured from the avatar's feet, so if we subtract the poa (also measured from the feet <0, 0, 6>, which is the center of the head) from the offset, we get an offset from the poa. <0, 18, 6> Then, if we wanted to say, make it half as far away from the head as the default, we would divide by 2, getting <0, 9, 3>, add the poa again for a final offset of <0, 9, 9>. Note that I'm assuming that the poa isn't added to the offset automatically, and haven't taken the time to test and see that this is true. The alternative is that it is relative to the POA, in which case you would just divide the offset to bring the camera closer to the head.
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)


Return to Building

Who is online

Users browsing this forum: No registered users and 8 guests

cron