Extended Nodes -- cache misses in Inventor 2.1

Extended Nodes -- cache misses in Inventor 2.1

Post by Scott B. Peterso » Thu, 16 Jan 1997 04:00:00



Has anyone had problems with cache hits in porting from Inventor 2.0 to 2.1?

My cache was working in Inventor 2.0.  After my port to 2.1, every time I
change the camera, the cache containing one of my nodes is invalidated.  
Anyone have any suggestions, or places that I can look?

Note: I'm certain that my scene graph is set up properly, because it
cached in Inventor 2.0.

Thanks,
Scott
                 /--++--\
              -/     \\  \--
            /        ||     \
-----------/    _____||____ |----------------------------------
          /    /__----.--__\ \   "First, I was but the learner,
          |   /{     >=<    } \    now I am the master."
         /    | .---/ | \---   |    --D.V.
---------|    |\  /---O --\  / \ ------------------------------
         |    /  |  /||\   |    |        
         |   /    //||||\       |  http://phoenix.calpoly.edu/~speterso  
        /   / \   -------/|     \  
        -------|          |------

 
 
 

Extended Nodes -- cache misses in Inventor 2.1

Post by Paul S. Strau » Thu, 23 Jan 1997 04:00:00



|>
|> Has anyone had problems with cache hits in porting from Inventor 2.0 to 2.1?
|>
|> My cache was working in Inventor 2.0.  After my port to 2.1, every time I
|> change the camera, the cache containing one of my nodes is invalidated.  
|> Anyone have any suggestions, or places that I can look?
|>
|> Note: I'm certain that my scene graph is set up properly, because it
|> cached in Inventor 2.0.

As far as I can tell, the only nodes that depend on the camera are
LOD, Text2, and Environment (if fog is enabled). If you are using any
of these, caches above them may be invalidated whenever you change the
camera.

The reason for the change may be that the auto-caching algorithm
changed in 2.1, although the changes were designed to improve caching
performance.

----


 
 
 

1. Problem with derived node kit in OI 2.1

In OpenInventor 2.1, a derived nodekit can't access it's own
private parts.  This did not seem to be a problem in 2.0.1

Here's a small test program:

//------------------------------------------
#include <Inventor/nodekits/SoBaseKit.h>
#include <Inventor/nodekits/SoSubKit.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoTransform.h>
#include <Inventor/Xt/SoXt.h>
#include <Inventor/SbBasic.h>
#include <stdio.h>

//----------
   class myKit : public SoBaseKit {

      SO_KIT_HEADER (myKit) ;
      SO_KIT_CATALOG_ENTRY_HEADER (topSeparator) ;

      public :

         static void initClass ()
         { SO_KIT_INIT_CLASS (myKit, SoBaseKit, "BaseKit") ; }

         myKit () ;

      private :

         ~myKit ()
         {}
   } ;

//---------
   SO_KIT_SOURCE (myKit) ;

//---------
   myKit::myKit ()
   {
      SO_KIT_CONSTRUCTOR (myKit) ;
      SO_KIT_ADD_CATALOG_ENTRY (
         topSeparator, SoSeparator, FALSE, this, , FALSE) ;
      SO_KIT_INIT_INSTANCE () ;

      SoSeparator *separator
         = (SoSeparator *) getPart ("topSeparator", TRUE) ;
      if (separator)
         separator->addChild (new SoTransform) ;
      else
         fprintf (stderr, "No access to my own private parts!\n") ;
   }

//----------
   void main (int, char **argv)
   {
      Widget widget = SoXt::init (argv[0]) ;
      myKit::initClass () ;
      myKit  *kit   = new myKit ;
   }

% setenv LD_LIBRARY_PATH /usr/lib/InventorDebug
% DCC -o testkit testkit.c++ -DIV_STRICT -lInventorXt
% testkit

Inventor error in SoNodekitParts::partIsPublicCheck(): can't return the part
topSeparator because it is not a public node in the nodekit's structure
returning NULL instead
No access to my own private parts!

--
Ted Hall                                       ^
Department of Architecture                    '-`
Chinese University of Hong Kong             '- - -`
Sha Tin, New Territories                 '- - - - - -`
HONG KONG                           \'- - - - - - - - - -`/

2. Begging Animator Needs Help

3. Inventor 2.1 and texture

4. lightwave lscript/programming tutorials..

5. Open Inventor 2.1 is Released!

6. FAQ?

7. image formats in SGI Open Inventor 2.1 Beta

8. New tool to create Movie Previews for your clients...

9. open inventor 2.1 2.6 3.0 coin source tgs opensource SoQt

10. Open Inventor 2.1 books ?

11. Motif 2.0 and Open Inventor 2.1

12. : Inventor 2.1 Rendering Bug

13. HELP: Inventor 2.1 Rendering BUG?