Unity3d and CityEngine - unity3d

I created a small city in CityEngine using the openstreetmap data (osm file), where I've the latitude, longitude and some others details of each node. Now I want to export this information to the Unity3d, so I exported the city as fbx file. At this point everything is going ok.
The problem is ... in cityEngine each block/shape represents a different object, however in unity3d this is not happen. The data is divided per texture (or something like that). But I need to recognize each block/shape or at least I need to know the right position of them.

You have a option in the exporter where you can export the scene as centered around the xyz origin (exporter options).
The exporter has many settings for mesh-granularity. The meshes are per default merged by material. But you can of course also export for each shape one object etc.
Please visit the CityEngine Forum for more info:
http://forums.arcgis.com/forums/45-Solutions
http://forums.arcgis.com/threads/51437-Export-Mesh-and-Material-Granularity?highlight=cityengine+unity

Related

Autodesk forge highlight child object

Recently i've been working on this repository https://github.com/xiaodongliang/forgeviewer_embed_in_powerbi_report to build a custom visual in Power BI to visualize the issues extracted from Bim track'S API.
The idea was visualizing them in associaton to the model's ROOMS.
In order to do that I worked with a NWC file, so i cuold export rooms as a geometry.
What i would like to do now is to highligt the rooms if a connected issue is selected from a table.
The problem is When i select an issue from a table, in the selection tree i can see highlighted the parent object name (ROOM) instead of the child (solid), and i think that is why i can't achieve my purpose (if not please correct me).
what i have
what i wold like to do
Does anyone know a way to do that?
If you would like to change your selection between (FIRST_OBJECT, LAST_OBJECT, LEAF_OBJECT) you can change viewer selection settings in order to test:
If you would like to achieve this programmatically :
Viewer.setSelectionMode();
could help you as well.
If I well understood, you want to highlight the child (which contain the mesh) instead of the parent.
The object highlight (isolate) is done in /forgePowerbiView/src/visual.ts with this code:
const dbIds = options.dataViews[0].table.rows.map(r =>
<number>r[0].valueOf());
console.log('dbIds: ' +dbIds)
this.forge_viewer.showAll();
this.forge_viewer.impl.setGhostingBrightness(true); //for isolate effect
this.forge_viewer.isolate(dbIds);
Take a look at this link Enumerating leaf nodes on Viewer. This will help you to get the dbIds you want to isolate.

Untiy Shader Variant Collection

1、Why did I click the clear button,currently tracked doesn't clear. How to re-collect shader variants for project.
2、How to collect shader variants automaticlly by script?
1、In order to solve this problem, I clear the shaderCache files in project's Library folder.
2、I made a new Scene with a Quad, load all mat add to the quad in turn, last save the asset, but this would strip the variant by script Enabled Keys.

How do I use OSM custom tags in Mapbox style

Here's a brief description of what I'd like to do (and I'm very, very new to this but seem to have hit a wall):
Display a map of color-coded buildings based on a custom tag (miamioh_lds).
What I've tried: in Mapbox Studio Classic starting with the Emerald style (coordinates 84.7286, 39.5033)
#building [miamioh_lds="uitcp"] {
polygon-fill: #f61313;
}
I would expect Hoyt Hall to be red, but it is not, even if I remove all other #building CartoCSS statements.
I would like the building filled, which is why I'm using tags and fill instead of using a data source, which seems to be focused at adding markers. I'm using Mapbox because my goal is to bring the map into Tableau (which I'll use to add a marker off dynamic data, which is why I need a fill, not a marker here).
Can I use custom tags in CartoCSS? If so, what am I doing wrong?
Thanks!

Remove street numbers from OSM maps

I'm still working on my map project. I use mapnik tools to render my own maps.
Mapnik reads a xml file to style each tiles.
At this moment, i managed to remove street names and all stuff that was useless for my project. The only problem i have is about removing the street numbers, which still appear even when all useless layers are off.
I give you a pastebin link to my xml file: http://pastebin.com/ZRtmYBRz.
Do you know how i can remove the street numbers ? Thanks.
Before :
Now:
Try using a filter on the addr:housenumber tag of the nodes in the source file that contain that info. Once you get those, you can change the rendering by using a TextSymbolizer.
More info on https://github.com/mapnik/mapnik/wiki/TextSymbolizer

The same C# code produces different output in Visio Professional and Premium

I have built a simple conversion Add In, but its behavior is unfortunately different with the different Visio Editions (Visio 2010 Professional and Visio 2010 Premium).
The Add In takes a Process-Diagram created with Shapes from Stencil_1.vss and creates a new slightly different Process-Diagram with Shapes from Stencil_2.vsd. It loops through a Visio page and for each shape founded creates a new shapes from new master shape (from Stencil_2.vsd) and drop it into the new page. Geometry, captions etc. are the same, only the shape-appearance is changed. Below is the source diagram:
When I run the code into Visio 2010 Professional the swimlane shapes are drawn correctly.
When I run the same code from Visio Premium the swimlane appearance and layout are mismatched:
Both times i drop the SAME Shape("Swimlane" from the same stencil) into the Page with the SAME Code fragment:
Visio.Master vm = swimlane_stencil.Masters.get_ItemU(#"Swimlane");
Visio.Shape TargetShape = targetPage.Drop(vm, shape_x, shape_y);
How could I ensure, that the code produces any time the same (correct) output? Must I disable any (premium)features in the swimlane-shapesheet?
The cross-functional flowchart shapes are backed by an addon so that shapes get correctly positioned within swimlanes and the page etc. Most shapes have an on drop event that calls out to the addon for their respective functionality.
By the looks of it the addon isn't being invoked correctly in your Visio Premium instance. For example, there's a function in the EventDrop cell:
=RUNADDONWARGS("CFF14","/cmd=20001")
..where CFF14 is the 2010 version of the cross-functional flowchart addon.
Bear in mind that 2010 also uses container shapes within the cross-functional flowchart solution. Are you using the correct 2010 'target' shapes?
There should be no difference in functionality, as far as the cross-functional flowchart is concerned, between Professional and Premium editions as far as I'm aware.
thank you for your time!
Bear in mind that 2010 also uses container shapes within the
cross-functional flowchart solution. Are you using the correct 2010
'target' shapes?
The ‘target’ shapes in both cases are the Swimlanes from the cross functional flowchart stencil.
I tested the same Add In-code on another "Professional"-Machine, it was successful, I mean the "Swimlane" shapes are positioned correct and without separators and Title-section.
I also uninstall and install again the Premium instance and nothing is changed, the same code produces the same diagram drawn above. Swimlanes PinX are changed and separators and title-section are added.
I noticed, that in the “wrong diagrams” only the first dropped
Swimlane shape is correct
The following(later dropped) Swimlanes are wrong positioned and separators and title-bar are added. They have:
User.msvShapeCategories="CFF Container;DoNotContain", the right Swimlane-shapes have: User.msvShapeCategories="Swimlane;DoNotContain"
Also I noticed, that the wrong Swimlanes are derived
from xfunc_m.vss ( User.visMasterStencil = "xfunc_m.vss")
I remove the value “xfunc_m.vss” from the User.visMasterStencil Cell
and update the stencil
Now it works fine, I hope this explanation is useful for others and somebody could explain this behavior better than me :)