Hi Daniel,

I just found some time to look at your problem, sorry for the delay.

On Sun, 2004-09-05 at 18:27, Daniel Walz wrote:
> Hi all,
> 
> I got a problem regarding the VRML-reader.
> As some might know I try at the moment to add audio functionality
> to the openSG, because I want to exploit its scene-facilities
> regarding VR and (much) later the geometry for reflection and
> occlusion rendering.
> 
> For the moment I need to have the AudioClip and Sound nodes
> from the wrl-files read and creating the nodes according to it.
> I extended the vrmlreader classes
> OSGVRMLNodeDescs.cpp,
> OSGVRMLNodeDescs.h and
> OSGVRMLNodeFactory.inl
> 
> But the problem is now, that the Sound Node has a pointer to
> an AudioClip, but in the method
> void VRMLSoundDesc::getFieldAndDesc(  FieldContainerPtr   pFC,
>     const Char8             *szFieldname,
>     Field                  *&pField,
>     const FieldDescription *&pDesc)
> 
> i can't return the AudioClipPtr (because it is no Field descendent)
> how can I handle this properly?
> is it possible to include this into openSG as soon as it works?

Sure, the ContribLib is waiting for stuff like this. ;)


On Mon, 2004-09-06 at 08:59, [EMAIL PROTECTED] wrote: 
> Hello again,
> 
> I just placed the files to:
> http://www.cs.uni-magdeburg.de/~dwalz/files/AudioFunctions/
> a README file is included
> 
> To get the Field I looked at the code at VRMLPixelTextureDesc, but 
> there is some code in OSGImageFields.h, which isn't automatically
> generated, at least not at my class. What have I to do to get this
> field in the fcd ?

That's controlled by the pointerfieldtypes="..." variable. By default
it's "none", you can set it to "single", "multi" or "both", to generate
SFAudioClipPtr, MFAudioClipPtr or both. You need to rerun fcdEdit to
create the OSGAudioClipFields.h file.

> or if I have to put it by hand, how can I avoid to lose it at
> recreation
> of the Fields (as written in the comment)?

See above.

Using fcdEdit should also get rid of the non-exported symbols for
Windows.

Hope it helps

        Dirk




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to