Re: [osg-users] Export GLTF from OSG?

2020-03-19 Thread OpenSceneGraph Users
OK, so I’ve gone a bit further with this, and have ported some core pieces of 
the glTF plugin from osgEarth into osg itself. It’s functional and I’d like to 
push this back to the core repo soon. Any particular process to follow for 
contributions like this?

Current work here: 
https://github.com/MozillaReality/OpenSceneGraph/tree/gltf-plugin

In terms of functionality, I’ve so far not ported the support provided by 
osgEarth for fetching glTF remote resources, i.e. it currently works only with 
local textures etc. This means that it doesn’t yet load b3dm files either, but 
I intend to add these capabilities soon.

Kind regards,
Phil.

> On 9/03/2020, at 4:43 PM, OpenSceneGraph Users 
>  wrote:
> 
> Without looking at the source too closely, is there any reason why this 
> couldn’t be included as an OSG plugin rather than an osgEarth plugin?
> 
> Kind regards,
> Phil.
> 
>> On 18/02/2020, at 2:11 PM, OpenSceneGraph Users 
>> > > wrote:
>> 
>> We have a gltf importer/exporter that we use in osgearth based on tinygltf.  
>>  It works really well although we're really only targeting gltf files 
>> produced to support rendering 3d tiles datasets.  So for example we havent 
>> done anything with animation since that's not a big part of 3dtiles.   Give 
>> it a look and see if you might be able to use it.
>> 
>> It's in the in development 3.0 version of osgearth here:  
>> https://github.com/gwaldron/osgearth/tree/3.0/src/osgEarthDrivers/gltf 
>> 
>> 
>> Jason

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Export GLTF from OSG?

2020-03-08 Thread OpenSceneGraph Users
Without looking at the source too closely, is there any reason why this 
couldn’t be included as an OSG plugin rather than an osgEarth plugin?

Kind regards,
Phil.

> On 18/02/2020, at 2:11 PM, OpenSceneGraph Users 
>  wrote:
> 
> We have a gltf importer/exporter that we use in osgearth based on tinygltf.   
> It works really well although we're really only targeting gltf files produced 
> to support rendering 3d tiles datasets.  So for example we havent done 
> anything with animation since that's not a big part of 3dtiles.   Give it a 
> look and see if you might be able to use it.
> 
> It's in the in development 3.0 version of osgearth here:  
> https://github.com/gwaldron/osgearth/tree/3.0/src/osgEarthDrivers/gltf 
> 
> 
> Jason

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/mailman.74792.1583725407.7168.osg-users-openscenegraph.org%40lists.openscenegraph.org.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/mailman.74792.1583725407.7168.osg-users-openscenegraph.org%40lists.openscenegraph.org.


Re: [osg-users] Export GLTF from OSG?

2020-02-18 Thread OpenSceneGraph Users
We have a gltf importer/exporter that we use in osgearth based on 
tinygltf.   It works really well although we're really only targeting gltf 
files produced to support rendering 3d tiles datasets.  So for example we 
havent done anything with animation since that's not a big part of 
3dtiles.   Give it a look and see if you might be able to use it.

It's in the in development 3.0 version of osgearth here:  
https://github.com/gwaldron/osgearth/tree/3.0/src/osgEarthDrivers/gltf

Jason



On Monday, February 17, 2020 at 1:29:28 PM UTC-5, Armin Samii wrote:
>
> Hi Robert,
>
> The animations are reading live data and rendering them - so it's not a 
> simple format, but can be represented by gltf well: the mesh models are 
> static, but can appear and disappear and can have arbitrary transformations 
> applied to them.
>
> My vision is an exporter that exports each unique Geode exactly once, and 
> everything else in the scenegraph exported each frame. That would work well 
> for a wide range of OSG-based applications, it seems, and GLTF seems 
> well-suited for this.
>
> On Monday, February 17, 2020 at 1:01:48 PM UTC-5, Robert Osfield wrote:
>>
>> Hi Armin?
>>
>> On Friday, 7 February 2020 19:06:19 UTC, Armin Samii wrote:
>>>
>>> Has anybody worked on exporting GLTF Animations from OSG?
>>>
>>> I'd like to save my dynamic OSG scene to disk, and don't want to save 
>>> the static geometry each frame. GLTF lets me export the geometry once, and 
>>> animate it each frame thereafter.
>>>
>>> Curious if anybody has tried something similar, or if there is existing 
>>> code to do this.
>>>
>>
>> I don't know of any open sourced GLTF importers or exporters for the OSG.
>>
>> What form do your animations take?
>>  
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/6348c881-2838-4a01-b744-73366941bd7d%40googlegroups.com.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Export GLTF from OSG?

