LDView povray export


RE: LDView povray export
#17
(2019-06-21, 3:46)Travis Cobbs Wrote: I've come to the conclusion that I'm not conversant enough in POV-Ray syntax to do this. If you can come up with a camera definition that takes the following inputs, I can incorporate your definition into the generated POV code when lat/long camera positioning is used:
  • LDXCameraLookAt (The center of the model, and the point at which the camera is looking.)
  • LDXCamAspect (The aspect ratio of the rendered scene; used in the "right" vector right now.)
  • LDXCameraDistance (The distance from the camera to the center of the model.)
  • LDXCameraLatitude
  • LDXCameraLongitude
  • LDXCameraAngle

If you need more input parameters, let me know; I can probably provide them, but I think the above is all that should be needed.

It may be enough simply to:

1. Move LDXCamAspect out of the camera block and place it instead next to all the other camera variables so that it can still be accessed if the default camera has been disabled.
2. Create an LDXCameraAngle variable to store the camera angle.
3. Create an LDXCameraTransform variable for any random random translation, scalings or rotations a user might want to do. For instance:

Code:
#declare LDXCameraTransform = transform
{
    // put extra transformations here, or put nothing here by default
}

Then you state the camera like this:

Code:
camera
{
    location LDXCameraLoc
    sky LDXCameraSky
    right LDXCamAspect * < -1,0,0 >
    look_at LDXCameraLookAt
    angle LDXCameraAngle
    transform {LDXCameraTransform}
}

The `distance` parameter is meant to be used in conjunction with `location`, `right` and `up`. If you instead want to specify `location`, `look_at`, `right`, `angle` and `sky`, then don't bother with defining `distance` as they are at cross purposes. (In fact, the `angle` parameter will override anything you do with `distance`.)
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LDView povray export - by Michael Horvath - 2019-06-20, 6:47
RE: LDView povray export - by Travis Cobbs - 2019-06-20, 17:37
RE: LDView povray export - by Michael Horvath - 2019-06-20, 23:03
RE: LDView povray export - by Travis Cobbs - 2019-06-21, 2:04
RE: LDView povray export - by Michael Horvath - 2019-06-21, 21:56
RE: LDView povray export - by Orion Pobursky - 2019-06-21, 22:00
RE: LDView povray export - by Travis Cobbs - 2019-06-21, 23:53
RE: LDView povray export - by Travis Cobbs - 2019-06-22, 19:48
RE: LDView povray export - by Michael Horvath - 2019-06-25, 12:40
RE: LDView povray export - by Travis Cobbs - 2019-06-21, 3:46
RE: LDView povray export - by Steffen - 2019-06-23, 1:31
RE: LDView povray export - by Travis Cobbs - 2019-06-23, 1:48
RE: LDView povray export - by Michael Horvath - 2019-06-25, 23:35
RE: LDView povray export - by Travis Cobbs - 2019-06-26, 1:42

Forum Jump:


Users browsing this thread: 1 Guest(s)