Thanks for your hint, after I was looking into it again - it should be
of course:
texture = Clutter.Texture()
texture.set_from_file("texture.png")
to make the statement:
model.set_material(texture.get_cogl_material())
work. Works perfectly now with texture.
On Fri, 2011-02-25 at 12:01 +0100, Tomeu Vizoso wrote:
> Hi,
>
> there are two separate issues that cause the model not to be displayed:
>
> On Fri, Feb 25, 2011 at 11:20, tomw <[email protected]> wrote:
> > model = Mash.Model()
> > model.new_from_file(0,"TheMonkey.ply")
>
> This needs to be:
>
> model = Mash.Model.new_from_file(0,"example/TheMonkey.ply")
>
> otherwise you are instantiating two models and using the one that
> hasn't loaded the .ply file.
>
> PyGObject should have raised an exception when you tried to call a
> constructor on an instance, would be great if you could file a bug,
> ideally with a test case (or even a fix).
>
> > model.set_material(texture.get_cogl_material())
>
> For some reason, I have to comment out this line, no idea why.
>
> HTH,
>
> Tomeu
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list