Dok11
July 25, 2019, 10:24am
1
Third argument of this method doesnt have interface but can
https://doc.babylonjs.com/api/classes/babylon.screenshottools#createscreenshotusingrendertarget
As I can see in doc the interface may be like this
CreateScreenshotUsingRenderTarget(
engine: Engine,
camera: Camera,
size: {
height?: number;
precision?: number;
width?: number;
} | number,
Dok11
July 25, 2019, 10:46am
2
And in the CreateScreenshotAsync
and CreateScreenshot
uses same options for size, so it should be define outside as independent interface like:
interface IScreenshotSize {
height?: number;
precision?: number;
width?: number;
}
and
CreateScreenshot(engine: Engine, camera: Camera, size: IScreenshotSize | number...
CreateScreenshotAsync(engine: Engine, camera: Camera, size: IScreenshotSize | number...
CreateScreenshotUsingRenderTarget(engine: Engine, camera: Camera, size: IScreenshotSize | number...
CreateScreenshotUsingRenderTargetAsync(engine: Engine, camera: Camera, size: IScreenshotSize | number...
agree! Do you want to do the PR?
Dok11
July 25, 2019, 5:24pm
4
No thank. I still not read section “for contributors”, maybe in far furute =)
Sad…this could be a good way to help others
Dok11
July 26, 2019, 9:15am
6
You know how to convince, i’ll try
1 Like
Dok11
July 26, 2019, 12:04pm
7
@Deltakosh see, I made it changes, and created PR, check it please
1 Like
Thanks man! truly appreciated
1 Like
Dok11
July 29, 2019, 2:46pm
9
@Deltakosh @sebavan and why when precision
setup the width
and height
from options will be ignored?
That could be a good improvements using width and height if defined
1 Like
Dok11
July 29, 2019, 4:35pm
11
I made pull from upstream and cant build app by exec cd Tools/Gulp/ && npm install && npm run build
Maybe you can prompt me what I need to do with it?
2019-07-29T16_26_20_016Z-debug.zip (1.5 KB)
Did you also installed gulp locally and globally?
https://doc.babylonjs.com/how_to/how_to_start
Dok11
July 29, 2019, 4:42pm
13
I did it before (at friday) npm install -g gulp@4.0.0
– globally
And locally from package.json at root of babylon.js folder
Pinging @sebavan as I have no idea what this error could be
Can you try gulp --max-old-space-size=8192 in the tools/gulp folder and provide me the log ?
Your current log does not highlight the issue unfortunately
Dok11
July 29, 2019, 5:11pm
16
Ok, I wil try, but currently common error is
[at-loader] ..\..\loaders\src\glTF\2.0\Extensions\ExtrasAsMetadata.ts:5:27
TS2307: Cannot find module 'babylonjs-gltf2interface'.
Dok11
July 29, 2019, 5:15pm
17
No, error not changed and still looks like this:
gulp-log.zip (2.6 KB)
w00000t this is really strange that it does not happen on the build server or for us locally I can not understand where this would come.
Can you try (just for testing purpose) to clone in another directory navigate to tools/gulp then npm install then gulp --max-old-space-size=8192 ???
Dok11
July 29, 2019, 5:20pm
19
I’ll try but now I see what my IDE show error in the gltf-loader
This should definitely not happen as if you look in the tsconfig.json it references the file from the dist folder. Can you check you have the file dist/preview release/glTF2Interface/babylon.glTF2Interface.d.ts ???