Ok seems to work for simple ChunkMaterials. There's a further problem 
when using MultipassMaterials for selection highlighting. Imagine we 
have a default ChunkMaterial with ColorMaterial set to GL_DIFFUSE in 
first place and a selection material (ChunkMaterial) with MaterialChunk, 
PolygonChunk and LineChunk for line highlighting in second place.
Usual edges become blue using the "Selection Material", but with vertex 
colors, edges get colored with vertex colors.
Any idea what may cause this?

Thanks,
Michael


Am 11.01.2011 16:55, schrieb Carsten Neumann:
>       Hello Michael,
>
> On 01/11/2011 03:27 AM, Michael Raab wrote:
>> I'm trying to apply vertex colors to some of my geometries. In each case I 
>> have a ChunkMaterial above or assigned to the appropriate geometry nodes 
>> that get the vertex colors. Can anyone tell me what is the cleanest way to 
>> tell OpenSG to use the assigned vertex colors?
> add a MaterialChunk to your ChunkMaterial and make sure SFColorMaterial
> is set correctly (defaults to GL_DIFFUSE), that way the vertex color
> will be used as diffuse color for lighting.
>
>       Cheers,
>               Carsten
>
> ------------------------------------------------------------------------------
> Gaining the trust of online customers is vital for the success of any company
> that requires sensitive data to be transmitted over the Web.   Learn how to
> best implement a security strategy that keeps consumers' information secure
> and instills the confidence they need to proceed with transactions.
> http://p.sf.net/sfu/oracle-sfdevnl
> _______________________________________________
> Opensg-users mailing list
> Opensg-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>


------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to