Shapes Keys + Drivers don't work in BGE in 2.5 (in 2.49 do) #22874

Closed
opened 2010-07-16 03:06:45 +02:00 by Mario Mey · 13 comments

Category: Animation
Duplicates: #26137

%%%Open the file in 2.49, and enter in the Game Engine. The sphere react to the bone that modify the shapekey.

Open in 2.5, it doesn't work.

The sphere is the child of the armature and it has a vertex group called as the bone "b" with all the vertex at weight 0.

Christopher Plush told me to do in that way and in 2.49 worked perfectly.

Blender 2.52.5 r30011

OS: Ubuntu 10.4

(this from 2.49 system information)
Platform: linux2


OpenGL:


  • Renderer: GeForce 7000M / nForce 610M/PCI/SSE2
  • Vendor: NVIDIA Corporation
  • Version: 2.1.2 NVIDIA 195.36.24%%%
**Category**: Animation **Duplicates**: #26137 %%%Open the file in 2.49, and enter in the Game Engine. The sphere react to the bone that modify the shapekey. Open in 2.5, it doesn't work. The sphere is the child of the armature and it has a vertex group called as the bone "b" with all the vertex at weight 0. Christopher Plush told me to do in that way and in 2.49 worked perfectly. Blender 2.52.5 r30011 OS: Ubuntu 10.4 (this from 2.49 system information) Platform: linux2 **** OpenGL: **** - Renderer: GeForce 7000M / nForce 610M/PCI/SSE2 - Vendor: NVIDIA Corporation - Version: 2.1.2 NVIDIA 195.36.24%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

%%%Any news...?%%%

%%%Any news...?%%%
Member

%%%Hey, I spent some time on this one (I have not used the animation system before and I know/knew nothing about the code that does this):

I first tried to find the code that's

First of all: if you use a shape key actuator, shape keys work, in the end this is not a shape key bug!

I tried to redo the test file here, what really doesn't work are drivers in the BGE, I've attached my own testfile where the cube location is also driven by the bone and you'll see in both 2.4 and 2.5 see that it doesn't work in the BGE but in normal animation playback.

That you have to add a vertex group (name and weight don't seem to matter!!!) to get the driven shape key working in the BGE is pretty strange already, so I guessed there is a dirty hack to get this working. And for some reason the hack doesn't work anymore in 2.5 (maybe due to the new animation system).

cam (ideasman42) confirmed this assumption, quote: <ideasman_42> I think we hacked drivers + shape keys

This has been done for yo frankie.

My suggestion now is not to fix the hack, but implement driver support in the BGE, this actually makes the bug into a feature request, but the question is if there's time for that and how much work it is, that's something to be decided by cam, therefore assigned to him. :)%%%

%%%Hey, I spent some time on this one (I have not used the animation system before and I know/knew nothing about the code that does this): I first tried to find the code that's First of all: if you use a shape key actuator, shape keys work, in the end this is not a shape key bug! I tried to redo the test file here, what really doesn't work are drivers in the BGE, I've attached my own testfile where the cube location is also driven by the bone and you'll see in both 2.4 and 2.5 see that it doesn't work in the BGE but in normal animation playback. That you have to add a vertex group (name and weight don't seem to matter!!!) to get the driven shape key working in the BGE is pretty strange already, so I guessed there is a dirty hack to get this working. And for some reason the hack doesn't work anymore in 2.5 (maybe due to the new animation system). cam (ideasman42) confirmed this assumption, quote: <ideasman_42> I think we hacked drivers + shape keys This has been done for yo frankie. My suggestion now is not to fix the hack, but implement driver support in the BGE, this actually makes the bug into a feature request, but the question is if there's time for that and how much work it is, that's something to be decided by cam, therefore assigned to him. :)%%%
Member

%%%Ahh, just found this: https://projects.blender.org/tracker/index.php?func=detail&aid=22850&group_id=9&atid=498

I closed it marked as a duplicate, but note that there's yet another driver test file.%%%

