Skip to Content
0

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

Apr 10 at 06:36 AM

66

avatar image

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>

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Desiree Matas
Apr 10 at 10:02 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hello Desiree,

It's SAPUI5 v1.52.8. Tried it in Chrome, Mozilla, IE11 but no luck. Here is the screen shot of the console.

3d.png (57.5 kB)
0