{"id":379,"date":"2018-10-09T22:41:35","date_gmt":"2018-10-09T22:41:35","guid":{"rendered":"https:\/\/www.xlsoft.com\/doc\/kudan\/?page_id=379"},"modified":"2018-10-18T01:24:44","modified_gmt":"2018-10-18T01:24:44","slug":"rendering","status":"publish","type":"page","link":"https:\/\/www.xlsoft.com\/doc\/kudan\/rendering\/","title":{"rendered":"Rendering"},"content":{"rendered":"<p>Common questions about KudanAR&#8217;s custom rendering engine<\/p>\n<hr>\n<h2>Do I need to use Kudan&#8217;s rendering engine?<\/h2>\n<p>No. With KudanCV, you can interface our computer vision with any 3rd party rendering engine, including any custom engines you&#8217;ve made yourself. The AR SDKs, however, do come with their own rendering capabilities that cannot be decoupled.<\/p>\n<h2 class=\"header-scroll is-api-header\">What 3D model formats does the renderer support?<\/h2>\n<p>The renderer requires a custom lightweight format, known as\u00a0<code>.armodel<\/code>, for fast loading and increased performance on mobile devices. Kudan&#8217;s ARToolkit can convert\u00a0<code>.FBX<\/code>,\u00a0<code>.OBJ<\/code>\u00a0and\u00a0<code>.DAE<\/code>\u00a0model files to the\u00a0<code>.armodel<\/code>\u00a0format. For more information, see our\u00a0<a class=\"doc-link\" href=\"https:\/\/www.xlsoft.com\/doc\/kudan\/3d-models\/\" data-sidebar=\"3d-models\">3D Models<\/a>\u00a0page.<\/p>\n<h2>What 3D model features does the renderer support?<\/h2>\n<p>The renderer supports:<\/p>\n<ul>\n<li>Meshes<\/li>\n<li>Complex Scene Graphs (Nodes)<\/li>\n<li>Blend Shapes \/ Morph Targets<\/li>\n<li>Bones<\/li>\n<li>Animations<\/li>\n<\/ul>\n<p>For more information, see our\u00a0<a class=\"doc-link\" href=\"https:\/\/www.xlsoft.com\/doc\/kudan\/3d-models\/\" data-sidebar=\"3d-models\">3D Models<\/a>\u00a0page.<\/p>\n<h2>What properties are keyable in animations?<\/h2>\n<p>Node transformations, blend shape influences and node visibility are all keyable.<\/p>\n<h2>How many blend shapes can be active at once?<\/h2>\n<p>Currently, the renderer will morph between two different shapes, whether they are from separate channels or not. In-between shapes on a blend shape deformer are fine since only two contribute at once.<\/p>\n<h2>Is there a maximum polygon count?<\/h2>\n<p>We do not place a hard limit on the number of polygons a model can have. Our renderer is capable of rendering models with over 1 Million Triangles without much performance impact. Having said that, it is always better to have as few polygons on a model as possible when working with mobile applications.<\/p>\n<h2>What material types do you support?<\/h2>\n<p>Per-pixel lighting with fresnel reflections, occlusion and normal maps. We also provide custom AR-specific materials for use with object occlusion or for working with the camera texture.<\/p>\n<h2>Can I create my own Shaders?<\/h2>\n<p>We are looking at adding programmable shader support for a future release.<\/p>\n<h2>Can I use the camera texture deform without a marker?<\/h2>\n<p>Yes, the camera texture extractor will work no matter what is controlling the position, so it also works in ArbiTrack. Just position the target node as usual.<\/p>\n<h2>Can I load content from the web?<\/h2>\n<p>All content loaders such as the model importer, texture and video loaders can load from a full path name. Your downloader should download content to the app&#8217;s cache directory and pass the full path as appropriate.<\/p>\n<h2>Can I control the scenegraph from the web?<\/h2>\n<p>You would need to write your own importer for a format such as JSON\/XML that describes the scene and use the appropriate node creation API accordingly, but yes, this is possible.<\/p>\n<h2>Can I use the 3D format for 2D animations?<\/h2>\n<p>Yes, 2D animations are also supported by the renderer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Common questions about KudanAR&#8217;s custom rendering engine Do I need to use Kudan&#8217;s rendering engine? No. With KudanCV, you can interface our computer vision with any 3rd party rendering engine, including any custom engines you&#8217;ve made yourself. The AR SDKs, however, do come with their own rendering capabilities that cannot be decoupled. What 3D model &#8230; <a title=\"Rendering\" class=\"read-more\" href=\"https:\/\/www.xlsoft.com\/doc\/kudan\/rendering\/\">Read more<span class=\"screen-reader-text\">Rendering<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"bekko_page_header":""},"_links":{"self":[{"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/pages\/379"}],"collection":[{"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/comments?post=379"}],"version-history":[{"count":5,"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/pages\/379\/revisions"}],"predecessor-version":[{"id":1367,"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/pages\/379\/revisions\/1367"}],"wp:attachment":[{"href":"https:\/\/www.xlsoft.com\/doc\/kudan\/wp-json\/wp\/v2\/media?parent=379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}