Search Results

Search found 2 results on 1 pages for 'ojw'.

Page 1/1 | 1 

  • The need to reduce mesh count

    - by OJW
    In Panda3d, I load a model and place 10000 references to it in the scene-graph. It runs at (say) 2Hz. I load a 3d model containing 10000 copies of that exact same object, and it runs at (say) 60Hz. As does using the flattenStrong() command which is effectively the same thing but at runtime. So the question is: is this behaviour a peculiarity of Panda3d, or is it a fundamental law which applies to all games engines?

    Read the article

  • Constructor initialising an array of subobjects?

    - by ojw
    Say I have several objects within a class, each of which needs constructing with a different value. I can write something like this: class b { public: b(int num) { // 1 for a.b1, and 2 for a.b2 } }; class a { public: b b1; b b2; a() : b1(1), b2(2) { } }; However, is it possible to do the same thing if those multiple objects are stored in an array? My first attempt at it doesn't compile: class a { public: b bb[2]; a() : bb[0](1), bb[1](2) { } };

    Read the article

1