Vousk-prod. Posted July 7, 2017 Share Posted July 7, 2017 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. Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 7, 2017 Share Posted July 7, 2017 Hello, I'll try to reproduce your issue with a reflection probe, and see what happens. Thanks for the feedback ! Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 8, 2017 Share Posted July 8, 2017 activeCamera is not always define in this case we should revert to texture.getScene().activeCamera Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted July 8, 2017 Author Share Posted July 8, 2017 If I remember well I already tried this, but it dumps the current view, and not the actual renderTarget image. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 8, 2017 Share Posted July 8, 2017 it should I've just tried Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 12, 2017 Share Posted July 12, 2017 @Vousk-prod. : a new PR has been merged few minutes ago. With the new version of the inspector DK will create soon, you will be able to see all 6 textures for your reflection probe. I hope it will be ok for you. If you need anything else about the inspector, let me know Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted July 12, 2017 Author Share Posted July 12, 2017 Nice !! Thanks a lot. A new inspector is planned? Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 13, 2017 Share Posted July 13, 2017 We update it very frequently, but it's deployed on the PG at each update. Quote Link to comment Share on other sites More sharing options...
Vousk-prod. Posted July 14, 2017 Author Share Posted July 14, 2017 Oh I know that, I thought you were talking about a "brand new" inspector (a third one, which is not necessary at all, the current one is doing great stuff, you're doing an awesome job on it @Temechon, thanks !) Temechon 1 Quote Link to comment Share on other sites More sharing options...
Temechon Posted July 15, 2017 Share Posted July 15, 2017 Cool Let me know if you want something to add on it, i'll see what I can do ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.