[Source] interpolators not working from inside prototype under Xj3D [resent]

Alan Hudson giles at yumetech.com
Fri Apr 17 09:02:30 PDT 2009


Don Brutzman wrote:
> Don Brutzman wrote:
>> have isolated a problem with interpolators not working from inside a
>> prototype under Xj3D.  test example attached.
>> [...]
> 
> please note that this specially prepared example is as simple as possible
> to demonstrate the bug.  This is a showstopper for several of our scenes
> used in multiple projects.

Understood.  We make the source available so that everyone involved with 
the project has the source available to fix issues critical to them.
> 
>> [attempted to post to Xj3D bugzilla, but it crashed.]
> 
> bugzilla now appears to be working, thanks for fixing it.
> 
> posted as http://bugzilla.xj3d.org/show_bug.cgi?id=579
>

We don't have time to look into this bug right now.  If someone would 
like to look into debugging the issue this is where I'd start.  The most 
common reason proto's don't work is the copy constructor is not copying 
all field data.

---

Likely reason a node doesn't work under a proto when it works outside is 
the copy constructor.  Take a look at BasePositionInterpolator line 158

     protected BasePositionInterpolator(VRMLNodeType node) {

This is where the node is created from another node.  Likely the key or 
keyValue fields have not been intialized correctly.  Though a spot 
inspection shows they are in this class and in BaseInterpolatorNode.

Next I'd check rebuildInterpolator to see if it added the right keys to 
the interpolator.  If it got that far then my guess is not correct as to 
the problem.

-- 
Alan Hudson

President Yumetech, Inc.                               www.yumetech.com
President Web3D Consortium                             www.web3d.org
206 340 8900 ext 111

Open Source CAN be free, as in "free puppy"



More information about the Source mailing list