Hello everyone. I have a strange bug in Sketchup 2017 (make, win 10)
I’ve just noticed that when you export a square view with FOV 90, a dotted line border appears in the lower and bottom sides of the view. This breaks my Cubic panorama plugin.
Any ideas on how to fix it?
I’ve tried changing image size, aspect ratio, format, and setting view.line_width to 0, but the glitch appears anyway.
If you write the image with resolution up to 1020x1020, it comes out fine.
Above that the border starts showing, and as the resolution grows, it becomes thicker, and the gaps bigger.
At about 2000x2000, a square appears, as the lines are so thick and the gaps so wide that the lines meet in the center of the image.
At 2040x2040 the glitch is gone, and its back at 2041x2041.
Curiously, at 4080x4080, there is no glitch.
This is strange. Why do those resolutions work? Why don’t the others?
Here is my test code.
model=Sketchup.active_model
view=model.active_view
cam=view.camera
pos=cam.eye
newFov=90
newAR=1.0
newIW=24
shadowinfo = Sketchup.active_model.shadow_info
shadowinfo["UseSunForAllShading"]=true
#face front
newTarget=[pos.x+1,pos.y,pos.z]
newUp=[0,0,1]
#set camera
cam.set pos, newTarget, newUp
cam.fov=newFov
cam.aspect_ratio=newAR
cam.image_width=newIW
keys = {
:filename => "test2017a.jpg",
:width=>2048,
:height=>2048,
:antialias=>true,
:compression => 0.6,
}
model.active_view.camera=cam
model.active_view.write_image keys
And the resulting image
I’ve written about this in sketchucation, but i repeat the post here hoping that more people will see it.
Thanks in advance for any tips.






