
Tue, 01/05/2021 - 23:52
Forums:
I use OCCTOverview, when I clicked Ray-tracing button, I get this error:
TKOpenGl | Type: Error | ID: 0 | Severity: High | Message:
Ray-tracing requires OpenGL 3.1 and higher
my platform is MacOS wtih occt 7.5, Does anyone know how to set OpenGL version? or use QSurfaceFormat as version seter?
Thanks in advance.
Wed, 01/06/2021 - 00:39
Wed, 01/06/2021 - 01:27
thanks for your quick reply,
OCCTOverview is write in c++, I can't add that qml code to c++,
or have c++ version solution?
Thanks in advance.
Wed, 01/06/2021 - 01:36
This is a C++ code (could be applied to QtQuick sample samples/qt/AndroidQt, for example), but samples/qt/OCCTOverview doesn't use Qt for creation of OpenGL context - it relies on OCCT itself. In this case context parameters are defined by OpenGl_Caps structure.
Wed, 01/06/2021 - 05:51
after add "aGraphicDriver->ChangeOptions().contextCompatible = false;"
get error
Error: 2D texture 16384x256 IF: 33321 PF: 6403 DT: 5121 can not be created with error 1282.
Wed, 01/06/2021 - 14:54
Which graphics card do you use, on which platfrom / device?
You can use the following code snippet (from webgl sample) to dump OpenGL information to console:
Wed, 01/06/2021 - 15:46
graphics card are RX 5700 and intel 530, two computer in MacOS 10.15.7, Qt 5.15.2
detail see in attachments
Wed, 01/06/2021 - 18:28
Could you check if CAD Assistant 1.5.0 works on your computers?
(you can enable verbose output in Settings and see logs in Message Window)
Wed, 01/06/2021 - 18:39
CAD Assistant can work well, and when set enable verbose output , where can get this log message?
btw, when start ./CADAssistant from terminal, I get some warning,
Wed, 01/06/2021 - 18:53
These are warnings from Qt actually not indicating any issues.
Message Window can be shown using "3D" button on left panel -> then Message button on right panel.
CAD Assistant creates Core Profile by default (although via Qt) and Ray Tracing can be enabled in Settings.
Wed, 01/06/2021 - 19:09
CAD Assistant work well, right shadow window is that Message?
Wed, 01/06/2021 - 19:23
Yes, this is Message Window.
This is strange that you see errors in Qt Widgets sample (although nobody tested this sample on macOS before).
Maybe it is important also disabling OpenGl_Caps::ffpEnable flag while requesting Core Profile as it is done by Draw Harness command "vcaps -core":
Wed, 01/06/2021 - 19:39
write like the last line, also get error:
attachments is run bin ./DRAWEXE-7.6.0 System Info
Sun, 01/31/2021 - 08:43
I was having the same issue as well, on MacOS Big Sur on a 2017 iMac, using occt 7.5.0 and Qt 6.0. I can report that Kirill's suggestion to add
does solve the issue and I can successfully enable ray-tracing, shadows, reflections, etc. Thanks a lot!!