[Fiware-fabulous-coaching] 3D-UI-XML3D Generic Enabler Support needed

Witek Kosowski witold.kosowski at webwerx.pl
Mon May 11 15:49:15 CEST 2015


Hi,

I would like to implement a 3D viewer in our FABulous project and I have
decided on the 3D-UI-XML3D GE. There are couple of questions I would need
anserwed in order to implement the GE with the possibly best results fot
the project:


   1. Is it possible to get a detailed specification of the xml3d-json
   format? Since I couldn't find any converter capable of creating the
   xml3d-json directly from an stl file, I'm going to have to create it myself
   based on the data read from the stl. I'm getting a mesh object with lists
   of vertices, normals, texture coords and more, but I need to know the exact
   specification so that I am certain that the created json will be correct.
   2. I have downloaded a sample json (teapot.json) from the github page
   and used it to visualize the object and it is fine, however, after
   including camera.js the zoom in / zoom out is handeled with RMB+drag
   combination. Is it possible to change it to a mouse wheel scroll? I think
   it would be much more intuitive this way. Can the camera.js be initialized
   in a way to achieve the mouse wheel scroll zooming?
   3. Lastly, I have created a simple cube json and it is correctly
   visualized, however when I try to rotate the object it doesn't seem to
   rotate in a right way - it looks like the object is both rotating and at
   the same time orbiting and then it sometimes hides out of the canvas
   bounds. Is the rotation being made always around a certain point, for
   example (0,0,0)? And I am having trouble in centering the viewed object on
   the canvas. Setting the view position in the xml does the trick, but I need
   to set the position automatically so that each uploaded model would appear
   in the center of the canvas. How can this be done?

I am looking forward to your reply.

Best regards,
Witold Kosowski

-- 

*_______________________________________*

*Witold Kosowski | Software Developer | **Web**werx*
Kamienica pod Aniołami, ul. Grzegorza Piramowicza 9, 90-254 Łódź, PL
*: witold.kosowski at webwerx.pl *|* ü: www.webwerx.pl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-fabulous-coaching/attachments/20150511/fbde6004/attachment.html>


More information about the Fiware-fabulous-coaching mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy