Solved

Reg. 3d model and programatic interaction

  • 7 December 2023
  • 3 replies
  • 29 views

I am looking for information related to 3d models. I would like to explore does reveal/cognite supports programmatic change of animation on 3d models which are uploaded to cdf. What i am looking for is, i have 3d model of pump and would like to change the animation speed depending on the speed i get from my api (basically real time speed which i get from my api). Does it possible ? If so could you guide me to example code to how to do that. Also the uploaded 3d model in cdf is not displaying like how the original model that was uploaded. After uploading into cdf its not displaying with colors and animations, could you tell me why it is like that ? Thanks

 

icon

Best answer by Dilini Fernando 11 January 2024, 11:36

View original

3 replies

Hi!

3D models in CDF will not include animations that may be present in the original file. However, you may still programmatically animate specific CAD nodes, as shown in the documentation here: https://cognitedata.github.io/reveal-docs/docs/examples/cad-transform-override#animations It will require the programmer to find the CAD node to animate, and the transformation of that CAD node at each frame.


For the colors, I am not sure why they are not displayed as in the picture - we do support textures in our viewer. How was the model uploaded? It may be necessary to include the textures along with the 3D source together in a ZIP-file and upload that.

Userlevel 4
Badge +2

Hi @aravind,

Did the above help you?  

Br,
Dilini

Userlevel 4
Badge +2

HI @aravind,

I hope the above was helpful. As of now, I will close this thread. If you have any questions, please feel free to comment here.

Br,
Dilini 

Reply