Planetside Software Forums

General => Terragen Discussion => Topic started by: cyphyr on March 31, 2007, 06:21:06 AM

Title: Camera & Lighting matching in Lightwave
Post by: cyphyr on March 31, 2007, 06:21:06 AM
Hi Gang
I'm getting some good results from an orbital render I'm working but I want to composite a model built in Lightwave into the shot.  I don't want to simply import the model to TG2P as I'm sure I'll run into just too many headaches and also with a landscaping program composition is going to be a major part of work flow. Whats the best way of getting the camera details (Heading, Pitch and Bank) and the lighting direction (also Heading, Pitch and Bank) into Lightwave so my model will be lit is a suitably realistic way?
Thanks
Richard
Title: Re: Camera & Lighting matching in Lightwave
Post by: MooseDog on March 31, 2007, 07:20:27 AM
afaik you'd be the first to pull it off ;D.

you'd need to write an lscript to import and apply the x,y,z and h,p,b and scale co-ordinates of your camera move.  i believe this can be exported as a .chan file by tg2, the structure of which was the subject of another thread 'round here.  good luck! :)
Title: Re: Camera & Lighting matching in Lightwave
Post by: cyphyr on March 31, 2007, 11:24:07 AM
This wont be animated, at least not yet. I guess I'll just resort the the "Mark 1 Eyeball". All I'm really after is some info about relative orientations. Heading in LW = what Heading in TG2P, and is there a formula to work this out?
Richard
Title: Re: Camera & Lighting matching in Lightwave
Post by: JohnnyBoy on March 31, 2007, 02:59:49 PM
Cypher, here are a few links for you:

Euler to Axis-Angle - Java Applet:
http://www.euclideanspace.com/maths/geometry/rotations/conversions/eulerToAngle/program/index.htm

Axis-Angle to Euler - Java Applet:
http://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToEuler/program/index.htm

Conversion Euler to Axis-Angle:
http://www.euclideanspace.com/maths/geometry/rotations/conversions/eulerToAngle/index.htm

Conversion Axis-Angle to Euler:
http://www.euclideanspace.com/maths/geometry/rotations/conversions/angleToEuler/index.htm

Good luck!