Skip to content
Discussion options

You must be logged in to vote

I'm afraid that is going to be too expensive, I need to be able to maintain ~1000 tracks on the display and with images needing to rotate almost constantly, its going to slow everything down.
So what I have done in the meantime is use your TrackNode class as an example to create my own customized one. If you want I can post the code, but basically what I've done is remove the shared stateset and use the Vertex shader to do the rotation. VS looks like this...

const char* iconVS = R"(
    //Rotation in radians
    uniform float iconRotation;

    //Center of rotation (quad center)
    uniform vec2 iconCenter;

    //Passed to fragment shader
    out vec2 oe_TargetNode_texcoord;

    void oe…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Warren-Whitfield
Comment options

@gwaldron
Comment options

@Warren-Whitfield
Comment options

Answer selected by gwaldron
@gwaldron
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants