feat(agent): support 3D degree comments, markup annotations, and config3d in read_asset (#473)

* feat(agent): support AI embedding, autofill, and read_asset for 3D assets

* feat(agent): support 3D degree comments, markup annotations, and config3d in read_asset

* fix(agent): resolve 3D session annotations to turntable degree frame time
This commit is contained in:
Yiling-J
2026-10-13 00:03:21 +08:00
committed by GitHub
parent 0f9d213b1d
commit fe8d404a44
26 changed files with 1687 additions and 21 deletions
+31
View File
@@ -3192,6 +3192,37 @@ export class TranscodeService {
await execFileAsync('ffmpeg', ['-y', '-loglevel', 'warning', ...args])
}
}
async generate3dViews(
inputFile: string,
outputViews: string,
signal?: AbortSignal,
): Promise<void> {
if (signal?.aborted) {
throw new Error('3D views generation cancelled')
}
const filterComplex = `[0:v]select='eq(n\\,0)+eq(n\\,6)+eq(n\\,12)+eq(n\\,18)',scale=1440:1440,tile=2x2[views_out]`
const args = [
'-i',
inputFile,
'-filter_complex',
filterComplex,
'-map',
'[views_out]',
'-frames:v',
'1',
'-c:v',
'libwebp',
'-q:v',
'85',
outputViews,
]
if (signal) {
await execFileAsync('ffmpeg', ['-y', '-loglevel', 'warning', ...args], { signal })
} else {
await execFileAsync('ffmpeg', ['-y', '-loglevel', 'warning', ...args])
}
}
}
function renderAnnotationsToSvg(