ai_build_anim_channel   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/assimp.xtm

Implementation

(bind-func ai_build_anim_channel
  (lambda (node:aiNodeAnim* scene:aiScene* root:XTMModel*)
    (println "...animNode:>" (tref-ptr node 0) "keyframes:" (tref node 1))
    (let ((aires (ai_find_matching_node (tref scene 1) (tref-ptr node 0)))
          (xtmres (xtm_find_bone root (toString (tref-ptr node 0)))))
      (if (or (null? aires) (null? xtmres))
          (begin (println ".....bone:> No bone found! " (tref-ptr node 0)) void)
          (let ((aiparent (tref aires 2))
                (parent:XTMBone* null)
                (mat:float* (cast (tref-ptr aires 1)))
                (newmat:float* (halloc 16)))
            (memcpy (cast newmat i8*) (cast mat i8*) (* 4 16))
            (tset! xtmres 2 newmat) ;; set transform matrix for xtmbone
            (tset! xtmres 4 (tref aires 3)) ;; set num children for xtmbone
            (xtm_bone_add_children xtmres aires root) ;; add children
            (if (not (null? aiparent))
                (set! parent (xtm_find_bone root (toString (tref-ptr aiparent 0)))))
            (tset! xtmres 6 parent)
            (println ".....bone:>" (tref-ptr aires 0) "parent:"
                     (if (null? parent) (Str "<null>") (tref parent 0))
                     "children:" (tref aires 3) "ptr:" (cast aires i8*))
            void)))))


Back to Index

Similar Entries

  • AudioBuffer_from_aiff    xtlang
  • LR_to_MS_2_channels    xtlang
  • LR_to_MS_3_channels    xtlang
  • MATCH-FAILED    scheme
  • MS_to_LR_2_channels    xtlang
  • MS_to_LR_3_channels    xtlang
  • Pm_Event_Channel    xtlang
  • Pm_Message_Channel    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _glib_main_loop_call    xtlang
  • _gst_main_loop_call    xtlang
  • aiGetMaterialFloat    xtlang
  • aiProcess_CalcTangentSpace    scheme
  • aiProcess_Debone    scheme
  • aiProcess_FindDegenerates    scheme
  • aiProcess_FindInstances    scheme
  • aiProcess_FindInvalidData    scheme
  • aiProcess_FixInfacingNormals    scheme
  • aiProcess_FlipUVs    scheme
  • aiProcess_FlipWindingOrder    scheme
  • aiProcess_GenNormals    scheme
  • aiProcess_GenSmoothNormals    scheme
  • aiProcess_GenUVCoords    scheme
  • aiProcess_ImproveCacheLocality    scheme
  • aiProcess_JoinIdenticalVertices    scheme
  • aiProcess_LimitBoneWeights    scheme
  • aiProcess_MakeLeftHanded    scheme
  • aiProcess_OptimizeGraph    scheme
  • aiProcess_OptimizeMeshes    scheme
  • aiProcess_PreTransformVertices    scheme
  • aiProcess_RemoveComponent    scheme
  • aiProcess_RemoveRedundantMaterials    scheme
  • aiProcess_SortByPType    scheme
  • aiProcess_SplitByBoneCount    scheme
  • aiProcess_SplitLargeMeshes    scheme
  • aiProcess_TransformUVCoords    scheme
  • aiProcess_Triangulate    scheme
  • aiProcess_ValidateDataStructure    scheme
  • ai_build_animation    xtlang
  • ai_build_mesh    xtlang
  • ai_build_mesh_vbo    xtlang
  • ai_build_node    xtlang
  • ai_build_scene    xtlang
  • ai_color4_to_float4    xtlang
  • ai_convert    xtlang
  • ai_find_matching_node    xtlang
  • ai_load_ogl_texture    xtlang
  • ai_load_ogl_texture_from_buffer    xtlang
  • ai_matrix4_to_float    xtlang
  • ai_print_export_formats    xtlang
  • aiff_validate    xtlang
  • audiofile_aiff_read_samples    xtlang
  • available_midi_events    xtlang
  • await_futures    xtlang
  • build_pyramid    xtlang
  • cairo-animation    scheme
  • cairo_draw_image    xtlang
  • cerberus_main_cc    xtlang
  • clock_scheduler_main_callback    xtlang
  • constrain-generic    scheme
  • constrain-genericfunc    macro
  • cpBBContainsBB    xtlang
  • cpBBContainsVect    xtlang
  • decompose_domain    xtlang
  • get_main_frame    xtlang
  • get_midi_evt_channel    xtlang
  • ghttp_set_content_type_plaintext    xtlang
  • glfw_print_primary_monitor_details    xtlang
  • glfw_print_video_mode_details    xtlang
  • glib-main-loop    scheme
  • glib-main-loop    scheme
  • glib_main_loop    xtlang
  • grains    scheme
  • gst-main-loop    scheme
  • gui_set_monokai_color_theme    xtlang
  • gui_set_monokai_opensans_theme    xtlang
  • impc:aot:insert-closure-binding-details    scheme
  • impc:aot:insert-ext-globalvar-binding-details    scheme
  • impc:aot:insert-gl-proc-binding-details    scheme
  • impc:aot:insert-globalvar-binding-details    scheme
  • impc:aot:insert-load-dylib-details    scheme
  • impc:aot:insert-namedtype-binding-details    scheme
  • impc:aot:insert-nativefunc-binding-details    scheme
  • impc:aot:insert-polyfunc-binding-details    scheme
  • impc:aot:insert-static-binding-details    scheme
  • impc:aot:insert-typealias-binding-details    scheme
  • impc:aot:insert-xtmacro-binding-details    scheme
  • impc:aot:print-compilation-details    scheme
  • impc:compiler:print-bind-func-details-to-log    scheme
  • impc:compiler:print-binding-details-to-log    scheme
  • impc:compiler:print-compiler-failed-error    scheme
  • impc:compiler:print-constraint-error    scheme
  • impc:compiler:print-dylib-loading-details-to-log    scheme
  • impc:compiler:print-lib-binding-details-to-log    scheme
  • impc:compiler:print-polying-details-to-log    scheme
  • impc:ti:check-bang-against-reified    scheme
  • impc:ti:constrain-genericfunc    scheme
  • impc:ti:generic-type-details    scheme
  • impc:ti:variable-substitution-pairs    scheme
  • last-pair    scheme
  • list-tail    scheme
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • main    xtlang
  • mainLoop    xtlang
  • mainLoop    xtlang
  • main_cc    xtlang
  • main_gain    xtlang
  • main_reverb    xtlang
  • match-pair    scheme
  • match_aiString    xtlang
  • nth_tail    xtlang
  • nth_tailr    xtlang
  • ocv_channels    xtlang
  • ocv_waitKey    xtlang
  • p:pair    scheme
  • pairs_test    xtlang
  • run_main_event_loop    xtlang
  • set_cairo_source_with_colour    xtlang
  • set_dl_main    xtlang
  • sf_channels    xtlang
  • sf_channels_from_file    xtlang
  • sf_set_channels    xtlang
  • spectrum-animation    scheme
  • sys:wait    scheme
  • tail    scheme
  • xtm_build_mesh_vbo    xtlang
  • xtm_destroy_paint    xtlang
  • xtm_paint_set_color    xtlang
  • xtm_paint_set_fill    xtlang
  • xtm_paint_set_pattern    xtlang
  • xtm_paint_set_stroke    xtlang
  • zip_array_ptr_constraint    scheme
  • zip_array_val_constraint    scheme