Re: [osg-users] Geometry colorArray

2010-08-20 Thread Emilie Deschamps
Hi, Thanks for your advices :) I was setting the dataVariance of my normal and vertex array to Dynamic, but not on my color array. To get it works I also call dirty on my color array (before I was trying to call dirtyDisplayList on my geometry instead of dirty on my color Array, which hasn't

[osg-users] Geometry colorArray

2010-08-19 Thread Emilie Deschamps
Hi, My question may be obvious but I can't figure it out. Here's my problem: I have a (rig)geometry, with a vertexArray, a normalArray, and a colorArray (bind per vertex). Somewhere else in my code, I keep pointers to some of those values (a subset of vertices, a part of my geometry). When I

Re: [osg-users] Geometry colorArray

2010-08-19 Thread Tom Pearce
Hi Emilie, I don't have much experience with doing what you're trying to do, but do you have the data variance on your geometry set to dynamic? When I've forgotten to do this in the past various things I've tried to modify dynamically weren't applied, I can't recall if position (for example)

Re: [osg-users] Geometry colorArray

2010-08-19 Thread J.P. Delport
Hi, have you tried callind -dirty() on the array? Are you using VBOs or display lists? jp On 19/08/10 22:18, Emilie Deschamps wrote: Hi, My question may be obvious but I can't figure it out. Here's my problem: I have a (rig)geometry, with a vertexArray, a normalArray, and a colorArray