Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Any way to fake camera tilt/roll?

AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
03-06-2007 19:56
Thread title says it all really: I want to tilt the camera on the axis than runs from front to back, whichever one that is. Pretty sure there's no way, but thought I'd ask just in case.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
03-06-2007 19:58
Sit down, enter first person, tilt/roll the object.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
03-06-2007 19:59
Sorry, should have specified it needs to be the 3rd person camera. :o
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
03-06-2007 20:18
Picky picky.

Make an object
Add the script below
Sit on the object
Tilt/roll the object

CODE

default {
state_entry() {
llSitTarget(<0,0,0.2>, <0,0,0,1>);
llSetCameraEyeOffset(<-2, 0, 1>); // the camera is 2m behind and 1m above the object
llSetCameraAtOffset(<2, 0, 1>); // and looks at a point that is 2m in front and 1m above the object
// sitting on this object will now place your camera
// so it's looking straight ahead on a line parallel
// to the objects x (forward) axis, 1m above the objects center.
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
03-06-2007 20:27
Tried that, it just moves the position of the camera.

Just thought, haven't tried rotating it with a script rather than by hand. May as well give it a go.

EDIT: Rotating by script makes no difference.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
03-06-2007 20:31
Oh after you change the rotation of the object, be sure to hit escape a couple times to get the camera back into it's default position (or use a script).
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
03-06-2007 20:37
Yeah, I've got the camera in default position. Have you actually seen this working?
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
03-06-2007 22:59
It's how old style vehicle's work... I think... It's been a long time since I've thought about this. know you got me wondering...
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
AJ DaSilva
woz ere
Join date: 15 Jun 2005
Posts: 1,993
03-06-2007 23:05
Were the old style vehicles physical? I've not checked on physical objects, since using them would make my project horribly messy, but I could imagine it working on them.