Announcements
Autodesk Community will be read-only between April 26 and April 27 as we complete essential maintenance. We will remove this banner once completed. Thanks for your understanding

How do I make shapes transparent - such as a wall or window?

juan_s4
Not applicable
0 Views
13 Replies
Message 1 of 14

How do I make shapes transparent - such as a wall or window?

juan_s4
Not applicable

Hi there, I am trying to figure out how to make a shape slightly transparent, so that I can see through it. I have created a building wall but would love to make it slightly transparent to make it easier for my simulation goal.

I would appfreciate anyones assistance 🙂

Thanks, regards Juan

0 Likes
Accepted solutions (1)
1 View
13 Replies
Replies (13)
Message 2 of 14

joerg_vogel
Not applicable

There isn't a direct method, which you can activate in Flexsim by setting a option. You have to prepare the shape files. The level of transparency is set by the transparency of your shape picture in png-file. Or you use the fbx 3D data type which handle transparency inside the data structure. Please look for "preparing a 3D file", too.

Message 3 of 14

support5CRPZ
Advocate
Advocate
Accepted solution

Hi. @Juan S4

I hope this sample model will help you.

9454-2017-11-13-154518.png

It is made only using flexsim default feature.

transparent-visual.fsm

Message 4 of 14

patrickABAWF
Advocate
Advocate

David, I tried that and it works. Very simple.

However, it's not transparent for everything and I can't see my products or my operators !

I'll try something else..

0 Likes
Message 5 of 14

philboboADSK
Autodesk
Autodesk

The transparent objects need to be drawn after the other objects if you want to be able to see the other objects through them.

You can control the order of the drawing by changing the objects' ranks in the tree view. Objects at the top of the tree will be drawn last.

Move your transparent objects to the top of the tree.



Phil BoBo
Sr. Manager, Software Development
Message 6 of 14

patrickABAWF
Advocate
Advocate

Thanks Phil !!! That works great.

0 Likes
Message 7 of 14

patrickABAWF
Advocate
Advocate

I have another issue with the transparency.

I have paint booths which are transparent and I placed them at the top of the tree so that they are transparent to everything in the model. They are processors with a custom 3D shape.
But when a flowitem enters the cabin, the cabin is not transparent for the flowitems. Is it because the flowitem bin is above the processors in the tree?

The flowitems change shape a previous workstations with setobjectshapeindex. Maybe that could be why?

In any case what could I do?

Thanks,

0 Likes
Message 8 of 14

patrickABAWF
Advocate
Advocate

I have another possible cause. The paint booths change 3D shape (to close its doors) with setobjectshapeindex when a flowitem enters it and again when it exists.

The 3D shapes for the paint booths are loaded in flowitem bin because I find it convenient to be able to go there are visualize them even when not shown in 3D view.

But they are located above the flowitem shapes in the flowitem bin. Could that be why? I want to change this and test but I'm afraid of messing my shapeindexes.

0 Likes
Message 9 of 14

philboboADSK
Autodesk
Autodesk

The reason is much simpler than your guesses.

When traversing the tree, it draws the parent object before the subnodes of that object.

So you can't see the flowitems in the cabin because it draws the cabin before the flowitems.

This default ordering is very useful when the flowitems have transparency, but it is backwards from what you want when the main object has transparency.

To fix it, add a surrogate component to your object to draw the shape and set the main object's shape to an invalid path, such as ***. The surrogate objects will be drawn after the contents so you will be able to see the items through the surrogate object's shape.

Attached is an example. shape-draw-order.fsm

17989-shape-draw-order.png

This question also addresses this same issue, but with custom draw code instead of simply the main object shape.



Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 10 of 14

patrickABAWF
Advocate
Advocate

Will this work as simply as you explain even if I change the 3D shape of the Processor as I'm doing now with setobjectshapeindex when an item enters and exits?

0 Likes
Message 11 of 14

philboboADSK
Autodesk
Autodesk

Yes.



Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 12 of 14

patrickABAWF
Advocate
Advocate

I can't seem to make it work. See attached sample model. What am I doing wrong? Thanks,transparent-cabin2.fsm

0 Likes
Message 13 of 14

philboboADSK
Autodesk
Autodesk

Use the surrogate object to draw the shape and set the object shape index of the surrogate object.

You are still drawing the shape with the parent object.

You can use first(drawsurrogate(object)) to get a reference to the surrogate object.

Here's your model with these changes: 18158-transparent-cabin2-1.fsm

By the way, you should have posted a sample model with your original question 8 days ago, and then you could have had this solved 8 days ago instead of only now posting enough information to understand what you are doing.



Phil BoBo
Sr. Manager, Software Development
0 Likes
Message 14 of 14

patrickABAWF
Advocate
Advocate

I only got to test this yesterday. The model and project involves a lot more stuff than this and the transparency of the cabin was not my 1st priority.

And when I got there yesterday I had about an hour of work to take my model and delete everything in it to make it this sample model.

0 Likes

Type a product name