ParallelGraphics  
Home  »  Developer Zone  »  Products  »  Cortona3D Viewer  »  VRML Extensions  »  CompositeTexture
CompositeTexture

The CompositeTexture3D and CompositeTexture2D nodes allow for adding composite textures to the 3D scene. You must have DirectX 9.0c installed and activated DirectX renderer with Auto or Concorde DX9 option in Cortona3D Viewer.

CompositeTexture3D

EXTERNPROTO CompositeTexture3D [ 
  eventIn	MFNode	addChildren
  eventIn	MFNode	removeChildren
  exposedField	MFNode	children	NULL
  exposedField	SFInt32	pixelWidth	-1
  exposedField	SFInt32	pixelHeight	-1   
  exposedField	SFBool	repeatS		TRUE
  exposedField	SFBool	repeatT		TRUE 
  exposedField	SFNode	background	NULL
  exposedField	SFNode	fog		NULL
  exposedField	SFNode	navigationInfo	NULL
  exposedField	SFNode	viewpoint	NULL
]
[
  "urn:inet:parallelgraphics.com:cortona:CompositeTexture3D"
  "http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl
  #CompositeTexture3D"
]

The CompositeTexture3D node represents a texture mapped onto a 3D object that is composed of a 3D scene.
User interaction and the standard user navigation on the textured scene are disabled.

The children field is the list of 3D children nodes that define the 3D scene that forms the texture map.
The addChildren eventIn specifies a list of nodes that shall be added to the children field.
The removeChildren eventIn specifies a list of nodes that shall be removed from the children field.
The pixelWidth and pixelHeight fields specify the ideal size in pixels of this map. The default values result in an undefined size being used. This is a hint for the content creator to define the quality of the texture mapping.
The background field specifies the Background of the current texture. It may only contain Background node.
The fog field specifies the Fog node.
The navigationInfo field specifies the NavigationInfo node.
The viewpoint field specifies the Viewpoint node.
The repeatS and repeatT fields specify how the texture wraps in the S and T directions.


Example

scene size: 1.6KB
archive size: 1.7KB
view online download




CompositeTexture2D

EXTERNPROTO CompositeTexture2D [ 
  eventIn	MFNode	addChildren
  eventIn	MFNode	removeChildren
  exposedField	MFNode	children	NULL
  exposedField	SFInt32	pixelWidth	-1
  exposedField	SFInt32	pixelWidth	-1   
  exposedField	SFBool	repeatS		TRUE
  exposedField	SFBool	repeatT		TRUE 
  exposedField	SFNode	background	NULL
  exposedField	SFNode	viewport	NULL
]
[
  "urn:inet:parallelgraphics.com:cortona:CompositeTexture2D"
  "http://www.parallelgraphics.com/vrml/proto/Cortona/extensions.wrl
  #CompositeTexture2D"
]

The CompositeTexture2D node represents a texture that is composed of a 2D scene, which may be mapped onto another object.

The children field contains a list of 2D children nodes that define the 2D scene that is to form the texture map.
The addChildren eventIn specifies a list of nodes that shall be added to the children field.
The removeChildren eventIn specifies a list of nodes that shall be removed from the children field.
TThe pixelWidth and pixelHeight fields specify the ideal size in pixels of this map. The default values result in an undefined size being used. This is a hint for the content creator to define the quality of the texture mapping.
The semantics of the background and viewport fields are identical to the semantics of the Layer2D fields of the same name.
The repeatS and repeatT fields specify how the texture wraps in the S and T directions.



Last updated: Wed, 23 Apr 2014
© 2000-2008 ParallelGraphics. All rights reserved.