Constraints for group instances working #31443

Closed
opened 2012-05-13 10:37:14 +02:00 by Martin Sell · 9 comments

%%%This patch is a quick implementation of the proposal, to get working physics constraints for group instances.

The complete proposal an implementation description:
https://gitorious.org/bge-sandbox/pages/GroupCons

Some files for testing ragdolls, and the common constraints from the regression files:
http://dl.dropbox.com/u/2779060/BGE/group-constraints.patch
http://dl.dropbox.com/u/2779060/BGE/group-constraints_ragdoll.blend
http://dl.dropbox.com/u/2779060/BGE/group-constraints_regression.blend

Video on youtube:
http://www.youtube.com/watch?v=jjWOuRTTTj0&list=UUCkdSwOkvF-tkvtLjEN_JsA&index=9&feature=plcp%%%

%%%This patch is a quick implementation of the proposal, to get working physics constraints for group instances. The complete proposal an implementation description: https://gitorious.org/bge-sandbox/pages/GroupCons Some files for testing ragdolls, and the common constraints from the regression files: http://dl.dropbox.com/u/2779060/BGE/group-constraints.patch http://dl.dropbox.com/u/2779060/BGE/group-constraints_ragdoll.blend http://dl.dropbox.com/u/2779060/BGE/group-constraints_regression.blend Video on youtube: http://www.youtube.com/watch?v=jjWOuRTTTj0&list=UUCkdSwOkvF-tkvtLjEN_JsA&index=9&feature=plcp%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

%%%cleanup:
With the newer patch, a function for the constraint setup is created, that is used in the scene converter routine and also in KX_Scene class to avoid code duplication.
Some changes to sconscripts and header includes are made to get this to work.

what was tested so far:

  • instantiating groups with constraints via add->group instance
  • instantiating groups with constraints via python game engine api addObject()
  • instantiating groups with constraints via edit object actuator -> add object
  • instantiating groups that are loaded on inactive layers with LibLoad function

for using groups with constraints as a library there are some restrictions at the moment.

  • objects with constraints have to be created on inactive layer
  • objects with constraints have to be instantiated on inactive layer, these objects could then be loaded with LibLoad and then added via addObject/actuator
  • only working with "Scene" mode for LibLoad

%%%

%%%cleanup: With the newer patch, a function for the constraint setup is created, that is used in the scene converter routine and also in KX_Scene class to avoid code duplication. Some changes to sconscripts and header includes are made to get this to work. what was tested so far: - instantiating groups with constraints via add->group instance - instantiating groups with constraints via python game engine api addObject() - instantiating groups with constraints via edit object actuator -> add object - instantiating groups that are loaded on inactive layers with LibLoad function for using groups with constraints as a library there are some restrictions at the moment. - objects with constraints have to be created on inactive layer - objects with constraints have to be instantiated on inactive layer, these objects could then be loaded with LibLoad and then added via addObject/actuator - only working with "Scene" mode for LibLoad %%%

%%%Assigning this to Benoit to look over.%%%

%%%Assigning this to Benoit to look over.%%%
Member

%%%Patches updated from GIT to SVN.
group-constraints.patch = group-constraints_HG1.patch
group-constraints-20.5.2012.patch = group-constraints2_HG1.patch
%%%

%%%Patches updated from GIT to SVN. group-constraints.patch = group-constraints_HG1.patch group-constraints-20.5.2012.patch = group-constraints2_HG1.patch %%%
Member

%%%Thanks for the patch,

I had a first look, I see no problem with it. I'll have a second closer look in the coming days.

%%%

%%%Thanks for the patch, I had a first look, I see no problem with it. I'll have a second closer look in the coming days. %%%

%%%I really don't like the CcdPhysicsEnvironment.h include in BL_BlenderDataConversion.h. KX_Scene should not have to access Bullet directly, this defeats the purpose of encapsulating the physics library.%%%

%%%I really don't like the CcdPhysicsEnvironment.h include in BL_BlenderDataConversion.h. KX_Scene should not have to access Bullet directly, this defeats the purpose of encapsulating the physics library.%%%
Member

%%%I made a bug fixed from the last patch.

Change list:

  1. Added the missing paths in the makefile.
  2. Fixed. Don't add constraints for Objects on inactive layers.
  3. Fixed crash after deleting and adding a new object with constraints.
  4. Fixed replicated objects are replicated the constraints on the target object instead of the source object.
  5. Fixed implicit cast in setup_constraint4object.
  6. Add missing documentation for getParent, setParam, constraint_id.
  7. Add a function to get the constraint form Blender generated constraints.
  8. Add attribute to get the constraint type.

group-constraints7_HG1.patch with [#36388] Delete recursive DupliGroup objects.
group-constraints8_HG1.patch
%%%

%%%I made a bug fixed from the last patch. Change list: 1. Added the missing paths in the makefile. 2. Fixed. Don't add constraints for Objects on inactive layers. 3. Fixed crash after deleting and adding a new object with constraints. 4. Fixed replicated objects are replicated the constraints on the target object instead of the source object. 5. Fixed implicit cast in setup_constraint4object. 6. Add missing documentation for getParent, setParam, constraint_id. 7. Add a function to get the constraint form Blender generated constraints. 8. Add attribute to get the constraint type. group-constraints7_HG1.patch with [#36388] Delete recursive DupliGroup objects. group-constraints8_HG1.patch %%%
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Member

Moved to Differential D658.

Moved to Differential [D658](https://archive.blender.org/developer/D658).
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#31443
No description provided.