Help with program to render in parallel projection


#1

I am trying to render in parallel project mode but I need the following data for my program.
Rays position/direction (equation) from camera position and zoom.
Can anyone help with this. Thank you


#2

You need the sun’s position & direction ?


#3

I don’t know quite what you are trying to do, but perhaps what you need is available from the Camera object accessible via

Sketchup.active_model.active_view.camera


#4

Hi Dan / Slbaumgartner worked position and direction out, I just now have an issue with scaling to fit model. might have something to do with zoom extents. When I render the model is at a distance and I need a way to zoom in. Thanks for taking a look at this for me.


#5

Sketchup.active_model.active_view.zoom factor

Sketchup.active_model.active_view.zoom_extents


#6

Hi Dan
These are methods, I need to get zoom amount or something similar…
I am looking for a way to scale parallel view, camera view. now I have only parallel rays, and it does not change when I move forward or backward
because rays are parallel, and It does not scale the camera view window…???

Thank you.