Skip to main content
Solved

Reg. 3d model and programatic interaction


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

 

Best answer by Dilini Fernando

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 

View original
Did this topic help you find an answer to your question?

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.


Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2

Hi @aravind,

Did the above help you?  

Br,
Dilini


Dilini Fernando
Seasoned Practitioner
Forum|alt.badge.img+2
  • Seasoned Practitioner
  • 671 replies
  • Answer
  • January 11, 2024

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


Cookie Policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings