Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SubTextures example

VSG extension SubTextures - This example is a well known game implementation using SubTextures.

DESCRIPTION:

    SubTextures .

    This example implements the well known game TicTacToe using SubTextures. When the user click one cell the global texture is updated with the player's texture.

    The whole game is rendered using one texture, this texture is updated according to the game's rules.

    This example use the SoRayPickAction to figure out the cell clicked by the player.

SEE ALSO

SoExtTexture2 SoTexture2 SoRayPickAction

FILES:

    • Inventor/SubTextures/TicTacToe.cxx
    • Inventor/SubTextures/TicTacToe.gif
    • Inventor/SubTextures/O.jpg
    • Inventor/SubTextures/X.jpg

SCREENSHOT: