Hi

Is it possible to add some new functions to soya?

For example If I want to change a texture of a Shape in runtime I have to do a trick that dunk told me in IRC,

     material = soya.Material()
     material.texture = soya.Image.get("green.png")
               for c in self.model_basic.children:
                       if type(c) is not soya.Face:
                               continue
                       else:
                               c.material = material

Can be possible to add it to soya.Volume? so we can do soya.Volume.texture= "green.png"

I think that will be much useful to have it already into soya.

Another one is facing, I liked to know where is facing to a shape, a shape-volume, is it possible? It must be relative to root CoordSyst not to itself, as I know that you can use the

soya.forward = soya.Vector(self, 0,0,-1)

but how can I translate that to root Coord? And if its possible can it be added to soya.Volume so we can get
self.orientation = soya.Volume.facing_to

I get as dunk told me, that using obejct.matrix I get the matrix of position, but I get lost there..

Im doing very basic things with soya, but at the moment this two can be usefull for a lot of ppl, as I can think a lot of uses for these.

Also as I was saying the other day in irc, I think that rotate_axe is not working fine, so I think that a "bugzilla-like" thing will be really usefull so I can commit bugs, or petitions for additions to soya main classes there, maybe you prefer the mailing list for those porpouses, any ideas about this?

Thanks


Reply via email to