[x3d-public] wondering about candidate values for Texture mapping specified in material nodes

Don Brutzman brutzman at nps.edu
Mon Sep 14 10:19:07 PDT 2020


While looking at the following, it seems like accepted enumeration values for the *Mapping strings (xxxTextureMapping fields) are not provided.

[1] X3D4 Architecture, 12.2.4 Texture mapping specified in material nodes
     https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-WD2/Part01/components/shape.html#TextureMapping

> The X3DOneSidedMaterialNode and descendants (Material, PhysicalMaterial, UnlitMaterial) introduce a number of fields to modify material parameters using textures. They are consistently defined by a pair of fields like this:
> 
>   SFNode   [in,out] xxxTexture        NULL
>   SFString [in,out] xxxTextureMapping ""
> 
> The field xxxTexture indicates a texture node.
> 
> The xxxTextureMapping determines the texture coordinates and texture coordinates transformation for given texture xxxTexture.
> 
> The corresponding texture coordinate and texture coordinate transformation nodes have a field mapping that will match the value of the xxxTextureMapping field. See the X3DSingleTextureCoordinateNode and X3DSingleTextureTransformNode definitions.
> 
> Multiple textures may use the same texture coordinates and their transformations. For example, it is common that both normalTextureMapping and diffuseTextureMapping are equal, if the graphic artist prepared both normalTexture and diffuseTexture simultaneously, assuming the same mapping. 

and

[2] X3D4 Architecture, 12.4.5 Material
     https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-WD2/Part01/components/shape.html#Material

>   SFString [in,out] ambientTextureMapping     ""
> 
>   SFString [in,out] diffuseTextureMapping     ""
> 
>   SFString [in,out] emissiveTextureMapping    ""
> 
>   SFString [in,out] occlusionTextureMapping   ""
>   
>   SFString [in,out] shininessTextureMapping   ""
> 
>   SFString [in,out] specularTextureMapping    ""

Dick is wondering if booleans are appropriate as well, perhaps renaming them (or adding them).

   SFBool [in out]  ambientTextureEnabled TRUE
   ...
   SFBool [in out] specularTextureEnabled TRUE

Please advise what are candidate values for these strings.  Thanks!

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman



More information about the x3d-public mailing list