api-issue-tracker icon indicating copy to clipboard operation
api-issue-tracker copied to clipboard

Layout::Document.export Model Views not Rendering in SU23 - Layout::SketchUpModel renders incorrectly

Open 3dmod opened this issue 1 year ago • 18 comments

  1. SketchUp/LayOut Version: macOS 23.0.366
  2. OS Platform: macOS Ventura

When using export in SU23 model views do not render correctly.

I took a file that exports correctly in SU22 and gave the following result for SU23.

Screenshot 2023-03-08 at 17 00 47

The code I used was as follows

def self.pdf_export_debug
	doc = Layout::Document.open("/Users/***/Downloads/Untitled.layout")
	stat = doc.export("/Users/***/Downloads/Untitled.pdf" )
end

3dmod avatar Mar 08 '23 22:03 3dmod

I see a little warning along the right edge of the image that says, "Rendering failed. Reduce the image size or DPI."

The documentation tells you how to use optional hash arguments to control resolution, dpi and compression.

What the documentation does not say is what the default options are.

DanRathbun avatar Mar 09 '23 01:03 DanRathbun

Thanks Dan, I should have listed that in the description.

45% of the time i get the error "Rendering failed. Reduce the image size or DPI."

The other 45% i get an image like the following

Screenshot 2023-03-09 at 00 17 52

10% the Model View Renders Correctly

Also i have tried to reduce the image size with the following with the same failed outcome

def self.pdf_export_debug
	doc = Layout::Document.open("/Users/***/Downloads/Untitled.layout")
	stat = doc.export("/Users/***/Downloads/Untitled.pdf", 
		{ output_resolution: Layout::PageInfo::RESOLUTION_LOW, compress_images: TRUE} )
end

Exports correctly with the following

  • SU22 Layout::Document.export
  • LO23 export window

3dmod avatar Mar 09 '23 05:03 3dmod

This last image makes me wonder if it's a graphics card driver issue. Have you tried updating your drivers?

thomthom avatar Mar 09 '23 09:03 thomthom

Update my drivers? This is macOS.

I have tried adjusting the following with same failed outcome

  • (0, 4, 8) multisample anti-aliasing
  • Toggle Use Fast Feedback
  • Toggle Use Maximum texture size

My Graphics Card is

Screenshot 2023-03-09 at 07 19 45

3dmod avatar Mar 09 '23 12:03 3dmod

Your graphics details read "OpenGL 2.1" !

SketchUp (and so LayOut) have required a minimum of OpenGL 3.1 since v2017.

REF: https://help.sketchup.com/en/sketchup/system-requirements

  • EDIT: As Colin has notified us below, Graphics Details dialog is working as intended and does not actually say what the Mac system's OpenGL capabilities are, but what version level of OpenGL functionality SketchUp is using on the Mac.

DanRathbun avatar Mar 09 '23 19:03 DanRathbun

Thanks again Guys, We got done to the root of the issue.

From the requirements you linked to i followed the up to date link Steps to update OpenGl are to keep macOS on the latest version (which I have).

Screenshot 2023-03-09 at 16 00 34

According to Apple my computer supports the following - [https://support.apple.com/en-us/HT202823]

  • OpenGL 4.1
  • OpenCL 1.2

A quick poll in my office has everyone on OpenGL 2.1 as listed in SU23 Graphics. *Previous SU versions did not shown in OpenGL version in "Graphics Card Details".

In my last hour of research I can not even find to do the following

  • see the installed versions of OpenGL on my machine.
  • force SketchUp to require a different version of OpenGL

3dmod avatar Mar 09 '23 21:03 3dmod

By the way, ... it helps if you attach a test model to the initial post of an issue, so the code snippet can be tested on other machines.

I'm not an Apple guy so I cannot help with this dilemma. Can Apple support or forums help ?

DanRathbun avatar Mar 10 '23 19:03 DanRathbun

I can share models but not publicly, if a SU Employee needs a model they can message me.

3dmod avatar Mar 10 '23 19:03 3dmod

If it happen on a particular model only we'd be very interested in inspecting the file. (If so, you can send it to us via [email protected])

I'll ask internally about the OpenGL version being reported. What kind of mac model and specs do you have?

thomthom avatar Mar 13 '23 11:03 thomthom

@3dmod Have you tried this on the latest SketchUp release 23.0.418 ? The FreeImage library SketchUp uses was rebuilt with updates. (Probably a long shot.)

In my last hour of research I can not even find to do the following

  • see the installed versions of OpenGL on my machine.

See this post in the public SketchUp forum ...

[Howto] Where to find Hardware Graphics Info for your SketchUp forum profile

DanRathbun avatar May 16 '23 18:05 DanRathbun

23.0.418 did not solve the issue.

Thanks for linking to the forum post about Hardware Graphics, it did not help me find my installed OpenGL versions.

3dmod avatar May 19 '23 16:05 3dmod

Screenshot 2023-03-09 at 00 17 52

I get all viewports looking like this now, none of them have the red cross with the text "Rendering failed. Reduce the image size or DPI.".

Also thanks for following up, this is still very much an issue that I run into daily

3dmod avatar May 19 '23 16:05 3dmod

@3dmod Thomas asked a hardware question that you've not yet answered ...

@thomthom I'll ask internally about the OpenGL version being reported. What kind of mac model and specs do you have?

Probably they want to know what the GPU is from the Apple page you linked.

I am assuming you have Intel Mac machines as the screenshot shows an ATI Radeon GPU of some kind.


~~I see two problems~~:

(1) SketchUp 23 thinks 3rd party GPUs are only OpenGL v 2.1 capable on your Intel Mac machines.

(2) SketchUp 23 does not list this as a warning in the Graphics Details dialog, but should since SketchUp requires graphics that supports OpenGL version 3.1 or higher.

  • EDIT: As Colin has notified us below, Graphics Details dialog is working as intended and does not actually say what the Mac system's OpenGL capabilities are, but what version level of OpenGL functionality SketchUp is using on the Mac.

DanRathbun avatar May 19 '23 20:05 DanRathbun

Sorry,I have left this in my court. This is an issue that still greatly affects my workflow.

My Computer Screenshot 2023-06-29 at 09 29 57

SU 23.0.418 Graphics Card Details Screenshot 2023-06-29 at 09 30 19

This is an issue for all versions SU versions greater then 22.

I will email a sample file over now for you to view

3dmod avatar Jun 29 '23 13:06 3dmod

@thomthom Did you get the file I sent? The label still says "Needs more info", I want to get you a reproducible example if that one did not work.

This issue is a regression that is critical to my workflow.

3dmod avatar Jul 17 '23 19:07 3dmod

Yes, I've seen a couple of emails with files. But I've just gotten back from vacation, I have a long backlog to dig through.

thomthom avatar Jul 18 '23 08:07 thomthom

I'm signed up with Github personally, but happen to be a QA Engineer at SketchUp.

I asked about this, and on Mac OpenGL 2.1 has all of the features SketchUp needs. SketchUp only asks if 2.1 is available, and that's what shows in the dialog. There isn't a check to see what the latest version is. The dialog is only saying that Yes, OpenGL 2.1 is there.

CoIin avatar Jul 26 '23 18:07 CoIin

Logged as: SKEXT-4042

sketchup[bot] avatar Feb 12 '24 10:02 sketchup[bot]