[osg-users] Cannot render and load OBJ when using QOpenGLWidget with osgViewer::GraphicsWindowEmbedded on OSG 3.5.6 rc2 and 3.6.4

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Thu Jan 30 07:00:18 PST 2020


Hi Laurens,
thanks for the reply, I've noticed that also, that mean the Qt creator 
along with is triggering something (OpenGL related maybe) that in turns 
triggers this option switch in both cases.


On Thursday, January 30, 2020 at 3:49:22 PM UTC+1, OpenSceneGraph Users 
wrote:
>
> Hi Mohamed,
> there seems to be a difference in options between "works.txt" and 
> "doesntwork.txt",
> doesntwork seems to run with "noTriStripPolygons" option, NOT generating a 
> message "VertexCacheVisitor searching all triangles"
>
> Laurens.
>
>
>
>
> On Thu, Jan 30, 2020 at 2:59 PM OpenSceneGraph Users <
> osg-... at lists.openscenegraph.org <javascript:>> wrote:
>
>> When using *QOpenGLWidget *with *osgViewer::GraphicsWindowEmbedded *to 
>> render and load *OBJ *file nothing is being rendered, I am using latest 
>> osg 3.6.5 rc2 on ubuntu 19.10 with Inel graphics Card hd 620 using Mesa 
>> 19.3. When I create a passive osgViewer::GraphicsWindowEmbedded along 
>> QOpenGLWidget to render any geometrical shapes using normal 
>> osg::ShapeDrawable and osg Geode and it works fine, if I use 
>> osgDB::readNodeFile instead to load mesh objects using STL formats it works 
>> fine, but if I opt for OBJ format, it won't render anything I am attaching 
>> a working example 
>> <https://drive.google.com/open?id=1Hnc6QpOHf-i9jxXoHW1q7HjaGY2tPDJN>
>>
>>
>> I am extending a QOpenGLWidget using... class QtOSGWidget : public 
>> QOpenGLWidget and ovveriding necessary virtual functions and having normal 
>> passive osg embedded viewer withing QOpenGLWidget. The strange thing this 
>> workflow works for me without a problem on windows 10, what's more stranger 
>> if I opt for normal osgViewer::Viewer without the Qt QOpenGLWidget it works 
>> fine and loads and renders the obj file perfectly.
>>
>> I've attached debug output of osg using OSG_NOTIFY_LEVEL set to DEBUG. I 
>> am using Qt 5.14 and I also tried Qt 5.12, 5.9 and 5.7 and I got the same 
>> result.
>> Also using Qt Creator 4.11, also I discovered that when I launch the 
>> application using the debugger right from Qt creator I would be able to 
>> render it normally, if I launch the application normally without Qt 
>> creator's debugger nothing is rendered, same result with release and debug 
>> and also launching application from bash cmd line.
>>
>> I would like to draw the attention to the fact that the OBJ sounds normal 
>> tried it with osg 3.6.5 rc2 and 3.6.4 on windows and above scenario works 
>> fine, no problem with location obj file or anything like that. I believe 
>> that the problem is coupled only with QOpenGLWidget and 
>> osgViewer::GraphicsWindowEmbedded to load OBJ file(only) on linux (ubuntu 
>> 19.10, xubunu 18.10).
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "OpenSceneGraph Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to osg-... at googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/osg-users/43a9d8de-b692-4046-bb9f-3645cae0204c%40googlegroups.com 
>> <https://groups.google.com/d/msgid/osg-users/43a9d8de-b692-4046-bb9f-3645cae0204c%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> _______________________________________________
>> osg-users mailing list
>> osg-... at lists.openscenegraph.org <javascript:>
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>

-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/1dfe5634-e45e-4405-ae24-36d32d77cbfe%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200130/e961d4bc/attachment.html>


More information about the osg-users mailing list