Imported FBX file makes selection impossible. #52826

Closed
opened 2017-09-19 08:42:04 +02:00 by Ejnar Brendsdal · 16 comments

System Information
File System File attached
Windows 10
NVIDIA Quadro M2000

Blender Version
2.79 Official Release

Short description of error
While importing FBX files generated by Autodesk Revit has greatly improved and all geometry seems to com intact with instances and everything, something seems off with selecting objects. When I click on an object where other geometry is behind it it will always select random geometry in the background instead of the geometry closest to the screen.
This is not affected in wireframe mode. Nor is it an issue when I open a clean blend file. It is only with the scene where imported geometry is present.
Note it also happens when creating new geometry in the same scene as the imported geometry.Wrong Selection Bug.zip

Exact steps for others to reproduce the error

  • Open the attached .blend file or alternatively import the attached .fbx file (Y forward).
  • Try and select an object.
  • Notice the selection is never the object clicked upon if anything else was behind it.
**System Information** File System File attached Windows 10 NVIDIA Quadro M2000 **Blender Version** 2.79 Official Release **Short description of error** While importing FBX files generated by Autodesk Revit has greatly improved and all geometry seems to com intact with instances and everything, something seems off with selecting objects. When I click on an object where other geometry is behind it it will always select random geometry in the background instead of the geometry closest to the screen. This is not affected in wireframe mode. Nor is it an issue when I open a clean blend file. It is only with the scene where imported geometry is present. Note it also happens when creating new geometry in the same scene as the imported geometry.[Wrong Selection Bug.zip](https://archive.blender.org/developer/F822044/Wrong_Selection_Bug.zip) **Exact steps for others to reproduce the error** - Open the attached .blend file or alternatively import the attached .fbx file (Y forward). - Try and select an object. - Notice the selection is never the object clicked upon if anything else was behind it.

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @EjnarBrendsdal

Added subscriber: @EjnarBrendsdal

Added subscriber: @Sergey

Added subscriber: @Sergey

Don't think it is anything to do with FBX, sounds more like OpenGL selection issue. Things to try:

  • Make sure you don't override FSAA or other antialiasing-related settings in driver settings.
  • Try disabling multisample in Blender (User Preferences -> System), this requires Blender restart.
  • Try various selection methods in User Preferences -> System

So far i can not confirm the issue, but i'm on Linux.

Don't think it is anything to do with FBX, sounds more like OpenGL selection issue. Things to try: - Make sure you don't override FSAA or other antialiasing-related settings in driver settings. - Try disabling multisample in Blender (User Preferences -> System), this requires Blender restart. - Try various selection methods in User Preferences -> System So far i can not confirm the issue, but i'm on Linux.

Hi Sergey. My first thought was in agreement with you on the OpenGL conclusion as I am on a new machine and haven't set up my own preferences yet. None of the options you suggest solve it though.
But on further inspection I have done the following:

  • Opened the attached file with the bug.
  • Saved it as startup file. -> This resulted in any new empty blend file opened suffering the same problem. Even with just copies of the default cube. Always the geometry in the background being selected.

I then did following:

  • Select everything from bug file and copy to clipboard.
  • Reset to factory settings (Load factory settings in File menu)
  • Paste everything in the new file.

This solved the problem and now the geometry is selectable as normal.
So importing the FBX file did something to the settings of the file that a factory reset solved.
I will dig further later.

Hi Sergey. My first thought was in agreement with you on the OpenGL conclusion as I am on a new machine and haven't set up my own preferences yet. None of the options you suggest solve it though. But on further inspection I have done the following: - Opened the attached file with the bug. - Saved it as startup file. -> This resulted in any new empty blend file opened suffering the same problem. Even with just copies of the default cube. Always the geometry in the background being selected. I then did following: - Select everything from bug file and copy to clipboard. - Reset to factory settings (Load factory settings in File menu) - Paste everything in the new file. **This solved the problem and now the geometry is selectable as normal.** So importing the FBX file did something to the settings of the file that a factory reset solved. I will dig further later.

If you open attached .blend file, does the selection issue happens in there? (or is it REQUIRED to actually import attached fbx?)

If you open attached .blend file, does the selection issue happens in there? (or is it REQUIRED to actually import attached fbx?)

No it happens in the attached file on opening.
As if the file is corrupted somehow.
As a note the only thing I did before importing the FBX and causing the trouble was to add a couple of selection options in the keymap according to this link:
https://twitter.com/Leukbaars/status/908992634324004864

No it happens in the attached file on opening. As if the file is corrupted somehow. As a note the only thing I did before importing the FBX and causing the trouble was to add a couple of selection options in the keymap according to this link: [[ https://twitter.com/Leukbaars/status/908992634324004864 ]]

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo

I do not see any corruption in the file and can't reproduce the issue. It might be that copy-paste things to a new file changes pointers, which could potentially cause different order of selection queries.

@LazyDodo, @mont29, mind giving it a try here?

I do not see any corruption in the file and can't reproduce the issue. It might be that copy-paste things to a new file changes pointers, which could potentially cause different order of selection queries. @LazyDodo, @mont29, mind giving it a try here?

Added subscriber: @mont29

Added subscriber: @mont29

When you open the file does it keep the preferences setup as on my machine or is it defaulted to your settings?
It seems it only happens with files that have imported FBX geometry in them.
I have just tried to import the original FBX into Rhino and then export from Rhino into Blender through a new FBX file, but same issue happens.
Could it be a floating point precision issue between the programs? Both Rhino and Revit runs with fairly large double precision scales. (CAD files with kilometers of scenes as default)

When you open the file does it keep the preferences setup as on my machine or is it defaulted to your settings? It seems it only happens with files that have imported FBX geometry in them. I have just tried to import the original FBX into Rhino and then export from Rhino into Blender through a new FBX file, but same issue happens. Could it be a floating point precision issue between the programs? Both Rhino and Revit runs with fairly large double precision scales. (CAD files with kilometers of scenes as default)

That FBX file has two issues from Blender POV: unsupported Normals mapping (by polygons), and invalid material indices. But importer knows how to work around that to some extent.

Other potential cause of issues (especially under crappy windows OS) are usage of unicode chars like å and such maybe (should not, but could explain the issue), can you try to change those names to pure ASCII ones, re-export FBX from rhino or whatever, and see what happens once imported in Blender?

Besides that, I see nothing that could explain the issue, and cannot reproduce it under linux so far. FBX importer does not touch to user preferences settings and such at all.

That FBX file has two issues from Blender POV: unsupported Normals mapping (by polygons), and invalid material indices. But importer knows how to work around that to some extent. Other potential cause of issues (especially under crappy windows OS) are usage of unicode chars like `å` and such maybe (should not, but could explain the issue), can you try to change those names to pure ASCII ones, re-export FBX from rhino or whatever, and see what happens once imported in Blender? Besides that, I see nothing that could explain the issue, and cannot reproduce it under linux so far. FBX importer does not touch to user preferences settings and such at all.

@mont29 and @Sergey

Actually I have just reinstalled from scratch and I can no longer reproduce the issue with neither the original FBX or new from the same setup.
I dont know what the issue was but I suspect a bad installation on my machine for some reason. Untill further notice I think you can close this task. I will keep an eye out for the issue though as I work a lot with pipeline between revit and rhino.

@mont29 I can open a couple of new bug reports related to the normals and material indices with simpler blend / fbx files?

Thanks for the suggestions and feedback.

@mont29 and @Sergey Actually I have just reinstalled from scratch and I can no longer reproduce the issue with neither the original FBX or new from the same setup. I dont know what the issue was but I suspect a bad installation on my machine for some reason. Untill further notice I think you can close this task. I will keep an eye out for the issue though as I work a lot with pipeline between revit and rhino. @mont29 I can open a couple of new bug reports related to the normals and material indices with simpler blend / fbx files? Thanks for the suggestions and feedback.

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2017-09-19 15:49:42 +02:00

Yes, think we can archive for now.

Re normals and mat indices, yes please, having basic files to reproduce and investigate will be simpler (normal mapping is just a matter of implementing it, just never found any FBX file using that one so far, matindices I cannot say without seeing basic file with the issue ;) ).

Yes, think we can archive for now. Re normals and mat indices, yes please, having basic files to reproduce and investigate will be simpler (normal mapping is just a matter of implementing it, just never found any FBX file using that one so far, matindices I cannot say without seeing basic file with the issue ;) ).

HI @mont29

I have created two new reports.
Hope these can help. If you think I can send anything else that can help please dont hesitate to write.

https://developer.blender.org/T52847
https://developer.blender.org/T52846

Best regards.

HI @mont29 I have created two new reports. Hope these can help. If you think I can send anything else that can help please dont hesitate to write. https://developer.blender.org/T52847 https://developer.blender.org/T52846 Best regards.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#52826
No description provided.