Node Texture - Node Material - GLSL Viewport rendering issue #32296

Closed
opened 2012-08-09 19:42:40 +02:00 by Michael Chappell · 5 comments

%%%When having any texture go through a noded Material, the Object in the textured viewport will not display the correct alpha/color/texture.

Also, while editing(anything material/tex wise) with the viewport on GLSL, with that texture/material, it may crash.
(Note: this is Blender Internal, not cycles; I do not know if this happens in Cycles)

Should be all Blender versions, but for reference;

Blender 2.63.17, r49522
OS: Win7 x64
ATI Radeon HD 4200 (integrated graphics)

If you want to do the bug on you're own;

LONG INSTRUCTIONS(don't use these) : http://www.pasteall.org/34409/text - Note; uncheck the Texture under the Tex. Tab under properties as well; it'll mess it up

Short instructions(use these):

1)Start up in the Factory-defaults
2)Make the Material into a node material
3)Make the Mat. Node into an Extended Mat. Node,with the original material selected
4)Make a texture which uses nodes, and add it to the Mat. Node setup; And uncheck it in the Tex tab to keep it from overriding the node setup.
5)Connect the Value to Alpha, and Color to Color of the Ext. Mat. Node.
6)Change the Viewport-Shading under the Properties tab of the 3D view to GLSL, and change the viewport shading to "Textured"

Cube should be invisible in the viewport, but should render out just fine; this does the same with Generated tex's, as well as Image tex's.

Now, under the node setup, play with the connections from the Tex. Node and the Mat. node. If you undo the alpha, you can see black; if you undo the color and alpha, you can see the diffuse color, and if you only undo the color, you'll see a tint of the diffuse color.

The first .blend is one with the image texture(have no idea why the UV's aren't working), the second is what you get when you follow the instructions; third is an image of the setup/problem. Sorry if this report is not comprehensible, ask for details below. Thank you for you're time! (And sorry it's so long! :3)%%%

%%%When having any texture go through a noded Material, the Object in the textured viewport will not display the correct alpha/color/texture. Also, while editing(anything material/tex wise) with the viewport on GLSL, with that texture/material, it may crash. (Note: this is Blender Internal, not cycles; I do not know if this happens in Cycles) Should be all Blender versions, but for reference; Blender 2.63.17, r49522 OS: Win7 x64 ATI Radeon HD 4200 (integrated graphics) If you want to do the bug on you're own; |LONG INSTRUCTIONS(don't use these)| : http://www.pasteall.org/34409/text - Note; uncheck the Texture under the Tex. Tab under properties as well; it'll mess it up | -- | -- | Short instructions(use these): 1)Start up in the Factory-defaults 2)Make the Material into a node material 3)Make the Mat. Node into an Extended Mat. Node,with the original material selected 4)Make a texture which uses nodes, and add it to the Mat. Node setup; And uncheck it in the Tex tab to keep it from overriding the node setup. 5)Connect the Value to Alpha, and Color to Color of the Ext. Mat. Node. 6)Change the Viewport-Shading under the Properties tab of the 3D view to GLSL, and change the viewport shading to "Textured" Cube should be invisible in the viewport, but should render out just fine; this does the same with Generated tex's, as well as Image tex's. Now, under the node setup, play with the connections from the Tex. Node and the Mat. node. If you undo the alpha, you can see black; if you undo the color and alpha, you can see the diffuse color, and if you only undo the color, you'll see a tint of the diffuse color. The first .blend is one with the image texture(have no idea why the UV's aren't working), the second is what you get when you follow the instructions; third is an image of the setup/problem. Sorry if this report is not comprehensible, ask for details below. Thank you for you're time! (And sorry it's so long! :3)%%%

Changed status to: 'Open'

Changed status to: 'Open'

%%%Initial issue about using texture nodes in glsl preview doesn't seems to be a bug -- it's seems simply not implemented feature. Some crashes could be caused by having texture preview widget opened at the time you're editing nodes. It's known crap which goes deep to texture nodes design. To prevent that kind of crashes texture nodes should be rewritten from scratch, but new renderer is becoming production-ready so not sure if it makes sense to spend time re-writting the texture ndoes.

But your file allowed to discover bad bug in glsl shading -- at some points freed memory would be tried to be used. This happens because GPU_link() frees given link, but in some cases the same link would be used in other areas. Attaching valgrind.txt and patch which seems to be working, but would want somebody more familiar with this code to check this.%%%

%%%Initial issue about using texture nodes in glsl preview doesn't seems to be a bug -- it's seems simply not implemented feature. Some crashes could be caused by having texture preview widget opened at the time you're editing nodes. It's known crap which goes deep to texture nodes design. To prevent that kind of crashes texture nodes should be rewritten from scratch, but new renderer is becoming production-ready so not sure if it makes sense to spend time re-writting the texture ndoes. But your file allowed to discover bad bug in glsl shading -- at some points freed memory would be tried to be used. This happens because GPU_link() frees given link, but in some cases the same link would be used in other areas. Attaching valgrind.txt and patch which seems to be working, but would want somebody more familiar with this code to check this.%%%

%%%I see. So I'm guessing it's going to be a while 'till the tex. nodes are rewritten due to it's low priority?

And I'm glad that I'd reported at least one real bug. Thanks for the answers!%%%

%%%I see. So I'm guessing it's going to be a while 'till the tex. nodes are rewritten due to it's low priority? And I'm glad that I'd reported at least one *real* bug. Thanks for the answers!%%%

%%%I've commited patch to the svn. Should work fine now. All the remained stuff is a TODO, or maybe WontFix due to some possible smarter system development.

Thanks for the report, closing now.%%%

%%%I've commited patch to the svn. Should work fine now. All the remained stuff is a TODO, or maybe WontFix due to some possible smarter system development. Thanks for the report, closing now.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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#32296
No description provided.