This article shows you how to render skeletal animations in the NVISIONXR engine.
in the NVISIONXR engine, the format of the animation model is. Mesh, the material map format is. Material, and the bone format is. Skeleton. (Specific Referencethe NVISIONXR engine Basic introduction " )
in our NVISIONXR engine, we built a rabbit animation, but we are consolidating its resources into zip. The NVISIONXR engine supports directly reading and loading the resource files in the render zip. There are two advantages to this approach:
1 . can manage resources well
2, save space, can save 80%
all the resources you add yourselfneed to be added before the scene loads after the Director class instance session,we areNVISIONCONTROLLER.M The path to the pre-loaded zip file.
Code:
Load Bone Animation resource NSString *path = [[NSBundle mainbundle] pathforresource:@ "Userres.bundle/rabbit.zip" oftype:nil]; [[Nvappdirector Sharednvappdirector] Setresourcespath:path Type:zip];
Add a header file #import "NVSkeletonWidget.h" in MYFIRSTSCENE.M
in the OnCreate method, instance session skeletal animation, such as:
Code:
// Loading Skeleton animation nvskeletonwidget * mrabbit = [[nvskeletonwidget alloc] initwithsceneplay:self widgetname:@ "Rabbit"]; // Add model Shapes [mrabbit setshape:@ "Rabbit_lowpoly_rigunity_final.mesh"]; // Set Position [mrabbit setposition:nvposition (0, 5, 0)]; // Set Zoom [ Mrabbit setscale:nvposition (0.015, 0.015, 0.015)]; // Add animation name [mrabbit addanimation:@ "Basefbxfileanim"]; // Add to Scene [self addWidget:mRabbit];
Run the program effect as follows:  
Nvisionxr_ios Tutorial Nine-render a skeletal animation