question

Tomi Kosunen avatar image
0 Likes"
Tomi Kosunen asked Phil BoBo edited

Floor drawing problem

I have a building with about 10 floors. Each floor is its own png picture in the model (the pictures are located one on top of another) . The pictures are all the same size - they are quite big with lot of empty space around the buildings (as there are several buildings in the model). The empty area is transparent and the buildings have some colour. The problem is that sometimes the corner of the picture is drawn in a strange way. So when the model is rotated, the corner is can be seen (there is nothing really in the corner)

Can this be fixed somehow easily?

background.gif

FlexSim 22.0.0
floor drawing
background.gif (540.9 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ryan Clark avatar image Ryan Clark commented ·

Hi @Tomi Kosunen,

It's hard to know how to help without looking at your model. To receive a more accurate solution, please post your model or a sample model that demonstrates your question.

Proprietary models can be posted as a private question visible only to FlexSim U.S. support staff. You can also contact your local FlexSim distributor for phone or email help.

0 Likes 0 ·
Tomi Kosunen avatar image Tomi Kosunen Ryan Clark commented ·

@Ryan Clark Here's an example. This is not a big issue but if there is an easy fix, it would be nice.

If you rotate and zoom the model, you'll see the white corner in the horizon.

m1.fsm


0 Likes 0 ·
m1.fsm (212.5 KiB)

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo edited

This is a bug with the view fog calculation. The view fog setting makes objects blend into the background color as they get further away from the camera.

The simplest solution right now is to turn off the view fog by setting it to 0:

1642518772739.png

I'll add a case to the dev list to fix the view fog shader code so that it isn't incorrectly blending the alpha value.

You might also want to re-rank your objects in the tree so that the transparent objects are drawn back-to-front. You can make the transparent objects draw last by moving them to the top of the tree. The object you want drawn on top should be at the top of the tree. So, for example, you should put the FlexsimModelFloor object below the Plane objects so that they are drawn on top of it.

1642521682280.png

1642521690132.png


1642518772739.png (146.0 KiB)
1642521682280.png (145.6 KiB)
1642521690132.png (129.9 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.