[osg-users] dumptruck.osg and GL ES 2.0

Jordi Torres jtorresfabra at gmail.com
Mon Feb 15 02:10:45 PST 2016


Hi Jens,

2016-02-15 10:46 GMT+01:00 Jens Georg <mail+osg at jensge.org>:

> Hi Jordi,
>
> unfortunately the gles pseudoloader seems to be OSG 3.4 so I would need
> some time to check whether we can easily backport that to our 3.2.
>
>
It is definitely possible, with some minor fixes. I did it for a client
app. Now we updated to 3.4. Anyway give a look to
https://github.com/cedricpinson/osg, there is where the main development of
the gles/osgjs plugin is done, and it has a lot of improvements w.r.t osg
official repo. It should be merged sooner than later, but it could be worth
to keep an eye.

Cheers.



> As for disabling the optimizer, that didn't help. I can't attach a stats
> screenshot currently because I have to get them working again beforehand
> (issue on our side)
>
> Thanks so far :)
>
> Hi Jens,
>>
>> Maybe you can try the gles pseudoloader. It optimizes models to be
>> compatible with gles. So when you read a model add ".gles" at the end
>> to use the pseudoloader.
>>
>> Cheers.
>>
>> 2016-02-09 22:56 GMT+01:00 Sebastian Messerschmidt
>> <sebastian.messerschmidt at gmx.de>:
>>
>> Hi Jens,
>>>
>>> Can you disable the optimizer (there is some environment variable
>>> to disable it globally, but I don't recall the exact name) and see
>>> if the issue remains? Can you provide a stats-screenshot so we can
>>> see what might be going on?
>>>
>>> Cheers
>>> Sebastian
>>>
>>> Hi,
>>>>
>>>> I was trying to build a demo scene with our OSG (3.2 branch until
>>>> commit 44cf6b92d2) (OpenGL ES 2.0) and I noticed that when I load
>>>> dumptruck.osg (from
>>>>
>>>>
>>>
>> https://raw.githubusercontent.com/openscenegraph/osg-data/master/dumptruck.osg
>>
>>> [1]) into osgviewer, the GL drawing operations seem to generate a
>>>> heack of a lot of calls to glDrawArrays (GL_TRIANGLE_STRIP,
>>>> some_offset, 3), so rendering each trianlge separately, causing a
>>>> huge load on the system.
>>>>
>>>> Is that expected to happen or is there something odd with our
>>>> configuration or is that a bug?
>>>>
>>>> KR, Jens.
>>>> _______________________________________________
>>>> osg-users mailing list
>>>> osg-users at lists.openscenegraph.org
>>>>
>>>>
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>> [2]
>>>>
>>>
>>> _______________________________________________
>>> osg-users mailing list
>>> osg-users at lists.openscenegraph.org
>>>
>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>>> [2]
>>>
>>
>> --
>>
>> Jordi Torres
>>
>>
>>
>> Links:
>> ------
>> [1]
>>
>> https://raw.githubusercontent.com/openscenegraph/osg-data/master/dumptruck.osg
>> [2]
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>> _______________________________________________
>> osg-users mailing list
>> osg-users at lists.openscenegraph.org
>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Jordi Torres
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160215/24f5afce/attachment-0002.htm>


More information about the osg-users mailing list