OpenGL VRML Shockwave 3D
Home Tutorials Books Applications Tools Docs Models Textures

Send me bugs and suggestions, please
VRML Script Tutorial
Full list

VRML Interactive Tutorial

Introduction
VRML File Structure
Drawing: Shape node
Geometry Nodes:
Box
Sphere
Cone
Cylinder
PointSet
IndexedLineSet
IndexedFaceSet
Extrusion
ElevationGrid
Example: Chessboard
Text
FontStyle
Appearance
Material
Textures
Image Texture
Movie Texture
Pixel Texture
Texture Coordinate
Texture Transform
Let there be Light
Directional Light
Point Light
Spot Light
Materials with Colored Lights
Hierarchical Node Structures
Group
Transform
Collision
Anchor
Billboard
Switch
Inlining Files
Defining and Instancing Nodes
Defining Levels of Detail
Events in VRML
Creating Paths between events: ROUTE
Generating Events based on Timers or User Actions
Timers
Touch Sensor
Visibility Sensor
Dragging Sensors
Plane Sensor
Sphere Sensor
Cylinder Sensor
Proximity Sensors
Example: Proximity sensor
Interpolators
Color
Coordinate
Normal
Orientation
Position
Scalar
Example
Let the Music Play
Sound
AudioClip
Bindable Nodes
Who Am I: NavigationInfo
Where Am I: ViewPoint
Adding Realism to the world
Background
Fog
Information about your world
WorldInfo
Definition for Auxiliary Nodes
Coordinate
Color
Normal

ImageTexture Node


This node specifies the location of the image to be used for texturing the shape, as well as if the image is to be repeated vertically, or horizontally, along each of the faces of the shape.

Three fields are present in this node:
  • url which specifies the location of the image. Valid image formats are JPEG, GIF and PNG. You can specify multiple locations if you want to, the browser will look for data in those locations in decreasing order of preference.
  • repeatS which specifies if the image is to be repeated vertically.
  • repeatT which specifies if the image is to be repeated horizontally.
  • All fields are optional, the default values being applied if the field is not specified. Note: if you do not specify the location of the image, url, then no texturing takes place.

    Syntax:
    ImageTexture {
    url [ ]
    repeatS TRUE
    repeatT TRUE
    }


    Image File Formats in VRML The following formats should be recognized by VRML browsers:

  • JPEG, JPG: Joint Photographic Experts Group
  • GIF: Graphical Interchange Format
  • PNG: Portable Network Graphics
  • From the above formats JPEG is the only one which does not allow images to have transparent pixels.

    Note: for the example on the right the image will be repeated twice in each direction if the values for repeatS and repeatT are set ot TRUE. See the node TextureTransform to see how to set the repetition rate.



    Site designed and maintained by António Ramires Fernandes
    Your comments, suggestions and references to further material are welcome!

    Lighthouse 3D privacy statement