It worked like a charm. Now i have the repository configured so i will be updated :)
Bradley Vender wrote:
Bradley Vender wrote:
Alan Hudson wrote:
dani rodriguez wrote:
this is fixed in CVS. It was an issue with when a node is realized. I'll have a better idea when next release of Xj3D will be next week.Im trying this piece of code:
SAINode shape=(SAINode)x3dScene.createNode("Shape"); SFNode nodeGeometry=(SFNode)shape.getField("geometry"); SAINode node=(SAINode)x3dScene.createNode("Box"); SFVec3f size=(SFVec3f)node.getField("size"); size.setValue(new float[]{3,3,3});
but Box size remains 2,2,2 (default value), i noticed that:
size.isWritable() returns false, so i should be able to set that size on Box creation, the question is How?
and ... Can i create a node from a String containing a piece of x3d code, and then add that to my current loaded scene?
Actually, if you are using the external SAI, the bug is that isReadable() and isWritable() are only checking the field type and not the node realization state. Entered as bug #41 because I want to read over the specification again to see if there's anything else I'm overlooking.
--Brad
After posting, it occurs to me that slightly more might need to be changed than I originally thought. At the moment, the code for handling setValue call in the external SAI code doesn't do any checking of writability on its own, presuming that the receiving node will enforce the field changes correctly. Mostly this is because the code was converted over from EAI field handling code. I want to add sensible access checking but I also want to make sure that I get the boundary conditions correctly handled.
--Brad
------------------------------------------------------------------------- for list subscription/unsubscription, go to http://www.web3d.org/cgi-bin/public_list_signup/lwgate/listsavail.html