Textures

This is a discussion on Textures within the Game Programming forums, part of the General Programming Boards category; Hello! I know I can swap textures on a mesh, but it should be impossible to use several textures on ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    62

    Textures

    Hello!
    I know I can swap textures on a mesh, but it should be impossible to use several textures on one mesh simultaneously, right?

    If it's impossible, how can I do such things as changing clothes, armor or whatever on the character in the game?

    The only ideas I had when thinking about it were creating a separate mesh for body for wearing body textures and hands and feet for their textures. The other idea was to create different texture sets and changing them, but it seems pointless if I have 20 different variations for body and legs (then it means 20*20=400 texture sets), so this idea seems useless.

    What do you suggest?

  2. #2
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    Actually it's not. To just swap textures is simple provided each texture follows the texture atlas of the mesh. But the end result is not all that great.

    I know firsthand that games such as Oblivion have several models of characters as they appear when wearing boots, cloaks, wrist armor, chest armor, etc. The 'revised' models are all thrown into the main model in local space. The program then figures out which of these 'model versions' to use. Oblivion and all games that utilize the Gamebryo engine use the NIFL format. You can download a NIFL viewer that will allow you to view the models provided you own the games that the models come from. Once you see the models in a viewer you will see exactly what is being done to show the various clothes you can put on the player.

    These games also have information in the model file for orienting weapons when they are in the hands, on the back, lying on the ground, and in the belt.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Multiple textures in OpenGL...
    By yaya in forum Game Programming
    Replies: 1
    Last Post: 02-12-2008, 07:24 AM
  2. loading textures from resources (dx8/9)
    By X PaYnE X in forum Game Programming
    Replies: 1
    Last Post: 12-25-2005, 03:44 PM
  3. OpenGL, loading BMP Textures?
    By Zeusbwr in forum Game Programming
    Replies: 12
    Last Post: 12-09-2004, 04:16 PM
  4. the effects of textures on my frame rate
    By DavidP in forum Game Programming
    Replies: 37
    Last Post: 10-03-2003, 11:24 AM
  5. Q3A textures
    By glUser3f in forum Game Programming
    Replies: 11
    Last Post: 09-04-2003, 03:40 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21