info-inventor-dev
[Top] [All Lists]

Per-face material assignment for SoIndexedFaceSet

To: <info-inventor-dev@xxxxxxxxxxx>
Subject: Per-face material assignment for SoIndexedFaceSet
From: "Tamstorf, Rasmus" <Rasmus.Tamstorf@xxxxxxxxxx>
Date: Mon, 17 Mar 2003 10:29:06 -0800 (PST)
Sender: info-inventor-dev-bounce@xxxxxxxxxxx
I hope this is something really simple, which I've just overlooked, but as 
it is I can't get per-face material/color assignment to work for 
SoIndexedFaceSet. 

I've attached a simple iv file with a single plane in it. There are two 
colors in the 'orderedRGBA' field (red and green), and the associated 
'materialIndex' assigns one color to half the plane and the other color to 
the other half. 

Or so I think :-/ When I look at the file in ivview it's all just gray. Am
I missing something ? Is ivview broken ? Or is this a known problem
elsewhere ?

Thanks,
Rasmus

-----------------------------------------------------------------------------
Rasmus.Tamstorf@xxxxxxxxxx         "A problem worthy of attack, 
Walt Disney Feature Animation       proves its worth by hitting back" Kumbel
-----------------------------------------------------------------------------

Attachment: test.iv
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>