Lot M1 trait, étape B : lumière franche et ombre grise (X1, X2), le réglage ?rendu=avant (X6), mode fond inchangé (X7)
Hémisphérique 2,35 → 1,75, ciel refroidi #e4ebf6, sol #c9cbcd ; soleil 1,05 → 2,1 (même direction) ; ombre 0,7 → 0,62.
Mesures (banc, 2560 px) : contraste des pans témoin 1,13 → 1,32, maisons 4 et 13 1,07/1,10 → 1,29/1,34 ; saturation
de l'ombre portée (11 échantillons) 0,19 → 0,05. ?rendu=avant et ?mode=fond : 0 px contre c946484.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
907282c0ea
commit
eedcaff710
@@ -73,7 +73,7 @@ if (quoi === 'captures' || quoi === 'tout') {
|
||||
}
|
||||
}
|
||||
if (quoi === 'mesures' || quoi === 'tout') {
|
||||
const { ctx, page } = await ouvrir(1280, 800, 1, 'mesure', '');
|
||||
const MW = +(process.env.MESURE_W || 2560), { ctx, page } = await ouvrir(MW, Math.round(MW * 0.625), 1, 'mesure', '');
|
||||
// une image : passer par la boucle (besoin) n'est pas garanti sous mouvement réduit ; on rend par renderer avec la scène du canvas
|
||||
const st = await page.evaluate(() => {
|
||||
const r = window.__quartier.renderer; const before = { ...r.info.render };
|
||||
@@ -91,7 +91,7 @@ if (quoi === 'mesures' || quoi === 'tout') {
|
||||
for (const s of solsP) pts3.push(s.ombre, s.lumiere);
|
||||
const ecr = await page.evaluate((P) => P.map(([x, y, z]) => { const e = window.__quartier.ecran(x, y, z); return [e.x, e.y]; }), pts3);
|
||||
const sh = await page.screenshot();
|
||||
writeFileSync(`${out}/mesure-1280-${label}.png`, sh);
|
||||
writeFileSync(`${out}/mesure-${MW}-${label}.png`, sh);
|
||||
const px = await page.evaluate(async ({ b64, pts }) => {
|
||||
const img = await new Promise((ok) => { const i = new Image(); i.onload = () => ok(i); i.src = 'data:image/png;base64,' + b64; });
|
||||
const c = document.createElement('canvas'); c.width = img.width; c.height = img.height; const x = c.getContext('2d'); x.drawImage(img, 0, 0);
|
||||
|
||||
Reference in New Issue
Block a user