[osg-users] .hdr Image format in RAW modus

Robert Osfield robert.osfield at gmail.com
Sun Oct 21 04:07:25 PDT 2007


On 10/20/07, Art Tevs <stud_info2 at yahoo.de> wrote:
> Hi.
>
> I am wonder why the HDR-Reader does not upload the raw
> values per default to the image.
>
> I mean, what is the reason, why you have to specify
> this option extra, since it is intuitively clear, that
> the reader has to pass the data in the same manner as
> it is stored in the file, raw data. The values can be
> later used by a shader to convert them properly.
>
> Otherwise it would be gratefull to check, if the GPU
> does support float textures and upload the values
> directly converted to float?

You can't check GPU support from within a plugin as a plugin doesn't
neccesarily have a valid graphics context - rather its later code that
should check this.


>
> Thanks, Art
>
> P.S. Everytime a new version of osg is coming out, I
> have to modify the hdr plugin to upload the raw data
> ;-)

I'm not the author of the HDR plugin so know little specifically about
the HDR plugin.  Is there are legitimate versions of the HDR format
that are presently supported that should be the please add this
support and submit it for inclusion in the SVN version of the OSG,
this way it'll be in the next release.

Robert.



More information about the osg-users mailing list