2020-02-17 Thread OpenSceneGraph Users
We have a gltf importer/exporter that we use in osgearth based on
tinygltf.   It works really well although we're really only targetting gltf
files produced to support rendering 3d tiles datasets.  So for example we
havent done anything with animation since that's not a big part of
3dtiles.   Give it a look and see if you might be able to use it.


Jason

On Mon, Feb 17, 2020, 2:46 PM OpenSceneGraph Users <
osg-users@lists.openscenegraph.org> wrote:

> Hi Robert,
>
> The animations are reading live data and rendering them - so it's not a
> simple format, but can be represented by gltf well: the mesh models are
> static, but can appear and disappear and can have arbitrary transformations
> applied to them.
>
> My vision is an exporter that exports each unique Geode exactly once, and
> everything else in the scenegraph exported each frame. That would work well
> for a wide range of OSG-based applications, it seems, and GLTF seems
> well-suited for this.
>
> On Monday, February 17, 2020 at 1:01:48 PM UTC-5, Robert Osfield wrote:
>>
>> Hi Armin?
>>
>> On Friday, 7 February 2020 19:06:19 UTC, Armin Samii wrote:
>>>
>>> Has anybody worked on exporting GLTF Animations from OSG?
>>>
>>> I'd like to save my dynamic OSG scene to disk, and don't want to save
>>> the static geometry each frame. GLTF lets me export the geometry once, and
>>> animate it each frame thereafter.
>>>
>>> Curious if anybody has tried something similar, or if there is existing
>>> code to do this.
>>>
>>
>> I don't know of any open sourced GLTF importers or exporters for the OSG.
>>
>> What form do your animations take?
>>
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/osg-users/f8f1a09c-8725-4135-9ece-ab1ae0627d9c%40googlegroups.com
> 
> .
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Export GLTF from OSG?

2020-02-17 Thread OpenSceneGraph Users
Hi Robert,

The animations are reading live data and rendering them - so it's not a 
simple format, but can be represented by gltf well: the mesh models are 
static, but can appear and disappear and can have arbitrary transformations 
applied to them.

My vision is an exporter that exports each unique Geode exactly once, and 
everything else in the scenegraph exported each frame. That would work well 
for a wide range of OSG-based applications, it seems, and GLTF seems 
well-suited for this.

On Monday, February 17, 2020 at 1:01:48 PM UTC-5, Robert Osfield wrote:
>
> Hi Armin?
>
> On Friday, 7 February 2020 19:06:19 UTC, Armin Samii wrote:
>>
>> Has anybody worked on exporting GLTF Animations from OSG?
>>
>> I'd like to save my dynamic OSG scene to disk, and don't want to save the 
>> static geometry each frame. GLTF lets me export the geometry once, and 
>> animate it each frame thereafter.
>>
>> Curious if anybody has tried something similar, or if there is existing 
>> code to do this.
>>
>
> I don't know of any open sourced GLTF importers or exporters for the OSG.
>
> What form do your animations take?
>  
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/f8f1a09c-8725-4135-9ece-ab1ae0627d9c%40googlegroups.com.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Export GLTF from OSG?

2020-02-17 Thread OpenSceneGraph Users
Hi Armin?

On Friday, 7 February 2020 19:06:19 UTC, Armin Samii wrote:
>
> Has anybody worked on exporting GLTF Animations from OSG?
>
> I'd like to save my dynamic OSG scene to disk, and don't want to save the 
> static geometry each frame. GLTF lets me export the geometry once, and 
> animate it each frame thereafter.
>
> Curious if anybody has tried something similar, or if there is existing 
> code to do this.
>

I don't know of any open sourced GLTF importers or exporters for the OSG.

What form do your animations take?
 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/osg-users/86deea75-2982-4ef3-96ae-61ad25f15741%40googlegroups.com.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org