Horde3D
http://www.horde3d.org/forums/

Map resource stream inconsistency
http://www.horde3d.org/forums/viewtopic.php?f=3&t=1174
Page 1 of 1

Author:  Pyry [ 09.06.2010, 06:24 ]
Post subject:  Map resource stream inconsistency

When mapping a texture as a stream, you get the format from the TextureElem, but then to actually get a pointer to the data you use the ImageElem, and likewise you get the size from the ImageElem. But if it has multiple slices, you get the number of slices from the TextureElem. This is really confusing. Why not just fold the properties of the TextureElem into the ImageElem?

Author:  marciano [ 15.06.2010, 21:58 ]
Post subject:  Re: Map resource stream inconsistency

Well, there is a system to it. A texture can have subresources (mip maps or cube map faces) which are the image elements. The format must be the same for all subresources, that's why it is stored in the texture element. The dimensions (width, height) can be different for each subresource (e.g. mip maps). The number of slices belongs of course to the container (which is the texture element).

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/