Re: Cogl materials, pipelines etc.



Hi,

I guess you might want to ask these questions on the Cogl mailing list :

http://lists.freedesktop.org/mailman/listinfo/cogl

On Fri, 2014-01-03 at 23:04 +0100, Elias Bakken wrote:
Hi!
I've been looking at integrating a 3D model in a Clutter app lately
using Python, and I've been having trouble setting the material of a
model. I can import a model using Mash but I can not make a material
using the Cogl.Material() method (I get  MemoryError). 


Looking at the Material reference for Cogl, the functions seem to be
deprecated and replaced by the Pipeline API, which is defined in the
experimental API and explicitly undefined (-U) in the introspection
section of the Makefile for Cogl. This has been discussed in a long
thread from 2012 thread on the Cogl mailing list:
http://lists.freedesktop.org/archives/cogl/2012-April/000094.html

I've been looking at using Cogl from gjs and by that I mean the new
experimental API.
There is a branch to generate introspection data for the new APIs :

http://lists.freedesktop.org/archives/cogl/2013-December/001494.html

Though it relies on relies on fundamental objects in your binding layer.
That doesn't exist current in gjs :

https://bugzilla.gnome.org/show_bug.cgi?id=621716

You might need the same support in python, I have no idea whether that's
already working.



So what is the best option for getting some basic material working?
Should I try to fix the dated Material functions or is it better to
compile the introspection-next branch? 

Just give a try to the introspection branch. If non of the new APIs show
up in the bindings, then the easiest solution is to fix the Material
functions.



I realize that this post might be better suited for the Cogl list, but
it is perhaps mostly the same people? : | 


-- 
Kind regards, 
-Elias
_______________________________________________
clutter-list mailing list
clutter-list gnome org
https://mail.gnome.org/mailman/listinfo/clutter-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]