chrrox
06-12-2011, 04:12 PM
I have a question about reading textures from a file.
Say I have a custom texture format that i want to use for a game.
The format is a dds dxt5 texture for instance.
Is there a way to directly apply texture data to a model file in max or do i need to create a dds texture then apply it.
Also if i need to do the second method is there a faster way to read large amounts of data
other then something like
for i = 1 to filebytecount do (
writebyte (readbyte fstream) ddsfile
)
i am thinking there must be a way to copy and paste large amounts of data besides readbyte and writebyte.
thanks so much for any help or tips :)
Say I have a custom texture format that i want to use for a game.
The format is a dds dxt5 texture for instance.
Is there a way to directly apply texture data to a model file in max or do i need to create a dds texture then apply it.
Also if i need to do the second method is there a faster way to read large amounts of data
other then something like
for i = 1 to filebytecount do (
writebyte (readbyte fstream) ddsfile
)
i am thinking there must be a way to copy and paste large amounts of data besides readbyte and writebyte.
thanks so much for any help or tips :)
