BGE don't hide object object #43607

Closed
opened 2015-02-09 10:35:10 +01:00 by jimy-byerley · 12 comments

I'm creating a game with the blender game engine, but I have some bugs in hidding objects, like my character's hair in FPS vew mode
I taken some screenshots where you can see in green zones hair and skin of the main character.
2015.2-5.png

2015.2-6.png

I use the python API to hide these objects, I use KXGameObject.visible = False
When i display the visible property i says that the object is hidden : print(KXGameObject.visible) ----> False
I also tried with KXGameObject.setVisible(False) but it didn't works too.

My project is at GitHub : Tron-R

I'm creating a game with the blender game engine, but I have some bugs in hidding objects, like my character's hair in FPS vew mode I taken some screenshots where you can see in green zones hair and skin of the main character. ![2015.2-5.png](https://archive.blender.org/developer/F142061/2015.2-5.png) ![2015.2-6.png](https://archive.blender.org/developer/F142063/2015.2-6.png) I use the python API to hide these objects, I use KXGameObject.visible = False When i display the visible property i says that the object is hidden : print(KXGameObject.visible) ----> False I also tried with KXGameObject.setVisible(False) but it didn't works too. My project is at GitHub : [Tron-R ](https://github.com/jimy-byerley/Tron-R-reboot-reloaded-)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @jimy-byerley

Added subscriber: @jimy-byerley

Added subscriber: @mont29

Added subscriber: @mont29

Please do not set status of bug yourself, this is dev task.

Please do not set status of bug yourself, this is dev task.
Member

Added subscriber: @JorgeBernalMartinez

Added subscriber: @JorgeBernalMartinez
Member

Hi,

please check if it is the same issue that #43606

Hi, please check if it is the same issue that #43606
Author

I applied enought modifier to remove all material bugs, but the character skin is still shown

I applied enought modifier to remove all material bugs, but the character skin is still shown
Member

It seems that you have the camera view inside the main character. I have checked your game and at the beginning you have an similar issue (you can view through your own body because the camera doesn't have cap rotation limits).

Could you upload a smaller test file because it is very difficult to debug using a big game (and don't knowing where to look)?

It seems that you have the camera view inside the main character. I have checked your game and at the beginning you have an similar issue (you can view through your own body because the camera doesn't have cap rotation limits). Could you upload a smaller test file because it is very difficult to debug using a big game (and don't knowing where to look)?
Author

I did a smaller file with the same character. It just contains the character and a plane to walk on.
The bug appear when you look at the ceiling in first person view (bug for hair). Or in the same view when you look at the floor by 45° and jumping (the character skin is as far from the camera to be displayed (bug of the skin).

the head is a different object of the body because the body should not be hidden. See lib/character/specials/clu.blend (where are clu and flynn bodies, clu doesn't bug at contrary of flynn).

To try my exemple you probably want to change the game controls, to do it : set the 'forward', 'back', ... attributes of the class 'keys' in file aperture/avatar/config.py

There is my exemple file. exemple.blend
to put at the root of the project (blender links are relatives).

(I'm sorry for my bad english)

I did a smaller file with the same character. It just contains the character and a plane to walk on. The bug appear when you look at the ceiling in first person view (bug for hair). Or in the same view when you look at the floor by 45° and jumping (the character skin is as far from the camera to be displayed (bug of the skin). the head is a different object of the body because the body should not be hidden. See lib/character/specials/clu.blend (where are clu and flynn bodies, clu doesn't bug at contrary of flynn). To try my exemple you probably want to change the game controls, to do it : set the 'forward', 'back', ... attributes of the class 'keys' in file aperture/avatar/config.py There is my exemple file. [exemple.blend](https://archive.blender.org/developer/F144412/exemple.blend) to put at the root of the project (blender links are relatives). (I'm sorry for my bad english)
Member

Sorry, but i was trying to test this bug without much success.

I change it to incompleted until we have a method to test it well

Sorry, but i was trying to test this bug without much success. I change it to incompleted until we have a method to test it well

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2015-06-06 14:40:58 +02:00

Nothing new here since weeks, time to archive.

Nothing new here since weeks, time to archive.
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#43607
No description provided.