Skip to Content

How to create and view .vds files in UI5 project ?

Hello Experts,

I am playing with "sap.ui.vk" library for rendering 3D objects. For this, I have used the Viewport, pointing to a vds file used in the "samples". But I am able to view the viewport without the 3D object. Following is my webide project structure

webapp->model->boxTestModel.vds

Following is the view

<mvc:View controllerName="vkprac.controller.View1" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc="sap.ui.core.mvc" displayBlock="true"
xmlns="sap.m" xmlns:vk="sap.ui.vk">
<App>
<pages>
<Page title="{i18n>title}">
<content>
<vk:Viewport contentConnector="first-connector" height="100%" viewStateManager="vsmA" width="100%"/>
<!--<vk:Viewer id="viewer">
<vk:contentResources>
<vk:ContentResource src="model/boxTestModel.vds" sourceType="vds"/>
</vk:contentResources>
</vk:Viewer>-->
</content>
</Page>
</pages>
<dependents>
<vk:ContentConnector id="first-connector">
<vk:contentResources>
<vk:ContentResource src="model/boxTestModel.vds" sourceType="vds"/>
</vk:contentResources>
<vk:viewStateManagers>
<vk:ViewStateManager id="vsmA"/>
</vk:viewStateManagers>
</vk:ContentConnector>
</dependents>
</App>
</mvc:View>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 10 at 10:02 AM

    Hello Akshay,

    Which SAPUI5 version and patch level are you using? Is the issue occurring in a specific browser version? It would be useful to know if there is any error in the console log of your browser.

    Best regards,

    Désirée

    Add comment
    10|10000 characters needed characters exceeded