Jump to content

HighlightLayer is not working when we remove assets and add assets back.


oschakravarthi
 Share

Recommended Posts

Hi,

The HighlightLayer is not working when we remove assets and add assets back.

 
hl.addMesh(sphere, BABYLON.Color3.Green());

//Upto here it works perfectly.

///Let's remove all assets and put them back
 
var keepAssets=new BABYLON.KeepAssets();
keepAssets.lights.push(light);
keepAssets.cameras.push(camera);
 
var container=new BABYLON.AssetContainer(scene);
container.removeAllFromScene(keepAssets);
container.addAllToScene();
 
///They are back
 
hl.addMesh(sphere, BABYLON.Color3.Green()); ///This won't work

Here is the PG:

https://www.babylonjs-playground.com/#1KUJ0A#142

 

Any Clue?

Thanks in advance;

 

Link to comment
Share on other sites

Hi O!  We probably need highlight-professor @Sebavan to help us with this.  Other pros are nearby, too.

I did some testing with your playground (thx for providing a good one to test-with).

https://www.babylonjs-playground.com/#1KUJ0A#144

No solutions, yet.   Just tests.

Thx for the report!   It is an interesting issue-find.  hmm.  Stay tuned.  :)

Link to comment
Share on other sites

2 hours ago, Wingnut said:

Hi O!  We probably need highlight-professor @Sebavan to help us with this.  Other pros are nearby, too.

I did some testing with your playground (thx for providing a good one to test-with).

https://www.babylonjs-playground.com/#1KUJ0A#144

No solutions, yet.   Just tests.

Thx for the report!   It is an interesting issue-find.  hmm.  Stay tuned.  :)

If you again instantiate the highlight layer  after adding back the assets, it works

Link to comment
Share on other sites

  • 3 weeks later...
On 10/9/2018 at 12:09 AM, trevordev said:

Tracking the highlight issue here: https://github.com/BabylonJS/Babylon.js/issues/5324 and PR is out. Im still not understanding the vr camera moving issue you describe. Is there a playground for that one?

Thank you. I will create a PG for the VR camera moving issue. My brand new Dell laptop is went for servicing 2nd time. No laptop now.Only mobile. Once I get my laptop, i will create a PG

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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...