openscenegraph / OpenSceneGraph

OpenSceneGraph git repository
http://www.openscenegraph.org
Other
3.25k stars 1.42k forks source link

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

Open Holiflot opened 2 months ago

Holiflot commented 2 months ago

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?

xarray commented 2 months ago

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.

Holiflot commented 2 months ago

@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.