vujadin / BabylonHx

Port of Babylon.js 3D engine to Haxe.
http:/paradoxplay.com/babylonhx
Apache License 2.0
189 stars 43 forks source link

Pickable InstancedMeshes #70

Open mightymarcus opened 8 years ago

mightymarcus commented 8 years ago

It's not possible (at least for me) to pick instanced meshes with Bhx. I tried a demo in the babylonjs playground, and there it works, but the same doesn't work with Bhx.

vujadin commented 8 years ago

I've set isPickable property to false by default (in BJs its true), can't remember why though (probably for performance reason ?!). Could you try setting isPickable = true for your root mesh before creating instances and check if it makes a difference ?

mightymarcus commented 8 years ago

Of course I tried that. ;)

vujadin commented 8 years ago

Picking works with SPS so that might be temporary workaround for you

mightymarcus commented 8 years ago

I had a workaround using invisible clones "behind" the instances, which gave good performance too. But anyway I was just trying something and don't need it currently. Thanks.