On Wed, 2002-02-27 at 15:06, John Richardson wrote:
> Hello,
>
> Does OpenVRML 0.11.x allow for adding/modifying fields?
Not truly generically, but for the most part yes.
This will be improving dramatically.
> I want to run a C++
> or Java or FORTRAN simulation and then based upon the results of some
> algorithm executing in the simulation direct OpenVRML to change a nodes
> position, add or subtract a node and change the value of a nodes field.
Probably doable.
> I presume that the easiest way would be to subclass ViewerOpenGL and then
> modify the scene graph. Sort of like a direct hook to OpenVRML rather than
> through something like the EAI.
Yes.
> So, I also suppose that I should ask if OpenVRML 0.11.x supports the EAI?
No.
> What about the Script node?
We're pretty good in that department. There are holes: in JavaScript,
VrmlMatrix is missing and directOutput isn't properly supported. Tom
Flynn has been working on Java support for our next release.
> I suppose that there would have to be some method getting the target node
> for modification. Any ideas?
You can get the root nodes from VrmlScene and basically walk the scene
graph until you find what you need.
--
Braden McDaniel e-mail: <br...@en...>
<http://endoframe.com> Jabber: <br...@ja...>
|