FeatureNode and texture coordinates

classic Classic list List threaded Threaded
2 messages Options
Tension Tension
Reply | Threaded
Open this post in threaded view
|

FeatureNode and texture coordinates

Hi!

I'm trying to visualize flood level of selected area, to achieve this i use FeatureNode (without styles) as simple none-clamping polygon (each vertex has the same altitude, but this altitude can vary) with custom shader. All works fine, except i can't use texcoords in shader, because i haven't found a way to set texcoords to feature. Is there a way?

The reason why i'm trying to use FeatureNode and not just Geode with drawables is interaction with terrain, FeatureNode looks much better while manipulating with camera (z-fighting almost unnoticeable). Maybe i can use something to achieve similar behavior with geode?

I'm using osgEarth 2.10.1.


gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|

Re: FeatureNode and texture coordinates

Tension,

The code that creates a FeatureNode from geospatial data doesn't generate any texture coordinates. Sorry!
Glenn Waldron / Pelican Mapping