Objects with more than one material #31876

Closed
opened 2012-06-19 18:59:22 +02:00 by MrLarodos · 8 comments

Category: Physics

%%%Hi BlenderTeam!

If i have a floor-object (plane) with more than one material and my player "walks" on it, the BGE doesn´t notice on which material the player is walking. Only the first material in the objects material list will be recognized.
Thats especially not so nice if the player walks up a stone-ramp with a high friction value and the upper part of the ramp is covered with an ice material with low friction: The player doesn´t slide on the ice, because the first material in the objects material list is the one that gets recognized.

The only solution i found is to work with different objects, which gets very tricky if you want to build a floor in one piece...

In the attached file i have two scenes which you can test by pressing "p".

Scene 1 is called "1object": Here i have the floor and the ramp in one object and the player doesn´t slide as i mentioned above.

Scene 2 is called "2objects": Here i have the floor and the ramp in two different objects, but exactly the same materials attached to it. The player slides when he gets onto the ice as it should be.

Not shown in the file: If you want to check the current players walking-surface (f.e. with a collision- or raysensensor) with the ice-material in Scene 1 ("1object") you wont get it working. Blender always "thinks" that the player is walking on the first material in the objects material list. If it would work i could make different walking sounds on the different materials.

Question: Is it a bug or a feature?

Thank you in advance,
MrLarodos%%%

**Category**: Physics %%%Hi BlenderTeam! If i have a floor-object (plane) with more than one material and my player "walks" on it, the BGE doesn´t notice on which material the player is walking. Only the first material in the objects material list will be recognized. Thats especially not so nice if the player walks up a stone-ramp with a high friction value and the upper part of the ramp is covered with an ice material with low friction: The player doesn´t slide on the ice, because the first material in the objects material list is the one that gets recognized. The only solution i found is to work with different objects, which gets very tricky if you want to build a floor in one piece... In the attached file i have two scenes which you can test by pressing "p". Scene 1 is called "1object": Here i have the floor and the ramp in one object and the player doesn´t slide as i mentioned above. Scene 2 is called "2objects": Here i have the floor and the ramp in two different objects, but exactly the same materials attached to it. The player slides when he gets onto the ice as it should be. Not shown in the file: If you want to check the current players walking-surface (f.e. with a collision- or raysensensor) with the ice-material in Scene 1 ("1object") you wont get it working. Blender always "thinks" that the player is walking on the first material in the objects material list. If it would work i could make different walking sounds on the different materials. Question: Is it a bug or a feature? Thank you in advance, MrLarodos%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

%%%Can please anybody check this?%%%

%%%Can please anybody check this?%%%

Added subscriber: @raco

Added subscriber: @raco

@mrlarodos I've checked this and I can confirm that this is a bug. Maybe this simple blend will be more useful. Normally the Cube would be sliding faster until it reaches the grass material. Change the friction of the grass material to 0 or something low and you'll notice that indeed the friction value of the first material will affect the second material too.
Material_friction_bug.blend

@mrlarodos I've checked this and I can confirm that this is a bug. Maybe this simple blend will be more useful. Normally the Cube would be sliding faster until it reaches the grass material. Change the friction of the grass material to 0 or something low and you'll notice that indeed the friction value of the first material will affect the second material too. [Material_friction_bug.blend](https://archive.blender.org/developer/F96814/Material_friction_bug.blend)

To be more specific it's the first 'created' material, not just the material on the first material block.

To be more specific it's the first 'created' material, not just the material on the first material block.
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Aaron Carlisle self-assigned this 2019-06-29 02:20:37 +02:00
Member

This task is being closed because the BGE has been removed in Blender 2.8.

This task is being closed because the BGE has been removed in Blender 2.8.
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#31876
No description provided.