Robert Osfield
85bb6b327d
From Wojciech Lewandowski, "Here are my changes:
...
- osg::Texture sets GL_MAX_TEXTURE_LEVEL if image uses fewer mipmaps than
number from computeNumberOfMipmaps (and it works!)
- DDS fix to read only available mipmaps
- DDS fixes to read / save 3D textures with mipmaps ( packing == 1 is
required)
- Few cosmetic DDS modifications and comments to make code cleaner (I hope)
Added _isTextureMaxLevelSupported variable to texture extensions. It
could be removed if OSG requires OpenGL version 1.2 by default.
Added simple ComputeImageSizeInBytes function in DDSReaderWrites. In
my opinion it would be better if similar static method was defined for
Image. Then it could be used not only in DDS but other modules as well (I
noticed that Texture/Texture2D do similar computations).
Also attached is an example test.osg model with DDS without last mipmaps to
demonstrate the problem. When loaded into Viewer with current code and moved
far away, so that cube occupies 4 pixels, cube becomes red due to the issue
I described in earlier post. When you patch DDS reader writer with attched
code but no osg::Texture yet, cube becomes blank (at least on my
Windows/NVidia) When you also merge osg::Texture patch cube will look right
and mipmaps will be correct."
2009-06-19 11:55:52 +00:00
..
2007-03-05 17:34:36 +00:00
2008-09-18 13:54:13 +00:00
2008-05-12 10:55:55 +00:00
2008-05-12 10:55:55 +00:00
2009-04-22 10:46:12 +00:00
2009-03-11 15:12:46 +00:00
2008-08-28 09:43:00 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2009-06-08 13:46:39 +00:00
2007-12-10 17:30:18 +00:00
2009-02-11 10:41:55 +00:00
2009-05-18 10:37:03 +00:00
2006-07-18 15:21:48 +00:00
2007-01-04 14:11:51 +00:00
2008-12-01 13:28:13 +00:00
2009-01-15 10:44:52 +00:00
2006-11-27 14:52:07 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2008-12-19 15:29:59 +00:00
2008-01-18 21:01:18 +00:00
2007-03-29 15:41:59 +00:00
2008-12-17 12:13:15 +00:00
2006-07-18 15:21:48 +00:00
2006-07-18 15:21:48 +00:00
2008-12-17 12:13:15 +00:00
2007-01-05 09:55:04 +00:00
2008-11-07 13:18:40 +00:00
2008-04-14 10:38:37 +00:00
2009-06-18 10:01:39 +00:00
2007-03-05 17:34:36 +00:00
2006-07-18 15:21:48 +00:00
2008-06-26 12:08:37 +00:00
2009-01-28 15:15:19 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2009-06-17 08:56:11 +00:00
2009-01-30 10:55:28 +00:00
2007-05-14 16:16:22 +00:00
2006-08-24 20:15:32 +00:00
2009-02-06 15:39:44 +00:00
2006-07-18 15:21:48 +00:00
2007-12-10 17:30:18 +00:00
2008-01-08 13:24:29 +00:00
2008-11-25 10:57:14 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2008-12-09 09:24:47 +00:00
2009-03-10 14:15:59 +00:00
2007-04-03 19:42:43 +00:00
2008-12-17 13:14:17 +00:00
2009-01-08 11:19:21 +00:00
2008-01-08 13:24:29 +00:00
2009-03-10 11:14:56 +00:00
2009-03-12 15:18:51 +00:00
2008-11-18 15:18:34 +00:00
2009-01-30 10:55:28 +00:00
2008-05-12 10:16:40 +00:00
2009-03-11 17:57:33 +00:00
2008-10-06 17:02:20 +00:00
2009-03-11 15:12:46 +00:00
2009-01-09 15:19:25 +00:00
2007-12-10 17:30:18 +00:00
2009-01-30 10:55:28 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-01-07 10:00:50 +00:00
2008-03-13 16:05:40 +00:00
2008-03-12 20:15:45 +00:00
2005-04-11 17:14:17 +00:00
2008-04-03 18:36:50 +00:00
2007-03-05 17:34:36 +00:00
2007-03-05 17:34:36 +00:00
2009-03-10 11:14:56 +00:00
2008-06-20 15:50:53 +00:00
2008-09-17 16:14:28 +00:00
2008-09-17 16:14:28 +00:00
2006-07-18 15:21:48 +00:00
2008-06-27 12:44:41 +00:00
2007-12-10 17:30:18 +00:00
2009-02-02 09:23:28 +00:00
2006-12-19 17:16:14 +00:00
2007-07-11 16:06:04 +00:00
2009-05-11 11:39:12 +00:00
2009-05-18 12:04:07 +00:00
2008-09-22 13:16:29 +00:00
2008-03-14 11:06:35 +00:00
2006-07-18 15:21:48 +00:00
2008-02-27 11:43:58 +00:00
2009-01-30 10:55:28 +00:00
2009-05-11 11:39:12 +00:00
2008-06-20 15:50:53 +00:00
2008-03-12 20:15:45 +00:00
2007-03-05 17:34:36 +00:00
2008-07-23 15:42:02 +00:00
2007-12-10 17:30:18 +00:00
2008-03-12 20:15:45 +00:00
2009-05-07 18:30:33 +00:00
2006-07-18 15:21:48 +00:00
2009-03-25 11:17:21 +00:00
2009-01-30 10:55:28 +00:00
2006-07-18 15:21:48 +00:00
2009-06-12 10:08:15 +00:00
2006-07-18 15:21:48 +00:00
2008-11-25 16:24:50 +00:00
2009-06-05 11:48:35 +00:00
2008-02-29 15:25:57 +00:00
2007-03-05 17:34:36 +00:00
2007-12-24 14:45:31 +00:00
2007-04-05 20:27:02 +00:00
2008-03-04 14:04:48 +00:00
2007-12-10 17:30:18 +00:00
2009-01-30 10:55:28 +00:00
2008-08-18 10:47:43 +00:00
2009-05-12 05:49:36 +00:00
2009-01-30 10:55:28 +00:00
2009-01-30 10:55:28 +00:00
2009-01-30 10:55:28 +00:00
2007-03-05 17:34:36 +00:00
2008-12-17 16:13:23 +00:00
2008-12-09 09:24:47 +00:00
2009-01-07 10:32:59 +00:00
2006-07-18 15:21:48 +00:00
2007-07-11 15:51:17 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2009-04-22 13:07:02 +00:00
2006-11-22 20:39:44 +00:00
2009-06-19 11:55:52 +00:00
2008-10-08 11:30:18 +00:00
2008-04-23 20:49:19 +00:00
2008-10-27 13:09:43 +00:00
2008-12-17 16:13:23 +00:00
2007-09-11 12:04:58 +00:00
2009-04-24 09:07:22 +00:00
2009-01-05 11:58:08 +00:00
2009-02-02 14:43:27 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-04 14:46:46 +00:00
2008-11-25 14:15:35 +00:00
2006-07-18 15:21:48 +00:00
2009-05-18 10:37:03 +00:00
2007-12-10 17:30:18 +00:00
2006-07-18 15:21:48 +00:00
2007-12-17 17:43:57 +00:00
2006-07-18 15:21:48 +00:00
2009-05-18 10:37:03 +00:00
2007-12-10 17:30:18 +00:00
2007-12-10 17:30:18 +00:00
2007-12-17 17:43:57 +00:00
2006-07-18 15:21:48 +00:00
2009-05-18 10:37:03 +00:00
2008-04-03 18:36:50 +00:00
2007-12-10 17:30:18 +00:00
2007-12-17 17:43:57 +00:00
2009-05-18 10:37:03 +00:00
2009-05-18 10:28:14 +00:00
2008-12-17 15:32:35 +00:00
2009-01-30 10:55:28 +00:00
2007-12-10 17:30:18 +00:00