HI Charles,

I am extremely pushed for time so don't have time to walk users
through all there problems, I have time to point you in the right
direction, but I'm afraid you'll need to walk the route.  The
ReadFileCallback itself has an default implementation, this will show
you how you read the actual data using the registry.  Running a
visitor is something that is illustrated in plenty of places in the
OSG just do a search in the examples and src/osgUtil.  As for the
TextureVisitor, there is example of its use in
src/osgUtil/Optimizer.cpp.

A general note, the OSG itself is packed full of examples of how to do
things, searching the headers and the .cpp's will give you a huge
amount of insight, yes it takes a bit of effort on your part, but
you'll learn a lot in the process, this will help you much more in
long run than needing something to write your code for you.

Robert.

On Dec 23, 2007 4:41 AM, Charles Han <[EMAIL PROTECTED]> wrote:
>
>
> Hey Robert,
>
> Thanks for your email.
> I understand your idea but when getting down to implementation level I find
> a couple of problems. Excuse me I am a freshman in OSG.
>
> 1) When creating a Registry::ReadFileCallback, how do I catch the
> readNodeFile call? did you mean readNode method because I looked down to the
> source code and thatz the only method reads node. So I guess I need to apply
> optimizer in this method.
>
> 2) When applying optimizer, osgUtil::Optimizer::TextureVisitor can not be
> instantiated and I could not find any settings related to NPOT either.
>
> I appreciate if you could please give me more hints on implementation.
>
> Thanks
>
> Charles
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to