osg on web page

58 views
Skip to first unread message

Trajce Nikolov NICK

unread,
May 24, 2020, 6:28:01 AM5/24/20
to osg-...@googlegroups.com
Hi Community,

I am with osg for quite a while and I never needed to have running osg in a web page. Till now :). Have someone done this? Any hints?

Thanks a bunch as always!

Cheers,
Nick

--
trajce nikolov nick

Andreas Ekstrand

unread,
May 24, 2020, 9:45:53 AM5/24/20
to osg-...@googlegroups.com
Hi Nick,

I've been using osg.js successfully in many projects. Although actually discontinued by the SketchFab guys in order to develop a replacement of their own, it's still a mature and user-friendly framework if you're familiar with osg. Wouldn't be surprised if SketchFab still uses it for a while, it takes time to develop a new framework.

It's a pity no one has had the time or will to take over the repository but I have my own fork with some added functionality, as I guess others have.

Regards,
Andreas
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/CAO-%2Bzimp5ui7nyihLvA4C4v%3DNnVQUhiQiV4f%2B%3DOEdJB1H24LLQ%40mail.gmail.com.

Trajce Nikolov NICK

unread,
May 24, 2020, 9:50:14 AM5/24/20
to osg-...@googlegroups.com
Thanks Andreas,

That will help for some start



--
trajce nikolov nick

Robert Osfield

unread,
May 24, 2020, 11:24:55 AM5/24/20
to OpenSceneGraph Users
Have a look at Michael Kapelko's work on using Emscripten to use the OSG within a browser:



Trajce Nikolov NICK

unread,
May 24, 2020, 11:39:08 AM5/24/20
to osg-...@googlegroups.com
Thanks Robert!

--
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+...@googlegroups.com.


--
trajce nikolov nick

OpenSceneGraph Users

unread,
May 24, 2020, 4:55:14 PM5/24/20
to OpenSceneGraph Users
Thanks Phil!!! These are really good insights

On Sun, May 24, 2020 at 10:44 PM OpenSceneGraph Users <osg-...@lists.openscenegraph.org> wrote:
I’ve done a build of OSG for the web (using Emscripten and WebAssembly):


It includes the glTF plugin (ported from osgEarth) for gltf and glb loading support. The one issue currently is that it needs multithreaded WebAssembly which has patchy support on mobile browsers, although Chrome and Firefox 78 and later will have multithreaded Wasm enabled by default.

There’ll be a Mozilla blog post about this work sometime this week or next.

Kind regards,
Phil.


On 25/05/2020, at 3:38 AM, OpenSceneGraph Users <osg-...@lists.openscenegraph.org> wrote:

Thanks Robert!

On Sun, May 24, 2020 at 5:24 PM Robert Osfield <robert....@gmail.com> wrote:

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


--
trajce nikolov nick

OpenSceneGraph Users

unread,
May 24, 2020, 5:14:24 PM5/24/20
to osg-...@lists.openscenegraph.org

Trajce Nikolov NICK

unread,
May 24, 2020, 5:22:18 PM5/24/20
to osg-...@googlegroups.com
Thanks once again!

--
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+...@googlegroups.com.

_______________________________________________
osg-users mailing list
osg-...@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+...@googlegroups.com.


--
trajce nikolov nick

Chris Hanson

unread,
May 26, 2020, 12:03:46 PM5/26/20
to OpenSceneGraph Users, OpenSceneGraph Users
We have also dabbled in OSG on Emscripten with partial success. We may be pursuing it in the future. Remo in Switzerland also got most of OSG and osgEarth working on Emscripten within the last couple of years. I can put you in touch if you're pursuing this.

Good luck. It's complicated but can be made to work with dedication.

On Sun, May 24, 2020 at 3:22 PM OpenSceneGraph Users <osg-...@lists.openscenegraph.org> wrote:
Thanks once again!

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


--
trajce nikolov nick

--
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+...@googlegroups.com.

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


--
Chris 'Xenon' Hanson, omo sanza lettere. Xe...@AlphaPixel.com http://www.alphapixel.com/
Training • Consulting • Contracting
3D • Scene Graphs (Open Scene Graph/OSG) • OpenGL 2 • OpenGL 3 • OpenGL 4 • GLSL • OpenGL ES 1 • OpenGL ES 2 • OpenCL
Legal/IP • Forensics • Imaging  UAVs • GIS • GPS • osgEarth • Terrain • Telemetry • Cryptography • LIDAR • Embedded • Mobile • iPhone/iPad/iOS • Android
@alphapixel facebook.com/alphapixel (775) 623-PIXL [7495]

OpenSceneGraph Users

unread,
May 27, 2020, 4:45:51 AM5/27/20
to osg-...@lists.openscenegraph.org
I am definitely interested in collaborating on this. Some things remain incomplete in the current port. I’ll share the working example I got up and running soon, so that will fill in one of the gaps

Another current issue is the patchy browser support for multithreaded WebAssembly and OSG requiring multithreading (at least at compile time). I mentioned this previously on the list, but I think a port of OpenThreads specifically to handle the stub functionality in single-threaded WebAssembly mode would open up browser support hugely. Other projects like Google Earth have had to do the same work.

The port of osgEarth’s glTF plugin to OSG could also benefit from some additional work to enable remote resource fetching. At the moment I’ve only ported the local resource path.

Kind regards,
Phil.

On 27/05/2020, at 4:03 AM, OpenSceneGraph Users <osg-...@lists.openscenegraph.org> wrote:

We have also dabbled in OSG on Emscripten with partial success. We may be pursuing it in the future. Remo in Switzerland also got most of OSG and osgEarth working on Emscripten within the last couple of years. I can put you in touch if you're pursuing this.

Good luck. It's complicated but can be made to work with dedication.

On Sun, May 24, 2020 at 3:22 PM OpenSceneGraph Users <osg-...@lists.openscenegraph.org> wrote:
Thanks once again!

OpenSceneGraph Users

unread,
May 28, 2020, 1:56:39 PM5/28/20
to OpenSceneGraph Users
Anyone who wants to chat about this further is welcome to email me.

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


--
Reply all
Reply to author
Forward
0 new messages