Jump to content

Two worlds parenting


Aily
 Share

Recommended Posts

w1=createworld()
w2=createworld()

setworld w1
cube=createcube()
setworld w2
sphere=createsphere()

entityparent sphere,cube

 

And sphere now is in w1!

Is there any solution to put parented entityes in different worlds?

"Better" is big enemy of "good"

Link to comment
Share on other sites

you would have to set the position/rotation/matrix of the sphere to that of the cube instead of parenting...

 

this apparently got changed in LE2.32, as pixel found out recently in this bug report:http://www.leadwerks.com/werkspace/tracker/issue-174-alpha-blending-issues-when-planes-are-parented/

 

This is occurring because those entities get drawn in the main pass, since they are children of an entity in the main world. The rendering occurs in a hierarchy.

 

i suspect the same problem is occurring with what you are attempting...

Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590

LE / 3DWS / BMX / Hexagon

macklebee's channel

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...