question

Lars Jacobsen avatar image
1 Like"
Lars Jacobsen asked Phil BoBo answered

RTX Mode and drawtext problem

When I switch to RTX mode, text becomes hollow when I use drawtext on the OnDraw trigger. @phil.bobo



FlexSim 20.2.1
flexsim 20.2.1rtx
1598849927173.png (51.2 KiB)
1598849970491.png (80.3 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.

Lars Jacobsen avatar image Lars Jacobsen commented ·

Hi Joerg. I am just using standard FlexSim functionality, so I would expect it to work w/o having to do something special.

TextOnObject_2.fsm

1 Like 1 ·
textonobject-2.fsm (24.8 KiB)
Joerg Vogel avatar image Joerg Vogel commented ·

@lars_christian.j2, have you checked the surface normal vectors of the shape. Each surface has got two sides. If the normal vectors of the transparent surfaces are pointing inside the shape, this can cause such problem.

0 Likes 0 ·

1 Answer

Phil BoBo avatar image
1 Like"
Phil BoBo answered

One of the current limitations of RTX Mode is that it only renders meshes drawn with GL_TRIANGLES. See https://docs.flexsim.com/en/20.2/Reference/GeneralModelSettings/ViewSettings/#more

It appears that the 3D text tesselator that converts from character glyph contours into 3D shapes may be returning meshes using triangle strips or triangle fans instead of just triangles.

I'll add a case to the dev list to improve this. In the meantime, if you want to draw 3D text in RTX Mode, you may need to make your 3D text in a 3D modeling application and import it as a custom 3D shape so that it is drawn with GL_TRIANGLES.

5 |100000

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