Jump to content

How to dump render target in new inspector


Vousk-prod.
 Share

Recommended Posts

Hi team!!

I sometimes miss the old debug layer. For instance, I can't find a way in the new inspector to inspect rendertargets.

In the "textures" section, I can see the list of my renderTarget textures, but if I click on the blue link, I get an "undefined camera" error.

TypeError: camera is undefined    babylon.max.js:7754:17
	Engine.prototype.getAspectRatio babylon.3.0.max.js:7754:17
	Tools.CreateScreenshotUsingRenderTarget babylon.3.0.max.js:5820:45
	INSPECTOR</n.prototype.displayDetails babylon.3.0.max.js:409:9403
	INSPECTOR</n.prototype.select babylon.inspector.bundle.js:409:9712
	INSPECTOR</n.prototype._addEvent/< babylon.inspector.bundle.js:410:12904

In inspector / TextureTabs.ts, this is the line :

BABYLON.Tools.CreateScreenshotUsingRenderTarget(this._inspector.scene.getEngine(), texture.activeCamera, { precision: 1 }, (data) => img.src = data);

Don't know why activeCamera is undefined for that texture. I can tell you it is a probe's cubeTexture, and the probe has its refresh rate to 0, if that could be usefull info.

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...