Problem with mesh drawing in viewport when ma->game.flag & GEMAT_INVISIBLE #52253

Closed
opened 2017-08-02 17:53:22 +02:00 by Ulysse Martin · 7 comments

System Information
Windows 10 GTX 970

Blender Version
Broken: last master 8ff2c14
Worked: (optional)

Short description of error
Material game.flag & GEMAT_INVISIBLE influence mesh drawing in the viewport

Exact steps for others to reproduce the error
test .blend: http://pasteall.org/blend/index.php?id=47329
try to select the object with no texture -> impossible to select

Fix proposed
I propose to remove influence of this flag on mesh drawing in the viewport (I can be wrong but I thought it should only influence mesh drawing at bge runtime)
patch (made from upbge sources): http://pasteall.org/495383/diff

**System Information** Windows 10 GTX 970 **Blender Version** Broken: last master 8ff2c14 Worked: (optional) **Short description of error** Material game.flag & GEMAT_INVISIBLE influence mesh drawing in the viewport **Exact steps for others to reproduce the error** test .blend: http://pasteall.org/blend/index.php?id=47329 try to select the object with no texture -> impossible to select **Fix proposed** I propose to remove influence of this flag on mesh drawing in the viewport (I can be wrong but I thought it should only influence mesh drawing at bge runtime) patch (made from upbge sources): http://pasteall.org/495383/diff
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @you.le

Added subscriber: @you.le
Author

Added subscribers: @panzergame, @ideasman42

Added subscribers: @panzergame, @ideasman42

Added subscriber: @dfelinto

Added subscriber: @dfelinto

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Dalai Felinto self-assigned this 2017-08-29 10:53:57 +02:00

We need a way to preview the materials in the viewport before running the game. Although this behaviour is strange since a BGE setting end up influencing the viewport for BI and Cycles, it's just a downside of the design.

And since we are changing all of this for Blender 2.8 I think it makes no sense to change this behaviour in master. I'm closing it as invalid, but if you can get other developers behind it (e.g., @ideasman42) feel free to re-open this issue.

We need a way to preview the materials in the viewport before running the game. Although this behaviour is strange since a BGE setting end up influencing the viewport for BI and Cycles, it's just a downside of the design. And since we are changing all of this for Blender 2.8 I think it makes no sense to change this behaviour in master. I'm closing it as invalid, but if you can get other developers behind it (e.g., @ideasman42) feel free to re-open this issue.

Optionally this can be added to a viewport TODO:
https://wiki.blender.org/index.php/Dev:Source/Development/Todo

Optionally this can be added to a viewport TODO: https://wiki.blender.org/index.php/Dev:Source/Development/Todo
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
2 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#52253
No description provided.