Re: [osg-users] Correct way to modify Image used in a Texture2D (and have the Texture2D re-upload)

2020-04-18 Thread OpenSceneGraph Users
Okay, it's good to know I'm at least in principle trying the right thing then. There are unfortunately lot of texture changes happening, but I'll try a break-point in ::apply and see I can spot the correct one. On Wednesday, 15 April 2020 12:08:11 UTC+1, OpenSceneGraph Users wrote: > > Calling

Re: [osg-users] Correct way to modify Image used in a Texture2D (and have the Texture2D re-upload)

2020-04-15 Thread OpenSceneGraph Users
Calling dirty() on the image should be sufficient as the Texture2D will check the modifiedCount on each time the texture is applied. It's how we've implemented things like video textures and has been working for a long time. It "should" work. Put a check point or debug notice into the

[osg-users] Correct way to modify Image used in a Texture2D (and have the Texture2D re-upload)

2020-04-15 Thread OpenSceneGraph Users
I'm trying to figure out the correct way to notify Texture2D that I've modified the raw bytes of its underlying Image (previous set via setImage) I'm modifying the image data using image->data(), and then calling image->dirty() once modifications are complete. I can see this changes the