Re: [Soya-user] suggestion about raypicking

2006-07-23 Thread Jiba
> In terrain.pyx you save _category_bitfield in __getcstate__ but you > don't restor it in __setcstate__. I guess you wanted to make here the > same modification than in coordsyst.pyx. Actually i restore it at the end (line 1668). However, i forgot to move the equivalent line in _getcstate! That'

Re: [Soya-user] suggestion about raypicking

2006-07-22 Thread souvarine
Jiba wrote: > Well done and thank you! I've applied it to the SVN. > > I've just slightly modified the _setcstate(state) methods, so as they are > backward compatible. > > Jiba > In terrain.pyx you save _category_bitfield in __getcstate__ but you don't restor it in __setcstate__. I guess you w

Re: [Soya-user] suggestion about raypicking

2006-07-22 Thread Jiba
> Hope you will find it usefull ;) Well done and thank you! I've applied it to the SVN. I've just slightly modified the _setcstate(state) methods, so as they are backward compatible. Jiba ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.

Re: [Soya-user] suggestion about raypicking

2006-07-19 Thread souvarine
My rayicking category patch is aviable here http://aliasrobotique.org/~souvarine/raypicking_category_1.diff Took me quite a while to make it but, at least, I have learned a lot about soya's internals :) Here is how it work : Every object deriving from CoordSyst (world, body, terrain...) now have

Re: [Soya-user] suggestion about raypicking

2006-07-16 Thread Jiba
> I suggest to make a category bitfield system as in ODE. Every object > would have a 32 bit wide bitfield identifying witch categories it > belong. The world.RaypickContext method would have an optional parameter > telling witch categories it should care about. > > I also think it would be useful

Re: [Soya-user] suggestion about raypicking

2006-07-16 Thread EdB
> Why limit it to 32? This is Python, we have > long integers... it's an ode limit pgphgp3VT8gsD.pgp Description: PGP signature ___ Soya-user mailing list Soya-user@gna.org https://mail.gna.org/listinfo/soya-user

Re: [Soya-user] suggestion about raypicking

2006-07-15 Thread Greg Ewing
souvarine wrote: I suggest to make a category bitfield system as in ODE. Every object would have a 32 bit wide bitfield Why limit it to 32? This is Python, we have long integers... -- Greg ___ Soya-user mailing list Soya-user@gna.org https://mail.gn

[Soya-user] suggestion about raypicking

2006-07-15 Thread souvarine
I think the Soya CoordSyst solid property is rather complicated to use. I often need an object to be sometime solid and sometime non solid depending on what I want to test. For example my character must be non solid for the traveling camera to work, but it must be solid to allow some others objets