OpenSceneGraph icon indicating copy to clipboard operation
OpenSceneGraph copied to clipboard

I can't see .osgt file textures when I compile with emscripten in osgemscripten.

Open Holiflot opened this issue 1 year ago • 4 comments

I can't see the 3D sculpt textures. Is a .glsl file required? I've read similar things. If necessary, how can I implement it? If not, how can I solve it?

Holiflot avatar Aug 26 '24 11:08 Holiflot

Maybe you missed some plugins? As emscripten compiles all libraries as static, plugins must be linked manually and declared in the source file. Also you would have to write your own GLSL shaders as fixed pipeline is totally disabled in that cast.

BTW, osgverse (https://github.com/xarray/osgverse) provides full supports of OSG under WebGL1/WebGL2, even with a PBR pipeline. You may also have a look at it.

xarray avatar Aug 26 '24 12:08 xarray

@xarray I know your project. I also implemented osgearth. I wrote it your project issue. I need to say really thank you. Okay, I will examine again osgverse.

Holiflot avatar Aug 26 '24 13:08 Holiflot