%%%Ahh, just found this: https://projects.blender.org/tracker/index.php?func=detail&aid=22850&group_id=9&atid=498 I closed it marked as a duplicate, but note that there's yet another driver test file.%%%
Author

%%%Joerg, thanks for take a look to this kind of bug.

I tried your file and works like mine, in 2.49 it works, in 2.5 it doesn't.

I really appreciate the time and effort that you put in this development. I don't want to hurry anybody, please, don't take this as a hurry. I only tell you that I am doing a digital puppeteer and I would need this function working when I finish the work (I think to release it in november). I read that you don't know how much time this will cost... but if there is a easy way to hack it temporarily, to make it work, it will let me test it and rehearse with it. Even if just only the shapes keys.

Thanks a lot.%%%

%%%Joerg, thanks for take a look to this kind of bug. I tried your file and works like mine, in 2.49 it works, in 2.5 it doesn't. I really appreciate the time and effort that you put in this development. I don't want to hurry anybody, please, don't take this as a hurry. I only tell you that I am doing a digital puppeteer and I would need this function working when I finish the work (I think to release it in november). I read that you don't know how much time this will cost... but if there is a easy way to hack it temporarily, to make it work, it will let me test it and rehearse with it. Even if just only the shapes keys. Thanks a lot.%%%
Author

%%%Any news?

Thanks a lot.%%%

%%%Any news? Thanks a lot.%%%
Author

%%%Something...?%%%

%%%Something...?%%%

%%%Mario, stick to 2.49 for the time being. ShapeKeys themselves are still with problems in 2.50.
(e.g. http://projects.blender.org/tracker/?func=detail&aid=25991&group_id=9&atid=306)

Renaming the entry for clarity reasons (since it's a driver problem).
Maybe there is another way of accomplishing what you are trying to do?%%%

%%%Mario, stick to 2.49 for the time being. ShapeKeys themselves are still with problems in 2.50. (e.g. http://projects.blender.org/tracker/?func=detail&aid=25991&group_id=9&atid=306) Renaming the entry for clarity reasons (since it's a driver problem). Maybe there is another way of accomplishing what you are trying to do?%%%
Author

%%%Thanks for responding, Dalai Felinto.

I'm working on Pinokio 3D, a digital puppeteer (http://www.youtube.com/watch?v=oC6XF3NS7ys). It can work without ShapeKeys... but with so much skinning work to make the face deforms. And I have a lot of ideas that they won't exist without ShapeKeys. I am waiting for that.

I am working in 2.5 and it has more than 100 actions... I can't go back to 2.49 (also, I like 2.5 so much more that 2.49!)

If it is a drivers problem... when it is fixed, can we use FK-IK sliders, for example?

Thanks for your time!%%%

%%%Thanks for responding, Dalai Felinto. I'm working on Pinokio 3D, a digital puppeteer (http://www.youtube.com/watch?v=oC6XF3NS7ys). It can work without ShapeKeys... but with so much skinning work to make the face deforms. And I have a lot of ideas that they won't exist without ShapeKeys. I am waiting for that. I am working in 2.5 and it has more than 100 actions... I can't go back to 2.49 (also, I like 2.5 so much more that 2.49!) If it is a drivers problem... when it is fixed, can we use FK-IK sliders, for example? Thanks for your time!%%%

%%%Shape key drivers should be working in the BGE (as of 2.60). The shape key drivers appear to be working in the provided example files in trunk. Could you please verify if your problem is solved?%%%

%%%Shape key drivers should be working in the BGE (as of 2.60). The shape key drivers appear to be working in the provided example files in trunk. Could you please verify if your problem is solved?%%%

%%%I've not gotten a reply in over a week, and since the example works in trunk, I'm going to assume the problem is fixed.%%%

%%%I've not gotten a reply in over a week, and since the example works in trunk, I'm going to assume the problem is fixed.%%%

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Author

%%%Yes, it's fixed! I've been using shape keys in BGE since last year. But I didn't test other drivers.

Thanks.%%%

%%%Yes, it's fixed! I've been using shape keys in BGE since last year. But I didn't test other drivers. Thanks.%%%
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
4 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#22874
No description provided.