View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004275 | FreeCAD | Bug | public | 2020-03-01 10:17 | 2022-01-24 19:16 |
Reporter | Hakanseven12 | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Target Version | 0.20 | ||||
Summary | 0004275: [OCC/Coin] Rendering issue with large coordinate values | ||||
Description | When I created an object(wire,point,mesh etc.) at large coordinate values(eight or nine orders of magnitude), object look vawy. When zoom in or zoom out objects change their positions. I think OCC uses 32bit float variables and it dont work properly at large coordinates. FreeCAD need a general solution that works for every workbench at large coordinates. In the script below, I create a list with several points with the larger values, then re-reference those points w.r.t the start to 'normalize' them and get the values into a smaller range. The difference is obvious when it gets rendered. | ||||
Steps To Reproduce | Run this macro
| ||||
Additional Information | Tracking this via OCC bugs in the bugtracker forum thread | ||||
Tags | #ready-for-migration, Coin3d, OCC Bug | ||||
FreeCAD Information | OS: Windows 10 (10.0) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.19697 (Git) Build type: Release Branch: master Hash: 8832356802011bf5d70e9d6f0efa89c47bc70a91 Python version: 3.7.3 Qt version: 5.12.5 Coin version: 4.0.0a OCC version: 7.3.0 Locale: Turkish/Turkey (tr_TR) | ||||
|
|
|
The problem is that the internal view and model matrices of Coin3d causes quite big round-off errors when multiplying with huge coordinate values. |
|
OP, please link back to forum thread discussions when you open a ticket, it makes tracking convenient for devs and triaging, thanks! https://forum.freecadweb.org/viewtopic.php?f=10&t=35935 https://forum.freecadweb.org/viewtopic.php?f=3&t=36362 |
|
Is anyone going to check and if need be open a ticket on the coin3d bugtracker ? https://github.com/coin3d/coin |
|
I opened a ticket and got this answer: https://github.com/coin3d/coin/issues/371 |
|
I think core implementation of this Coin class can solve problem https://coin3d.github.io/Coin/html/classSoGeoOrigin.html#details |
|
Is there any interest for this or is it postponed to 0.20? |
|
@Hakanseven12 Can you write-up a proposal, perhaps a dev will read it and take it on ? |
|
We are start to working on something. https://forum.freecadweb.org/viewtopic.php?f=8&t=22277&start=980#p395784 Also I created a guide to use SoGeo classes. https://forum.freecadweb.org/viewtopic.php?f=3&t=36362 I hope the other FreeCAD workbenches will be start to integrate SoGeo objects. |
|
@Hakanseven12 is this also an upstream OCC bug ? |
|
Tracking this via OCC bugs in the bugtracker forum thread |
|
This ticket has been migrated to GitHub as issue 6036. |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-03-01 10:17 | Hakanseven12 | New Issue | |
2020-03-01 10:17 | Hakanseven12 | File Added: OCC Bug.png | |
2020-03-01 11:49 | wmayer | Note Added: 0014191 | |
2020-03-01 12:17 | Kunda1 | Note Added: 0014192 | |
2020-03-01 12:18 | Kunda1 | Status | new => confirmed |
2020-03-01 12:18 | Kunda1 | Description Updated | |
2020-03-01 12:18 | Kunda1 | Steps to Reproduce Updated | |
2020-03-01 12:18 | Kunda1 | FreeCAD Information | OS: Windows 10 (10.0) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.19697 (Git) Build type: Release Branch: master Hash: 8832356802011bf5d70e9d6f0efa89c47bc70a91 Python version: 3.7.3 Qt version: 5.12.5 Coin version: 4.0.0a OCC ver... => OS: Windows 10 (10.0) Word size of OS: 64-bit Word size of FreeCAD: 64-bit Version: 0.19.19697 (Git) Build type: Release Branch: master Hash: 8832356802011bf5d70e9d6f0efa89c47bc70a91 Python version: 3.7.3 Qt version: 5.12.5 Coin version: 4.0.0... |
2020-03-01 12:18 | Kunda1 | Note Added: 0014193 | |
2020-03-01 12:26 | Hakanseven12 | Tag Attached: Coin3d | |
2020-03-01 12:26 | Hakanseven12 | Tag Attached: OCC Bug | |
2020-03-02 10:07 | Hakanseven12 | Note Added: 0014196 | |
2020-03-02 10:08 | Hakanseven12 | Note Edited: 0014196 | |
2020-03-03 20:19 | Hakanseven12 | Note Added: 0014203 | |
2020-03-03 20:20 | Hakanseven12 | Note Edited: 0014203 | |
2020-04-04 23:52 | Hakanseven12 | Note Added: 0014319 | |
2020-04-05 13:15 | Kunda1 | Note Added: 0014322 | |
2020-04-05 13:15 | Kunda1 | Note Edited: 0014322 | |
2020-05-11 21:46 | Hakanseven12 | Note Added: 0014415 | |
2020-05-11 21:46 | Hakanseven12 | Note Edited: 0014415 | |
2020-05-11 21:49 | Hakanseven12 | Note Edited: 0014415 | |
2020-12-31 12:28 | Kunda1 | Note Added: 0015186 | |
2020-12-31 13:07 | Kunda1 | Additional Information Updated | |
2020-12-31 13:07 | Kunda1 | Note Added: 0015193 | |
2021-02-06 06:49 | abdullah | Target Version | => 0.20 |
2022-01-24 19:16 | Kunda1 | Tag Attached: #ready-for-migration |