Camera Collision?

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!

Camera Collision?

Postby Kierra » Sun Jul 06, 2008 9:32 am

If I recall correctly, there used to be a way to create an unseen camera collision plane that didn't create a physical collider, but I can't remember what it was, and I haven't been able to find anything similar on the wiki.

I remember camera regions (where the camera can be fixed to a certain spot, made to rotate around the avatar, etc), but what I'm trying to do is make the camera follow the avatar like it normally does in 3rd person POV, just lower.

I have a large room with a tall ceiling, but I want the camera to sink down so that it is a little bit above and behind the avatar's head.

Thanks for any help,

~Kia
User avatar
Kierra
 
Posts: 371
Joined: Sat Sep 29, 2007 12:05 am
Location: 311 miles West of Cyan. roughly.

Re: Camera Collision?

Postby boblishman » Sun Jul 06, 2008 9:43 am

create a new camara, plus a camera region inside the room ... then set the avatar poa to 0,0,5 and a offset of 0,7,7 ...

you alcscript should look something like this ... (obviously, change the names of the camera and region)

camera region.jpg
camera region.jpg (35.22 KiB) Viewed 3113 times



(play around with the poa and offsets tilll you get exactly what you want)

p.o.a. = point on avatar (the numbers are in feet from the avatars feet in x,y,z)
offset = how offset from the avatar (so it's not pointing directly at his back) , again, x,y, & z in feet
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Camera Collision?

Postby Chacal » Mon Jul 07, 2008 9:06 pm

Kierra, I achieved this effect with a good ol' collider. Not sure why it wouldn't do the job for you.
I vaguely remember hearing about another way, but nothing more specific.
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: Camera Collision?

Postby Paradox » Tue Jul 08, 2008 7:35 pm

Now a question (since I actually don't know and I don't have access to documentation to research it right now)...

Can you have a collider that only affects the camera? Like a plane that the avatar and all other objects could pass through, but that would prevent the camera from passing through; or does this need to be handled using camera regions and specific camera messages with flags?
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Camera Collision?

Postby Chacal » Tue Jul 08, 2008 7:53 pm

maybe this flag on HKPhysical:

Flag3 = 0x80 kCameraAvoidObject

http://wiki.cobbs.ca/index.php/PrpObjec ... HKPhysical
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: Camera Collision?

Postby Trylon » Tue Jul 08, 2008 10:21 pm

It can be done.
You'd need a none-type collider, and set the cameraavoidobject flag.

I'm just not 100% sure how to do it at the moment.
One day I ran through the cleft for the fiftieth time, and found that uru held no peace for me anymore.
User avatar
Trylon
 
Posts: 1446
Joined: Fri Sep 28, 2007 11:08 pm
Location: Gone from Uru

Re: Camera Collision?

Postby Aloys » Wed Jul 09, 2008 5:38 pm

Prior to 0.5 there used to be a specific col_flags for camera colliders: "col_flags5: 00000004" not sure how that translate to 1.4.1/1.5.0..
User avatar
Aloys
 
Posts: 1968
Joined: Sun Oct 21, 2007 7:57 pm
Location: France (GMT +1)


Return to Building

Who is online

Users browsing this forum: No registered users and 4 guests