Ofcourse it will not render textures based on the provided shader :/ (had to read the code more carefuly). All works now after triggering the GLSL shaders. Also, got rid of the Warning: Material not supported (thanks to Raymond !).
For new readers having this "default" problems: - remove any Texture2D and TexEnv state from the statesets after you read the model (with a visitor) - change the fragment shader to read from textures. Nick On Mon, Apr 15, 2013 at 8:54 AM, Trajce Nikolov NICK < trajce.nikolov.n...@gmail.com> wrote: > Hi Jan, > > no textures on the cube in android. I can see it on my pc. :/ ... Any clue? > > Nick > > > On Fri, Apr 12, 2013 at 4:47 PM, Trajce Nikolov NICK < > trajce.nikolov.n...@gmail.com> wrote: > >> Here is the model I tried to load. Just for documenting >> >> Nick >> >> >> On Fri, Apr 12, 2013 at 4:40 PM, Trajce Nikolov NICK < >> trajce.nikolov.n...@gmail.com> wrote: >> >>> Thanks Jan. >>> >>> Nick >>> >>> >>> On Fri, Apr 12, 2013 at 4:34 PM, Jan Ciger <jan.ci...@gmail.com> wrote: >>> >>>> >>>> >>>> On Fri, Apr 12, 2013 at 4:29 PM, Trajce Nikolov NICK < >>>> trajce.nikolov.n...@gmail.com> wrote: >>>> >>>>> The progress. The GLES1 sample does not render the model at all (it is >>>>> loaded with warning: Material::apply(State&) - not supported .. Maybe it >>>>> is >>>>> because of the model. Anyone have some simple textured model handy to >>>>> share? >>>>> >>>> >>>> Try this one: https://dl.dropboxusercontent.com/u/6822332/cube.ive >>>> >>>> It is a simple cube with the axes marked on the sides. >>>> >>>> The error about the Material::apply() .. not supported means that the >>>> model is using some feature that doesn't work/isn't supported on >>>> Android/your OpenGL ES version. There are some significant differences >>>> between OpenGL ES and normal OpenGL - e.g. single vertex array can have >>>> only up to 64k triangles, quads are not supported, non-power of two >>>> textures are likely not supported on most devices, etc. >>>> >>>> Jan >>>> >>>> _______________________________________________ >>>> osg-users mailing list >>>> osg-users@lists.openscenegraph.org >>>> >>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>>> >>>> >>> >>> >>> -- >>> trajce nikolov nick >>> >> >> >> >> -- >> trajce nikolov nick >> > > > > -- > trajce nikolov nick > -- trajce nikolov nick
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org