[X3D-Public] Multiple Materials for Geometry (IndexedFaceSet)

Dave A dave at realmofconcepts.com
Tue Jan 4 17:27:59 PST 2011


I think you need to break the mesh into pieces (then put them in a Group) because you can have only one Appearance per mesh.

"Campbell Barton" <ideasman42 at gmail.com> wrote:

>Hi, I'm currently making some updates to blender 2.5'x X3D exporter,
>since we have a diligent user reporting all sorts of bugs.
>
>One problem I've hit is that it seems there is no way to have
>different materials for one mesh.
>
>There are some ways that have been suggested but I find both
>unsatisfactory.
>
>1) Set colorPerVertex="false", then define color per face.
>This is no good because you may have different specular, diffuse
>values per material (not just color)
>
>2) Use MultiTexture?, This was suggested but from what I can tell its
>only for layering textures, not applying different textures to
>different parts of the mesh.
>
>The things Id like to support are:
>- Different images on the same mesh.
>- Different material's on the same mesh.
>
>From what I can tell there is no way to do this so as a last resort
>the exporter could split the object's materials into multiple objects,
>which is not ideal but I cant see an alternative.
>
>Am I missing something?.
>
>-- 
>- Campbell
>
>_______________________________________________
>X3D-Public mailing list
>X3D-Public at web3d.org
>http://web3d.org/mailman/listinfo/x3d-public_web3d.org

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.



More information about the X3D-Public mailing list