Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artefacts on edge of screen #43

Open
GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment
Open

Artefacts on edge of screen #43

GoogleCodeExporter opened this issue Mar 16, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Hy I want use osgOcean in cloud rendering.
On left ,right and down edge is water without reflection it is maximum 4 pixels 
and it is changing and when I join together frames from other computers I get 
(no reflection) lines on total frame.  I think it can be issue with water 
shader or... can you repaire it ? 

Ferry

Original issue reported on code.google.com by [email protected] on 7 Apr 2013 at 1:29

@GoogleCodeExporter
Copy link
Author

osg::Texture2D* OceanScene::createTexture2D( const osg::Vec2s& size, GLint 
format )
{
    osg::Texture2D* texture = new osg::Texture2D;
    texture->setTextureSize(size.x(), size.y());
    texture->setInternalFormat(format);
    texture->setFilter(osg::Texture2D::MIN_FILTER,osg::Texture2D::LINEAR);
    texture->setFilter(osg::Texture2D::MAG_FILTER,osg::Texture2D::LINEAR);
    //texture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP );
    //texture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP );
    texture->setWrap(osg::Texture::WRAP_S, osg::Texture::CLAMP_TO_EDGE );
    texture->setWrap(osg::Texture::WRAP_T, osg::Texture::CLAMP_TO_EDGE );
    texture->setDataVariance(osg::Object::DYNAMIC);
    return texture;
}   

repair it 

Original comment by [email protected] on 7 Apr 2013 at 1:56

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant