HI Filipe,

On 24 October 2014 09:46, Filipe P <[email protected]> wrote:

> With your last post I remembered that the openGL textures must have 2x1 or
> 1x1 dimensions.
> So, I already fix it and now I don't have the warning that my texture is
> being scaled.
>

OpenGL and graphics hardware has supported non power of two texture for
many years, the OSG fully supports via the Texture setting I mentioned.  As
long as you don't need compatibility with old hardware it's fine to use non
power of two texture.



>
> Nevertheless, the render remains the same. The image is rendered partially
> in the bottom-left side.
>
> Could be the projection that is wrong?!
>
> As I mention, I setProjectionMatrixAsOrtho2D(0.0, traits->width, 0.0,
> traits->height) on the camera object.
>
> Must I have an transformation matrix for the viewer?
>
> Thanks in advance for any kind of help!
>

Frankly, it's rather hard to follow  the twists on turns of your problems,
there really are too many unknowns for us to guess what you do and no not
understand, or what you may or may not have done correctly or incorrectly.

I suggest that you need to learn more of the basics of OpenGL and computer
graphics.  There are plenty of resources only, and the OSG we have several
books.  You can't expect members of the OSG community to teach how to
program, you'll need to pitch in and learn stuff from the resources
available.

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

Reply via email to