> 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"
Maybe we should create a MaterialSwitcherVolume which behaves like a
Volume, but has a dictionary for replacing materials. e.g. {
old_material : new_material } ?
> 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?
I think you can do :
forward = soya.Vector(self, 0,0,-1)
forward.convert_to(self.get_root())
> And if its possible can it
> be added to soya.Volume so we can get
> self.orientation = soya.Volume.facing_to
obj2.look_at(soya.Vector(obj1, 0,0,-1))
> 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?
I've activated the bugtracker for Soya on Gna!
=> http://gna.org/bugs/?group=soya
Jiba