I want to show in FORGE Viewer a model created with Autodesk Inventor and edited (new colors & materials) with Autodesk VRED.
The native vp* formats are not supported by Model Derivate: I've tried with a FBX file but the result in FORGE was horrible ;)
Have you some tips about my problem?
Unfortunately VRED formats are not supported by the Forge Model Derivative service at the moment, so you'd have to find an intermediary format with as little quality (material definition) loss as possible. For example, if you could get your Inventor model into Fusion 360 (and perhaps customize its materials there), the materials would look much better in Forge Viewer as they would be rendered with the viewer's PBR shader. Go to https://viewer-rocks.autodesk.io and choose one of the Fusion models (e.g., "Fusion Race Car") to see the shader in action.
Another option would be to apply your custom materials during runtime: https://forge.autodesk.com/blog/custom-shader-materials-forge-viewer.
Related
We need to create rvt file using mesh data, triangles (indices, vertices, normals, texture uv). So does revit design automation apis supports create mesh with texture and texture uvs? Any examples would be great help.
Thanks.
I would suggest you research the DirectShape functionality of the Revit API: DirectShape. It includes some ability to apply a Revit material (which is a color and/or texture) to the shapes you create. I don't know if texture UV can be specified for DirectShape faces.
If you have your own textures to create in Revit, then you'll want to read about Revit materials and Google how to create them.
Best,
Michael
Design Automation API for Revit (DA4R) could be considered as a Revit runs on the cloud, you can upload your own app bundle that contains your Revit exporter IEXternalDBAppplication Addin to help you export mesh data from the Revit models. Here is an example demonstrating how to export Revit elements into three.js meshes and scene:
https://github.com/va3c/RvtVa3c
But it came with UI, you have to convert it to pure IEXternalDBAppplication (remove UI codes) before uploading to Forge server as DA4R activity.
Hope it helps!
Cheers,
I have an application that is translating models from Onshape to SVF format in Forge. After the translation is complete the colors are missing in the Autodesk Viewer.
Here is an example I loaded into the online viewer: https://autode.sk/2VKVqHB
Does anyone know why the colors would not come across?
Are there any options in the translator that can affect colors?
We are using the Autodesk Forge model derivative and viewer API's for sharing Revit models with our customers.
This works very well for almost all our Revit models. But currently we have 2 Revit models which use the same template, and with those 2 models the Forge viewer does not render these correct. It looks like we get some kind of exploded view, materials are not on the correct place etc (see images).
We assume it has something to do with the Revit template, but we cannot find it. Any suggestions?
Revit
Forge
As a suggestion, on Revit, go to publish settings and confirm the names of the 3D selected to be extracted. On Viewer, ensure you're showing the same view, you can see the name where you load a specific viewable.
I have found a workaround, it looks like the problem was the cars which I was using in the model. These were Revit families where a DWG import was used.
When removing the cars from the model all other materials where rendering fine in the Forge Viewer. I sended the model also to Forge support and hoping for a solution so I can use the cars again.
I have uploaded a model with texture in a folder on A360 in FBX extension. At the time of checking view of model in this link "https://dm.autodesk.io" the texture of model not showing only default materials color are available there.
Please suggest how can i upload FBX with texture ?
Unfortunately, Autodesk Forge Model Derivative API does not extract material, nor textures for FBX files today (as the time of this post). It might in future, but have no ETA on this. This has been a long time request since Forge came out. If the goal is to show textures in the viewer, you can take a look to this post for a workaround.
I have a project, use Forge platform and Google Maps API for javascript.
the requirements is that:
1, Display all Cellular-Sites on the GIS map as markers.
I can achieve this through Google Maps API for Javascript.
2, Display the 3D design model of a Cellular-Site while the markers be clicked.
I can achieve this through the Forge platform.
first create a bucket, then upload the 3D model source file and transform to svf format, finally explorer it through the Viewer library.
3, Dynamicly create the 3D model for Cellular-Sites.
Because of the Cellular-Sites consists of some components, Such as a Tower and a House.
There are some different kinds of House and Tower. We have all the 3D model files of the House and Tower.(such as HouseSmall.rfa, HouseLarge.rfa, TowerLow.rfa, TowerHeigh.rfa)
The configurations of Cellular-Sites are stored in database. the Schema may like this:
[
{SiteId:1, SiteName:"small-house-big-tower", HouseType:"HouseSmall", TowerType:"TowerHigh"},
{SiteId:2, SiteName:"large-house-low-tower", HouseType:"HouseLarge", TowerType:"TowerLow"},
]
the position of House and Tower is fixed.
I'm wondering how to automaticlly create the 3D Models of Cellular-Sites according to the configurations.
Any help will be very appreciate.
Thank you very much.
The Forge translation pipeline does not support RFA, but only RVT. That means you would first need to create a RVT for each element, then get them translated into the Forge Model Derivative before using them. YOu can create a catalog of element URN to be consumed into the Forge Viewer later. The Forge Viewer can load multiple URN at the same time, which then should address your needs.
Now to automatically create the 'URN catalog', you need Revit (RFA -> RVT); I guess you can either use the Revit scripting mechanism or write a Revit plug-in for this. Jeremy Tammik wrote a 'room editor' on his blog which shows how to export a RVT to Forge from a plug-in. I believe this would be a good start.