Looking for a working recipe to run osgearth with GL3 support on Linux #2389
Replies: 2 comments 12 replies
-
The re-coloring is an example of "state leakage" and is typically caused by a model that leaves something undefined (like its colors array most commonly), in which case OSG just uses whatever "leaked" from the previous drawable. I would check that your 3D model has a color array defined. The warning msg |
Beta Was this translation helpful? Give feedback.
-
Hi, I have been able to fix the "state leakage" for the textured model by adding the options Now I have to address the Material issue for all the models that do not have a texture and I still have two I'll keep you posted... |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am starting this discussion hoping to have a place to share experiences with those of you that (like me) are working on Linux.
I have been using without any problem osgearth 3.2.0 and GL2 for a few years now and recently I have been trying, every now and then, to update my installation to the latest versions of OSG and osgearth, using GL3.
After several attempts, I have decided to sum up my linux recipe in a Docker container that seems, in some extent, to works (unfortunately it has a few limitations).
Since the up-to-date vcpkg package for linux is still a work in progress, my dockerfile starts from scratch, installing packages on an Ubuntu 20.04 base image. The docker file is available in the pull request #2387 that I have opened.
The problem where I am stuck at the moment is related to model rendering: when I add a model, colors are mixed up... in a deterministic way, it seems 😀... that I cannot fully understand 😦.
Here is what happens:
In the terminal, it prints the message
Warning: Material::apply(State&) - not supported.
.Something similar happens when I load a model that has materials, but no texture.
This time, materials are not shown at all. The model only takes the color of the green label at first, and then the one of the statistics text. No warning messages are printed.
I will keep updating the Dockerfile if I have any updates, hoping to hearing from you as well. Consider the dockerfile as a sandbox.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions