Sfpiano 07-30-2002, 10:14 AM How do you design a model so that you can apply a texture to it in DirectX8. I've downloaded some other models from other sites as examples, and I can apply the texture to them just fine. THe problem is when I try to make my own models. I can put them in directX, but I can't apply texture to them. Is there some setting I don't know about?
Sfpiano 07-30-2002, 11:53 AM I'm starting to think it might be a problem with my code here's the file:
Use W, A, S, D to move around, you'll have to press S for a few seconds first to get the room to appear on screen
ochensati 07-30-2002, 01:14 PM I cannot view your program as I have only directx 7. But I think that when you save a 3ds model you must specify that you want texture coordinates. Especially when you save it as a ASE file.
DrunkenHyena 07-30-2002, 11:34 PM G'day!
There are some files missing from your archive, so I couldn't run it. I did look at your mesh (it's just a text file) and I don't see texture coordinates defined anywhere in there.
Sfpiano 07-31-2002, 11:08 AM I'm somewhat new to 3DS Max, how do you set the texture coordinates?
Sfpiano 07-31-2002, 11:11 AM There, should be working now
ochensati 07-31-2002, 11:23 AM There is a nice loader program available at
http://www.a1vbcode.com/code.asp?type=graphics
I have found with 3ds that it will not specify the texture coords sometimes if there is no texture applied to the model. That could be the problem?
Sfpiano 07-31-2002, 12:48 PM I don't know, I have the texture being applied in vb. But now, I can't even bring in other meshes. :mad: I commented on exactly where the problem is, and included the .x and .max files
ochensati 08-03-2002, 02:31 PM You are missing the clas cameradata so I cannot run your files.
Sfpiano 08-04-2002, 01:52 PM BAH!! sorry about that :eek:
ochensati 08-07-2002, 09:48 AM The problem is simply that there is no texture coordinates in any of the max files or x files. I know that you have to specify that you want them when you use the .ASE conversion with 3ds , but I dont know about the rest.
Sfpiano 08-09-2002, 04:21 PM Do you know how to set the texture coords?
Sfpiano 08-09-2002, 05:08 PM Never mind, finally got it working! :D
Now I have another problem, of course. DirectX isn't carrying over the textures I gave the object in 3DS Max; it only applies a texture when I apply it through DX
The textures are not saved in a .3ds
egs5
Sfpiano 12-03-2002, 03:47 PM Tried that, still didn't work. If I don't load a texture from within DX, the object appears white. I won't let me call a .3DS texture in DX either. But I did rename the files to .3DS and change it in 3DS Max and that worked fine. But the texture isn't carring over. :( However, if I load my mesh in the mesh viewer that comes with DX, everything appears as it should. :confused:
Textures are square bitmaps that must be loaded from within the program you made and applied on the mesh object(s).
egsoc.
djerx 12-05-2002, 09:08 AM hey, go to the "C:\Downloads\rob0tix" directory on you're machine, copy the file "CameraData.cls" to the folder, where you're code is and post it again:)
|