@@ -18,7 +18,7 @@ void ofApp::setup(){
18
18
gui.add (cubeMapExposure.set (" CubeMapExposure" , 0.25 , 0.0 , 1.0 ));
19
19
gui.add (mBDrawCubeMap .set (" DrawCubeMap" , false ));
20
20
21
- ofx::assimp ::ImportSettings tsettings;
21
+ ofxAssimp ::ImportSettings tsettings;
22
22
tsettings.filePath = " ofLogoHollow.fbx" ;
23
23
// we don't have any animations in this model
24
24
tsettings.importAnimations = false ;
@@ -56,12 +56,12 @@ void ofApp::setup(){
56
56
tsettings.importAnimations = true ;
57
57
tsettings.excludeNodesContainingStrings = {" _Goal" };
58
58
tsettings.convertToLeftHanded = false ;
59
- srcFoxModel = make_shared<ofx::assimp::Model >();
60
- if ( srcFoxModel ->load (tsettings) ) {
59
+ srcFoxScene = make_shared<ofxAssimp::Scene >();
60
+ if ( srcFoxScene ->load (tsettings) ) {
61
61
int numFoxes = 16 ;
62
62
for ( int i = 0 ; i < numFoxes; i++ ) {
63
- auto fox = make_shared<ofx::assimp::Model >();
64
- if ( fox->setup (srcFoxModel ->getSrcScene ())) {
63
+ auto fox = make_shared<ofxAssimp::Scene >();
64
+ if ( fox->setup (srcFoxScene ->getSrcScene ())) {
65
65
fox->addAnimation ( 0 , " idle" , 2 , 300 , OF_LOOP_NORMAL );
66
66
fox->addAnimation ( 0 , " idleBark" , 310 , 350 );
67
67
fox->addAnimation ( 0 , " jump" , 852 , 890 );
@@ -173,7 +173,7 @@ void ofApp::update(){
173
173
fox->setPosition ( fx-80.0 , 20.0 , 320 .0f + sinf (glm::pi <float >() * fpct) * 100 .0f );
174
174
}
175
175
176
- auto wizardLeftHand = wizardModel.getNodeAsType <ofx::assimp ::Bone>(" *:hand right" );
176
+ auto wizardLeftHand = wizardModel.getNodeAsType <ofxAssimp ::Bone>(" *:hand right" );
177
177
if (wizardLeftHand) {
178
178
auto lpos = wizardLeftHand->getGlobalOrientation () * wizardHandOffset.get ();
179
179
light.setPosition (wizardLeftHand->getGlobalPosition ()+lpos);
0 commit comments