Skip to main content
Solved

I am working with a Revit model, I am trying to colour the model before creating a tileset. When I check the model in the FME Data Inspector I can see the colours in 2D but they are missing in 3D. And that's why I am not getting coloured tileset.

  • October 27, 2022
  • 9 replies
  • 65 views

rishi1804
Contributor
Forum|alt.badge.img+4

imageHere is my colour setter. I also tried GeometryColorSetter and it worked, but the coloured output is too bad. Random colours are spread so badly. image @chrisatsafe​ @Hans van der Maarel​ @safesoftware safesoftware​ 

Best answer by virtualcitymatt

Actually,imageimageimage I am using AppearanceStyler. I removed colours from AppearnceSetter. Getting the same result. It contains only one colour. image

Right - you will need to create your groups and colors in FME before running through the appearenceStyler. If you want to use random numbers you'll have to use a random number generator to create the RGB values.

image

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

9 replies

virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • October 27, 2022

Try using the AppearanceSetter instead. For 3D/Surfaces it tends to work better if you have an Appearance rather than a feature color. Feature colors tend to be more for vector features like lines and polygons


rishi1804
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 32 replies
  • October 28, 2022

Try using the AppearanceSetter instead. For 3D/Surfaces it tends to work better if you have an Appearance rather than a feature color. Feature colors tend to be more for vector features like lines and polygons

@virtualcitymatt​  I tried AppearanceSetter but unfortunately, it is also applying colours only in 2D, not in 3D. In the data inspector visual preview, I can see colours only in 2D. The 3D one is still colourless. I have only surface geometries.


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • October 28, 2022

@virtualcitymatt​  I tried AppearanceSetter but unfortunately, it is also applying colours only in 2D, not in 3D. In the data inspector visual preview, I can see colours only in 2D. The 3D one is still colourless. I have only surface geometries.

Hmm, by default the AppearenceSetter applies geometry to those only in the 'Root Node' position. Maybe the structure of the geometries is a bit complex.

 

You can try changing the 'Geometry XQuery' parameter so that is matches what I have below. This should match all geometries going through the transformer

image


rishi1804
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 32 replies
  • October 28, 2022

@virtualcitymatt​  I tried AppearanceSetter but unfortunately, it is also applying colours only in 2D, not in 3D. In the data inspector visual preview, I can see colours only in 2D. The 3D one is still colourless. I have only surface geometries.

@virtualcitymatt​ This query made some difference. I got it coloured this time in 3D as well. The only issue is it's generating it with a single colour, can I get 3-4 random colours?

image


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • October 28, 2022

@virtualcitymatt​  I tried AppearanceSetter but unfortunately, it is also applying colours only in 2D, not in 3D. In the data inspector visual preview, I can see colours only in 2D. The 3D one is still colourless. I have only surface geometries.

I see you are grouping by "UinqueID" - you could use an AppearenceStyler to define a custom style for each UniqueId. Or alternatively you can create groups with more features and use this. If you are using the AppearenceStyler you wont need to put anything into the AppearnceSetter - just pass the Appearence to the Appearence port.

image


rishi1804
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 32 replies
  • October 28, 2022

Actually,imageimageimage I am using AppearanceStyler. I removed colours from AppearnceSetter. Getting the same result. It contains only one colour. image


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • Best Answer
  • October 28, 2022

Actually,imageimageimage I am using AppearanceStyler. I removed colours from AppearnceSetter. Getting the same result. It contains only one colour. image

Right - you will need to create your groups and colors in FME before running through the appearenceStyler. If you want to use random numbers you'll have to use a random number generator to create the RGB values.

image


rishi1804
Contributor
Forum|alt.badge.img+4
  • Author
  • Contributor
  • 32 replies
  • October 28, 2022

@virtualcitymatt​ It worked. Thank you so much. I don't know why I didn't think of generating random colours using a AttributeCreator😂 . I learned something new. Thank you.


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Celebrity
  • 2000 replies
  • October 28, 2022

@virtualcitymatt​ It worked. Thank you so much. I don't know why I didn't think of generating random colours using a AttributeCreator😂 . I learned something new. Thank you.

Yeah - unfortunately for some reason you can't attribute values in the AppearenceSetter only the AttributeStyler which is a bit of a pain but this method works at least