Adding a new texture to existing mesh
From: JB (JB_at_discussions.microsoft.com)
Date: 06/18/04
- Next message: Philippe G.: "cloud points rending"
- Previous message: Jacky Luk: "Re: Simple .X Construction"
- Next in thread: Rich [Microsoft Direct3D MVP]: "Re: Adding a new texture to existing mesh"
- Reply: Rich [Microsoft Direct3D MVP]: "Re: Adding a new texture to existing mesh"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 17 Jun 2004 22:18:01 -0700
Hi, while trying to use what I learned about DX9, I created a rectangle using D3DXCreateBox function. Now i'm trying to add texture to it by using cloneMeshFVF function but I just realized that I would somehow need to figure out overall vertex coordinates to appropriately assign texture coordinates. I would like to assign full (0,0) to (1,1) 2-D texture to each side of the rectangle. Any suggestions on how I should do this would be very much appreciated. For curiosity, how would I do this if I were using 3-D texture coordinates? Thanks in advance.
- Next message: Philippe G.: "cloud points rending"
- Previous message: Jacky Luk: "Re: Simple .X Construction"
- Next in thread: Rich [Microsoft Direct3D MVP]: "Re: Adding a new texture to existing mesh"
- Reply: Rich [Microsoft Direct3D MVP]: "Re: Adding a new texture to existing mesh"
- Messages sorted by: [ date ] [ thread ]