HI Alex,

On Wed, Aug 11, 2010 at 2:28 PM, Alexander Irion <[email protected]> wrote:
> Hi,
>
> shouldn't the line
>
> bool inlineImageFile = _dataSet->getDestinationTileExtension()==".ive";
>
> be expanded to:
>
> bool inlineImageFile = _dataSet->getDestinationTileExtension()==".ive" || 
> _dataSet->getDestinationTileExtension()==".osgb";
>
> inorder to get mipmaps as imagery in osgb files?

Reviewing the code in VPB this change does indeed look appropriate.
As Brad mentions .osgb support is very new to the OSG and VPB so
hasn't yet been fully tested and refined so items like this we'll need
to be on the look out for.

I've made the above change to VPB and checked it in to svn/trunk.


> I would also only set hardware mipmap generation in the output file, when 
> MIP_MAPPING_HARDWARE is set:
>
> texture->setUseHardwareMipMapGeneration(getImageOptions(layerNum)->getMipMappingMode()
>  == DataSet::MIP_MAPPING_HARDWARE);
>
> Is this correct?

I can't work out the problem you are thinking about there.  The code
looks fine to me right now, and would expect the code to work for .ive
and .osgb in the same way.  Is there a specific problem you are
thinking about?

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to