|
From: -oli- <ol...@fr...> - 2002-04-10 15:16:29
|
Hi, all! To integrate OpenAL in OpenVMRL (see my former mails) I need answers to the following issues. Btw - I'm using the "normal" cvs-version (not the rearchitecture-branch). (1) How can I get the coordinates of the actual ViewPoint, i.e. including the user navigation transformations, in the VRML-world coordinate system (_not_ the OpenGL coordinate system)? I have found some code concerning this in VrmlScene.render(). But how can I get the position out of the modelview-matrices used here? After a MV.getTransform(pos,...) the values in pos don't change even if I turn the scene around the viewer (or the viewer around the scene, which probably is more correctly). I also need some information (e.g. view-up-vector) about the ViewPoint's orientation. (2) How can I get the coordinates of a Sound node in the VRML-world coordinate system? It seems to have something to do with the rc.getMatrix() method, but how do I get the position out of the matrix? Can I multiply the matrix with the position field of the Sound node? Thanks for answers, hints are welcome! -oli- (Oliver Baum) |