we need two master cameras to controls the two different views in two different scene rendering dynamically.
but in flightgear viewer class only using. this is create one master camera no.of slave cameras. but i need CompositeViewer class. how to use CompositeViewer class in flightgear and how to render through CompositeViewer class.
Using OSG's CompositeViewer isn't currently supported by FG. But it's a long-standing feature request, and all core developers agree that this will eventually be needed and done in FG:
http://wiki.flightgear.org/Howto:Use_a_ ... siteViewerYou'll also find architectural details on how to proceed (make sure to search for "PagedLOD")
Please see the devel list archives for details:
http://www.mail-archive.com/search?q=co ... eforge.netIf you are interested in working on this, you are encouraged to use the developers mailing list or the issue tracker to get in touch with other developers.
Obviously, you will need to be able to build FG from source and you need to be familiar with OpenGL and OSG to make this work.
As you can see in the archives, the developer community is definitely interested in this feature.
Please do note however that all contributors are currently busy preparing the next release:
http://wiki.flightgear.org/Release_planSo, your chances of getting support are better after the release, i.e. 4 weeks from now.
In the meantime, you could read all CompositeViewer/FG related discussions (wiki/devel list) and consult back with with osg user's mailing list for additional info.
Spare time permitting, I could be convinced to help a little out with this - however, I would ask you to first ensure that you can build FG from source, and that you use public gitorious topic branches so that we can easily track your work.
Finally, all contributors and core developers are unlikely to be interested in working with the 1.9.0 code base, so you'll have to base your work on FG 2.10.0+ instead if you'd like to see us contributing to this.
Assuming that you are serious about working on this, you may also want to read up a little more about the project's "development model", see the developer portal:
http://wiki.flightgear.org/Portal:Developerviewtopic.php?f=42&t=15267http://wiki.flightgear.org/Howto:Start_core_developmenthttp://wiki.flightgear.org/Programming_resourcesFeel free to contribute to the wiki to document your project.