You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a custom FGD entity definition to load a custom 3D model in TrenchBroom. The mesh and its bounds display correctly in the level/viewports but not in the entity browser:
Expected Behavior
The model appears properly in the entity browser and match the result seen in the scene/viewports.
Steps to Reproduce
Create a 3D model with its origin coordinate (0,0,0) below its bounds (bbox). In my example the 0,0,0 is below the character's feet.
I tried using size( -16 -32 -128, 16 32 0 ) but that gave me weird results (bounds are below the model in viewport, but the model is visible in browser).
Using size( -16 -32 0, 16 32 32 ) clearly shows the mesh being above the bounds in the entity browser, unlike inside the bounds like in the viewport:
I was looking at this too with them after they brought it up in #TrenchBroom-Talk.
It doesn't feel related to #4007, but does feels related to #4190.
It is not the exact same issue we had with sprites in the Entity Browser, but it very much feels like a similar issue in the Entity browser but now with models.
The link here is the offset in a sprite is very similar to how the origin (center) of how a model works.
Looks like when the model is scaled up from the FGD entity entry the bbox of a scaled up model throws the view way off in the Entity browser. Similar as to how the sprites were behaving IMO. If you change the bbox number dimensions it will throw off the model view in the Entity browser differently every time it's changed.
The problem is you need to have the bbox a certain way in the map view to make it look ok and work. That same bbox throws the models too far off in the Entity browser that it is out of view.
kduske
added
Type:Bug
Errors and problems
Prio:2
Medium priority: Non crash bugs that impede the user, features that add new functionality.
labels
Jul 25, 2024
System Information
TrenchBroom:
System:
Issue description
I have a custom FGD entity definition to load a custom 3D model in TrenchBroom. The mesh and its bounds display correctly in the level/viewports but not in the entity browser:
Expected Behavior
The model appears properly in the entity browser and match the result seen in the scene/viewports.
Steps to Reproduce
Additional notes
size( -16 -32 -128, 16 32 0 )
but that gave me weird results (bounds are below the model in viewport, but the model is visible in browser).size( -16 -32 0, 16 32 32 )
clearly shows the mesh being above the bounds in the entity browser, unlike inside the bounds like in the viewport:gives the following result:
Let me know if any other information is needed.
The text was updated successfully, but these errors were encountered: