Changelog - WebGi SDK v0
0.22.1
- Add
viewer.setRenderSize(size, mode?, devicePixelRatio?, containerSize?)— explicit render-size API (fixes a case where 2500x2500 exports came out 2498x2498). Pins the requested integer size so the animation loop no longer round-trips throughcanvas.clientWidth(which rounds the CSS box and floors away pixels); the buffer becomes exactlyfloor(size * devicePixelRatio).mode(contain/cover/fill/scale-down/none, defaultcontain) only shapes the canvas CSS box. The pin survives container resizes (CSS fit box is not recomputed — call again to refit);viewer.clearRenderSize()(orviewer.setSize()) clears the pin and returns to responsive layout-driven sizing; XR sessions ignore the pin. Invalid sizes throw, requests beyondmaxTextureSize / devicePixelRatioclamp with a warning, and a one-shot warning guards against buffer/request mismatch regressions. TextureProjector: support fonts given asdata:URLs (e.g. uploaded font files). The@font-facerule omits theformat()hint when no file extension is available, so browsers sniff the format instead of rejecting a wrong hint;TextureProjectorPlugin._getAssetDatareturnsdata:paths as-is soembedUrlRefskeeps them inline.- Add
ObjectPicker.cycleThroughHitsflag (default:true) to optionally disable cycling through overlapping ray hits and keep selecting the nearest hit. - Fix
TextureProjectorPluginshader compile failure in minified/production builds: the projection declarations chunk was appended directly after#include <common>, whose expansion ends in a} // validatedline comment with no trailing newline. In minified builds (whereprojectionMapping.glsl's own leading comments are stripped) the chunk's uniform/varying declarations fused onto that comment line and were silently dropped, causing "undeclared identifier" errors (vWorldNormal,numActiveProjectors,projPosition1,getProjectionMappedColor, …). Unminified dev builds were unaffected. Injected chunk is now newline-wrapped.
0.22.0
- Fix material configurator variation collapse:
applyVariationwas mutating imported library.dmatmaterials in the registry via name-regex match (imports keep their.dmat's original name like'Gem 01'), poisoning the asset cache; any subsequent re-import of the same URL returned the corrupted material, so flows that re-clicked a library item produced variation snapshots all sharing the last-applied body. AddedonlyAppliedMeshesparam toIMaterialManager.applyMaterial(defaultfalse);MaterialConfiguratorBasePlugin.applyVariationopts in to restrict the name walk to materials currently attached to a mesh.VariationConfiguratorPluginand other callers unchanged. - Drag-drop UX overhaul in
CoreEditorApp: image drops prompt (Environment / Background / As Plane) via the newviewer.choose()multi-button picker;.cubeLUT files route toLUTPluginslots in order (lutMap → lutMap1 → lutMap2), auto-enable the plugin if disabled, and report which slot got loaded; multiple textures dropped at once go through one prompt then become planes; routing via new'lutTexture'asset type - Add
HTMLDialogPluginas a drop-in replacement forWindowiseDialogPlugin, usinghtmlDialogWrapperfrom ts-browser-helpers;WindowiseDialogPluginis now@deprecatedand scheduled for removal by end of 2026 (still exported, still works, butCoreEditorAppno longer uses it) - Security: harden
WindowiseDialogPluginagainst XSS — Windowise's underlyingUtility.createElementwrites itstext:field viadom.innerHTMLwithout escaping, so caller-controlled strings (e.g. user-typed input echoed back throughviewer.alert(...)) could execute injected HTML. Alltitle/text/ button-textfields are nowescapeHtml'd before being passed intoModal/Input; newlines intextare still converted to<br>after escaping.HTMLDialogPluginwas never affected (htmlDialogWrapper escapes by default). - Add
viewer.choose(message, options)API for multi-button picker dialogs (mirrored inWindowiseDialogPluginfor parity) - Pin
[email protected](was v1.1.404) — fixes syncloadImagealways wrapping non-imageFileas a broken<img>; v1.1.405 adds MIME-type guard so non-image drops (.cube, etc.) route correctly tpImageGenerator: register textures by their image element id in a module-leveltextureMapso inter-slot drag-drops recover the original asset (Texture/LUTCubeTextureWrapper) instead of constructing a newTexturefrom a copied data URL; null-guard&& v.src != nullon the OR-chain; File-path fallback towebkitRelativePath || name- gltf import: only treat as legacy bump scale when WebGi-generated (foreign GLBs from Blender / drei / model-viewer / threepipe etc. default to modern post-r158 normalized shader); detection via
WEBGI_viewer.metadata.generator === 'WebGiViewerApp'orversionpresent withoutgenerator(pre-May-2023 WebGi files) - Shader decode fallback:
glsl-encode-loadernow emits a visible hot-pink fragment / minimal vertex shader when XOR decode fails (license-key mismatch on custom domains), plusconsole.errorand a'ijewel-shader-decode-failed'CustomEventonwindowfor app-level handling - DiamondMaterial absorption slider extended
[0, 30](was[0, 15])
0.21.5
- Initialize
outColor = colorat the top oflut.glsl colorLookUp()so a material targeting an unloaded LUT slot passes the color through unchanged (was uninitialized; previously fell back to LUT0 via the else branch, but that branch can also be empty if LUT0 isn't loaded) - Widen outer LUT shader guard from
USE_LUT == 1to(USE_LUT == 1 || USE_LUT1 == 1 || USE_LUT2 == 1)so per-mesh LUT1/LUT2 dispatch actually executes the lookup when only LUT1/LUT2 are loaded - Add
enableOnAll/disableOnAll@uiButtonmethods onLUTPluginfor bulk-toggle across all registered materials (setsuserData[LUTPlugin.PluginType].enableand refreshes per-material UIs)
0.21.4
- Round flag-byte readback in
unpackGbuffer.glsl:ivec4(texture * 255. + 0.5)(was* 255.). Without+ 0.5, the readback round-trip (n / 255then* 255in float) lands just belownon some channels (e.g.0.976470588 * 255 ≈ 248.9999...) andivec4truncation makes itn - 1— off-by-one on per-mesh LUT slot dispatch (lutIndex=1read back as0→ always LUT0), bevel enable bits, and other flag-byte fields
0.21.3
- LUTPlugin: per-input file-type filter via
extensions: ['.cube']on the@uiImagedecorators forlutMap/lutMap1/lutMap2, so dropped non-.cubefiles don't get accepted into LUT slots - LUT preview thumbnails now render through the actual 3D LUT —
tpImageGenerator.lutPreviewDataUrl()samples a 3-band reference strip (grayscale luminance ramp / desaturated midtone rainbow / saturated rainbow) through the LUT's voxel grid via trilinear interpolation; supports bothUint8andFloat32voxel data and both.texture3Dand legacy.texture2D-fallback wrappers; distinct LUTs now produce visibly distinct thumbnails
0.21.2
- Fix
MeshStandardMaterial2andDiamondMaterialcopyProps(withclearCurrentUserData=true) clobberinguserData.__appliedMeshes. The pre-existing ignore listiMaterialIgnoredUserDatahad a stale'appliedMeshes'entry (no__prefix), so the actual__appliedMeshesset was getting nuked on every copyProps call — breakingapplyMaterial's mesh-walk path. Now both materials explicitly preserve__appliedMeshesafter the wipe-and-restore step
0.21.1
- Null-safety in
tpImageGenerator's LUT-image branch: guardret.imageaccess whenret(cc.texture) is undefined; LUT wrappers without a built texture no longer crash the panel
0.21.0
Fix legacy bump scale not detected in 0.20.0 for pmat/vjson files re-saved with
metadata.version = 4.6001butuserData.legacyBumpScale = true(bump maps looked different, users had to manually toggle legacy)Remove
legacyBumpScalefromiMaterialIgnoredUserData— let it persist naturally through pmat/vjson round trips (it's the only version signal for re-saved legacy materials)GLTF import detection priority now: (1)
normalizedScalein bump extension, (2)userData.legacyBumpScalefrom extras (pre-dev.16 WebGi files), (3) file-level fallback (subversion/vcVersion)Clear stale
legacyBumpScaleon GLTF import only whennormalizedScaleexplicitly says non-legacy (prevents flag leaking through extras from overriding the new-shader decision)Add
rotateAroundParentandoffsettoObjectRotationPluginfor symmetric ring layouts; persisted per-object in userDataFix
ObjectRotationPluginre-entrancy bug where switching selection clobbered the previous object's state via cascading@onChangesettersRun
autoScaleObject3Don every ring-state change (not just count); drop the camera resetUI now refreshes when toggling
enabledafter selecting an objectAdd
ICamera.setNearFar(near, far)for atomic near/far updates with a single projection matrix recomputeRefactor
CameraController.near/farto plain getter/setters backed by the underlying three.js camera (removes shadow state and the@onChangecascade);RootScene.refreshActiveCameraNearFarnow usessetNearFarAdd
TextureProjectorPlugin— manages projection-mapped decals (text, image, video) onto meshes with up to 2 projectors per material, bump mapping, and shader integrationExtract
TextureProjectorclass — standalone projection camera with spherical orbit controls (phi/theta/roll), FOV auto-fit, content API (setText/setImage/setVideo), and serializationAdd orbit target, crosshair debug view, placement reset, and orbit roll
Fix orbit mode to work in mesh local space
Replace orbit axis mode with spherical coordinates (phi/theta)
0.20.0
Legacy Bump Scale (breaking fix)
- Comprehensive fix for legacy bump map detection across all file formats (GLB, GLB+draco, pmat, vjson)
- Add
normalizedScalefield toWEBGI_materials_bumpmapGLTF extension — survives draco/gltf-transform compression - 4-priority detection: per-material
normalizedScale>asset.subversion> viewer config version > assume legacy - Add "Legacy Bump Scale" checkbox in material UI (Bump/Normal folder) to toggle between old and new shader behavior
- Fix round-trip data loss when
bumpScale,displacementScale, orlightMapIntensityis 0 with a map assigned legacyBumpScaleno longer persists in material userData through re-exports — version detection re-evaluates on each import- Preserve color space for textures in GLTF extras (export
t_colorSpace, imported in three.js fork GLTFLoader)
GLTF Export
- Add
WEBGI_materials_separate_metalroughextension to preserve separate metalness/roughness textures without canvas merge - Add
mergeMetalnessRoughnessMapsoption onGLTFExporter2Options(default:falsefor faster export)
Multi-Object Selection
- Add multiple object selection across PickingPlugin, TransformControlsPlugin, and PivotControlsPlugin
- Add
MultiSelectHelperfor multi-object transform with undo support - Add
multiSelectEnabledtoggle on PickingPlugin and ObjectPicker - Multi-select outline support in OutlinePlugin
- Multi-select highlighting in HierarchyUiPlugin with Shift+Click toggle
- Keyboard shortcuts: Ctrl+A select all, Escape clear selection
- Consumed flag on hit intersects to skip selection changes
- Fix ground shadow rebaking on selection changes
- Extra selection widgets for secondary selected objects
Pivot Controls
- Add PivotControlsPlugin with drei-style pivot gizmo (all handles visible simultaneously)
- Add PivotEditPlugin with interactive pivot point editing, preset buttons, and undo support
- Widget picking infrastructure:
isWidgetRoot,selectedHandle,selectedWidgetresolution in PickingPlugin - Add
extraObjectson ObjectPicker for raycasting widget roots - Fix
pivotToPointto compensate other meshes sharing the same geometry
Domain Verification & Licensing
- Add domain-based license verification system with hash-based source integrity checks
- Add staging support with debug query params and network resilience
- Expose domain verification results via
domainResultsgetter andijewel-domain-verifiedevent for mini-viewer - XOR-encode proprietary GLSL shaders with split key derivation
- Encode license strings at build time via webpack loader
- Centralize CDN config as single source of truth
CI/CD
- Add release workflow via GitHub Actions with R2 upload and overwrite prevention
- Changelog validation and automated GitHub release creation
Bug Fixes
- Fix OutlinePlugin event listener leak on plugin removal
- Fix SwitchNodeBasePlugin
snapIconsloop exiting early (returnchanged tocontinue) - Fix PivotControls and TransformControls
detach()to end active drag and reset state cleanly - Fix shader decryption on CDN (webpack public path and key derivation)
- Fix iframe origin handling for domain verification
- Move Delete/Duplicate Object buttons above material config in object UI
- PickingPlugin
onRemovecleanup for event listeners
0.19.0
- Update three.js to
r168 - Adds
dispersiontoMeshStandardMaterial2. - Add Fix to Object option in
TriplanarUVMappingPlugin - Removed
BatchExportPluginandAutoUVMappingPluginfromaddbasePlugins BatchExportPlugin, replace title with uuidAutoUVMappingPlugin, load uniforms through material.extraUniformsToUpload- Add
rhino3dmquery param to load specific version of rhino3dm inRhino3dmLoader2 resetCurrentMaterialinDepthNormalMaterial- Fix for SSBevel not working, when using a vjson where SSBevel is disabled
- Fix for shader issue in autoUVShader patching
- Use
getOrAddPlugin(instead ofaddPlugin) inaddEditorPlugins(exceptTweakpaneUiPlugin) - Remove
BatchExportPluginfromCoreEditor
0.18.0
- Breaking Change Environment map rotation is now saved in the scene under
scene.environmentRotation(Euler). Earlier it used to be defined inscene.environment.rotation - Update three.js to
r163 - Update version config (result of
ViewerApp.toJSON),metadata.versionto from1to2 FragmentClippingMaterialExtensionnow works with draco compression- Fix for some rare image load issues when loading remote urls
- Add support for
DRACOLoader2.DRACO_LIBRARY_PATH - Add support for
userDataSkipCloneto be able to skip objects from being cloned when put inside userData. - Fix for bump map not looking correct when loading some old material files and applying to object using
copyProps. - Add batched mesh support to
GBufferPluginandVelocityBufferPlugin - Serialize
Eulerautomatically in serialization system. - Fix for some files with non uniform scale not working correctly in
CannonPhysicsPlugin. - Removed
WebGLMultipleRenderTargets. For multiple targets,WebGLRenderTargetcan be used directly - Set
applyToAlphaMapfalse by default inSimpleTextPlugin. - Remove GLTF Animations on object dispose in
GLTFAnimationPlugin. - Remove use of
evalfromDRACOLoader2, addDRACOLoader2.EvalProxywhich is set when its required (inGLTFSpecGlossinessConverterPlugin,GLTFDracoExportPlugin) - Support external map serialization in
AnisotropyPluginandCustomBumpMapPlugincustom extensions when exporting glb with gltf-transform - Add
FlatMaterialExtensionPlugin. - Fix
snapObject(used inSwitchNodePlugin) to render invisible objects when snapping. - Add to object UI -
Delete Object,Duplicate Object,Wrap in Parent,Remove Material,Add Physical Material,Add Unlit Material,Set Material By Name - Update Diamond UI Config on environment map change.
- Add sampler UI for Scene Background Image
- Save envMapRotationOffsetX/Y/Z in
diamondMaterial - Make Gem Inclusion blurring independent of the dpr
- Add
BatchExportPlugin
0.17.1
- Save envMapRotationOffsetX/Y/Z in
diamondMaterial - Make Gem Inclusion blurring independent of the dpr
0.17.0
- Add new extensions in GLTFLoader
- Deprecate webgi bump map gltf extension in favor of khr bump map extension
- Fixes in DiamondPlugin and GemRefractionPlugin
- Other minor UI/UX fixes and improvements
0.16.1
- Minor fix in
MaterialConfiguratorBasePluginwhere first character in name mapping is escaped by regex. - Fix lag in
MaterialConfiguratorBasePluginon selection change even when the UI is hidden.
0.16.0
- Support playback of viewer animations(animation object) when recording turntable camera.
- Fix for watch hands plugin that prevents canvas recorder to start in converge mode.
- Hide ijewel3d evaluation version watermark
- Improve UI Config in
MaterialConfiguratorBasePlugin, add support for showing all variation groups. - Add
regexparameter to variation groups inMaterialConfiguratorBasePlugin. (default true) - Change usage of
innerHTMLwhich could lead to XSS bugs.
0.15.4
- Fix for some image blobs not being saved in glTF when imported with tweakpane UI.
- Fix animation duplication when exporting glTF files.
- Minor cleanup in
TransformAnimationPluginuserData - Preserve animation extras as
AnimationClipuserData in glTF
0.15.3
- Animate camera target along spline when using Camera View animation
- Add
VideoTextureLoader - Fix for
roughnessMap,metalnessMapserialization in glTF files when loaded withAssetImporter
0.15.2
- Fix for shadows not being correct when SwitchNodePlugin is used
0.15.1
- Add
SwitchNodeBasePlugin.selectNodeandSwitchNodeBasePlugin.updateSceneOnSelectionChange - Fix for
SSAAnever converging in some files.
0.15.0
- Update three.js to r160
- Add
stopPointerEventPropagationin Viewer options. Set it totrueto prevent mouse/touch events from bubbling over the canvas. - Serialize applyOnLoad in
MaterialConfiguratorBasePlugin, addapplyOnLoadForce(for old files) - Set
stopPointerEventPropagationtotrueby default inCoreViewerApp.
0.14.1
- Fix a bug in
DiamondPluginwhen materials are not cleared on configurator change andcopyProps - Interface
AnimationObjectPluginwithPopmotionPluginandCanvasRecorderPluginto be able to use with video recording. - Simply UI to single hierarchy in
AnimationObjectPlugin
0.14.0 (Major changes related to diamonds/jewelery)
- Add
GemRefractionPlugin,MipMapBlurPass,MipMapBlurPlugin - Add inclusions support in
DiamondMaterial - Removed
licenseKeyparameter forCoreViewerApp - Add undo/redo support for image edit actions in
TweakpaneUiPlugin - Export
WatchHandsPlugin - Fix issues when loading some fbx, 3dm files
0.12.3
- Add gltf export only visible to ui
- Ignore auto prepare diamond mesh when its a Line or invisible.
0.12.2
- Reset glTF version to
2.0inGLTFWriter2which fixes DRACO Compression.
0.12.1
- Downgrade
rhino3dmfrom8.9.0to8.0.1after which a bug is introduced while loading some files.
0.12.0
- Updated three.js to r158
- Fix a bug in TAA where background was smearing when MSAA was disabled
- Updated
bumpScalehandling in standard material,CustomBumpMapPlugin,NoiseBumpMaterialPluginis changed. Files saved before this version will use the old scale, no change is required in the files. - Fix a bug in
SimpleTextPluginwhere fonts are not applied correctly when style is not passed orfont-familyis invalid. - Allow relative paths in
fontPathinSimpleTextPlugin - Fix regression when loading svg data urls with
AssetImporter - Update asset version in material files
0.11.2
- Improve
HierarchyUIPlugin- Highlight selected item and children
- Improved visibility toggling
- UI Fixes
- Set
imported.nameto load url or filepath/filename after importing an asset throughAssetImporterif it's set to empty string'' - Allow loading
avif,ico,bmp,gif,tifffiles with defaultTextureLoaderby default inAssetImporter, and add in tweakpane image ui.
0.11.1
- Add WatchHandsPlugin
- Add Support for model stage placeholder animations
- Fix a bug in Firefox where license notice is shown on registered domains.
- Add enabled to RendererUiPlugin
- Add
confirmandconfirmMessagetoGLTFSpecGlossinessConverterPlugin - Add
modelRootScaletoIViewerAppOptions - Add support for setting
modelRootScale,autoScale,autoCenter,autoScaleRadiusin core-editor using query params
0.11.0 (Major changes)
CanvasSnipperPlugin- add optionsprogressiveFrames,tileRows,tileColumns, normalized rect to snapshot options. Add options to UI.- Add method
DiamondPlugin.unprepareDiamondMesh, unprepare diamond geometries whenMake Standardis clicked in the UI. AddgetAllCacheMapsfor performance debugging. - Removed
IViewerAppinterface. Use the classViewerAppdirectly. - Signature for
IViewerViewerPluginchanged to removeIViewerApp - iJewel3d license verification now checks for license on embedded iframes.
- Updated
Rhino3dmLoader2.LIBRARY_PATH, which requires rhino3dm version>8.0.0. If usingRhino3dmLoader2.LIBRARY_PATH, update the version to latest8.9.0from npm. - Fix a bug where userData is cleared in Light toJSON
- Set
autoPushTarget2totruefor main cameraOrbitControls3inCoreEditorApp. (not serialized) - Add
GLTFSpecGlossinessConverterPluginto automatically convertspecular-glossiness(KHR_materials_pbrSpecularGlossiness) tometal-roughnessin gltf files on load. - Add function
getBevelMaterialsinSSBevelPluginto get list of all materials in the scene that have bevel enabled. - Update maximum bevel radius in UI to 15 in
SSBevelPass - Add custom ffmpeg options in
FFMPEGRecorder - Add per camera view duration override
- Allow webp as internal type for video record in
CanvasRecorderPlugin. - Add
SVGTextureLoaderwith option to load SVG files as textures with fix for windows black texture for SVGs with no size. - Add options -
deleteImportedViewerConfigOnLoadandautoDisposeSceneMapstoRootScenewith defaulttrue- If using the private property
__importedViewerConfigafter model load, setdeleteImportedViewerConfigOnLoadtofalse
- If using the private property
- Add property
KTX2LoadPlugin.SAVE_SOURCE_BLOBSfor use in editors. - Allow picking
.ktx2files in tweakpane image input. - Add events to
IMaterial-addToMesh,removedFromMesh. - Add hooks to
MaterialExtender-onMaterialUpdate,onAddToMesh,onRemoveFromMesh,onRegister. - Auto compute tangents whenever required in
AnisotropyPlugin. - Fix deserialization of
ktx2uris,svg, other image type files inside gltf - Fix serialization of textures inside
material.userDatawhen downloading material json(pmat, dmat) - Update to three.js
r157(0.157.1007) (fromr153)- Strongly typed event type system with proper maps (Breaking Change for typescript classes)
- Add
Material.alphaHash - Add
OrbitControls.zoomToCursor - Add
ArcballControls.rotateSpeed - Add
Loader.DEFAULT_MATERIAL_NAME - Add support for loading PBR materials in 3dm files. Changes in
3DMLoader WebGLRenderTargetextendsRenderTarget,WebGLMultipleRenderTargetsextendsWebGLRenderTarget- Add
toCreasedNormals(BufferGeometryUtils) - Parse parameters changed in
EXRExporter,EXRExporter2forDataTextureinputs - RenderPass
clearColor,clearAlphadefaults to null useLegacyLightsremoved- The GLSL struct
GeometricContexthas been removed from the GLSL code base- Change
geometry.positiontogeometryPosition,geometry.normaltogeometryNormal,geometry.viewDirtogeometryViewDir... - Related - https://github.com/mrdoob/three.js/pull/26805
- Change
- AnimationUtils.arraySlice() has been removed
- Removed
RGBMToLinear,LinearToRGBMfrom shaders. UseRGBM16ToLinearandLinearToRGBM16 - Renamed shader chunks
encodings_fragment->colorspace_fragmentencodings_pars_fragment->colorspace_pars_fragmentoutput_fragment->opaque_fragment
- Updated
@types/threepackage path - https://github.com/repalash/three-ts-types/releases/download/v0.157.1005/package.tgz - Removed
getTexelDecoding. RenamegetTexelDecoding2togetTexelDecoding - Removed
getTextureColorSpaceFromMap,getTexelEncodingFunction,getTexelEncoding - Removed official support for webgl 1. Some features might not work.
- Suppress useless warning -
WebGi DiamondMaterial: Material type is not supported - Fix custom size on window resize in
RendererUiPlugin
0.10.7
- Add angle, duration (for turntable animation) and end padding ms in
CanvasRecorderPluginto the ui config.
0.10.5
- Fix a bug in
AssetManagerPluginwhen an error was thrown when loading without options.
0.10.4
- Minor fixes in
SSBevelPluginandPosePlugin
0.10.3
- Minor fix in
SSBevelPluginwheresceneBevelRadiusoverrides object radius
0.10.2
- Add options
sceneBevelandsceneBevelRadiusinSSBevelPassinSSBevelPlugin - Remove stored
poseIndexwhen pose is reset inPosePlugin
0.10.1
- Fix serialization error due to
PosePlugin
0.10.0
- Upgrade source to Typescript 5.7 (from 4.9)
- Add
pivotToPoint,pivotToBBoxCenter. Rotates a node around bounding box center of the node, or a pivotpoint - Fix for image drop not working in
TweakpaneUiPluginimage. - Add properties to
Rhino3DMLoader2-HidePointMesh,LoadUserDataStrings,LoadUserDataWarnings. Added toRhino3dmLoadPlugin-hidePointMesh,loadUserDataStrings,loadUserDataWarnings. - Clamp file names to 16 characters in
LoadingScreenPlugin - Fix reset flicker in
InteractionPromptPlugin - Fix for
DiamondMaterialinitialization without any properties. - Add support for
camera.userData.dollyFovwhich automatically move the camera to fit scene when the fov changes - Add
TransformControlsPlugin,TransformControls2for 3D transform controls. - Fix bug in
TAA,DiamondPluginwhere black squares where shown because of someNaNvalues, whenuseRgbm = false - Removed
controlsfromPickingPluginin favor ofTransformControlsPlugin - Add
PosePluginto automatically compute poses to place objects on the ground. - Add custom map sampler/uv transform properties for Anisotropy material extension in
AnisotropyPluginand UI - Add utility parameters to
makeSamplerUi
0.9.22
- Fix for an edge artifact when looking at ground at an angle in
SSRPlugin. - Several recording fixes including frame count check in
FFMPEGRecorder, complete 360 rotation and last frame capture. - Allow removing model stage using a plugin preset.
- Make
onCompleteandonStopasync inPopmotionPlugin. - Create
ModelStagePresetGroupfor both glb and json and use inPresetLibraryPlugin. - Remove
preImportedfrom presets inPresetLibraryPluginbefore export. - Add Basic Undo/Redo functionality in
TweakpaneUiPlugin. - Add
maxHDRIntensitytoIViewerAppOptionswhich can be set when creating theViewerApp - Add
ViewerApp.serializePluginsIgnoredto ignore loading/exporting some plugins when loading files - Minor fix in
MaterialPresetPluginapply. - Add
isEditorflag inFrameFadePlugin, other minor fixes. - Ignore
CameraViewPlugin,MaterialConfiguratorPlugin,RendererUiPlugin,ParallaxMappingPlugin,SwitchNodePlugin,ModelStagePlugin,GLTFAnimationPlugin,FrameFade,AssetExporterPluginwhen loading presets inVJSONPresetGroup. - Set default roughness to
0.75for ground material inBaseGroundPlugin. Previous default was0.2. - Add
autoFrustumSizein GroundPlugin. Which sets the light frustum size to 0.5 of ground size. - Minor fix in
InteractionPromptPluginwhere loaded camera position is not loaded when animation is running. - Ignore viewer config when loading model in ModelStagePlugin, which can be loaded manually with
importStageViewerConfig. - Add
importConfigtoAddModelOptions, which can be set to false to disable automatic import of embedded config(vjson) when files are loaded/added. - Dispatch event
webgi_editorModeChangedin window, which mode is changed inCoreEditorApp. - Fix camera aspect ratio and animations when canvas is not initialized or has no size.
0.9.21
- Improve
MaterialConfiguratorBasePlugin - Handle a case for disabling interaction prompt during camera animation.
- Create
ModelStagePluginand add toaddBasePlugins - Add getter
LoadingScreenPlugin.visibleto check if the loading screen is visible. - Remove plugin
SceneLoopPluginfromaddBasePlugins. It must be added separately. - Use
viewer.scene.modelRootbounds inBaseGroundPlugininstead ofviewer.scenebounds. - Handle textures in files in
GLTFLoaderwheresourceIndexis invalid like -1. - Update
DiamondPluginto automatically validate license keys. - Add
isEditortoLoadingScreenPluginso it doesn't interfere with drop - Fix an issue when loading some json material files in
ThreeMaterialLoader - Fix an issue when applying materials in
VariationConfiguratorPluginwhen using old config files - Add
snapIcons,autoSnapIconsand properly remove event listeners inSwitchNodeBasePlugin - Add
copyMaterialPropsinAMaterialManager - Small fix for
minimizeOnSceneObjectLoadinLoadingScreenPlugin - Add
VJSONPresetGroupinPresetLibraryPluginthat ignores camera, loading, interaction plugins - Fix for duplicate entries in
PresetGroup - Add
showColorSchemeinExtrasUiPlugin - Add
MaterialPresetPlugin - Add
WaveGroundPlugin - Add
SnowFallPlugin - Add
PluginPresetGroup('ModelStage')inPresetLibraryPlugin
0.9.20
- Add
RootScene.textureSlotsto support material specific environment map slots. - Add
EnvironmentUI toMeshStandardMaterial2.uiConfig - Fixes related to global dispose of objects.
- Fixes in
SimpleBackgroundEnvUiPlugin. - Fixes related to camera interaction handling for some edge cases.
- Add
TrackballControlsPlugin. - Add
SimplifyModifierPluginandMeshOptSimplifyModifierPlugin. - Add
MeshOptSimplifyModifierPlugin,TrackballControlsPlugintoCoreEditorApp
0.9.19
- Add
LayeredMaterialPluginfor Layered Materials(included inaddBasePlugins). Useful for rusted metals, dirt cavities, zbrush material's look and feel. - Add Cavity AO in
SSAOPlugin. Useful to add small scale AO for small cavity regions. - Updates to
SSAOPlugin. SSAO scale based on the model bounding radius and camera fov. - Updates to
OutlinePlugin. Outline thickness based on the display canvas scale. - Updates to
SSBevelPlugin. Bevel radius based on the display canvas scale. - Fixes in
DiamondPlugin. Handle edge cases for incorrect input data, increase limit for fixing mirror/topology issues to 1500 faces. - Add Screen Space Curvature to
xchannel in gbuffer flags buffer inGBufferPlugin. - Fix an issue where
CameraController.positiondidn't update when OrbitControls are used. - Change max value of intensity to 5 in
SSAOPlugin
0.9.18
- Allow disabling regex check in
MaterialManager.applyMaterial. - Removed
PresetLibraryPluginfromaddBasePlugins. It must be added separately. - Update projection matrix on
setDirtyinCameraController. - Fixes for some serialization issues.
- Enable Interaction Prompt Plugin only when in the Plugins tab in the CoreEditor.
- Other minor fixes.
- Add options
presetLibrary,switchNode,materialConfiguratortoaddEditorPlugins - Add
forceCurrentparameter toanimateTarget, add support for string and number when usingmakeSetterForfor three.jsColor TweakpaneUiPluginfinds and adds itself to div with idtweakpaneMainPanelSlotif it exists, instead ofdocument.body- Fixes in auto-generation of ui-config when using arrays.
- Add plugin
GradientSvgPlugin(dev) - Add plugin
AnimationObjectPlugin(dev)
0.9.17
- Add support for cube render target in
BaseRenderer.clearColor. - Add option
cloneCanvasinCanvasSnipper - Fix some issues with rendering for concave geometries in
DiamondPlugin - Minor performance fix in
SSAOPlugin.
0.9.16
- Ignore the
upvalue in camera view inCameraViewPlugin.setCurrentCameraView. - Fix for instance getting stuck in
CanvasRecorderPlugin. (waiting for interactions to disable) - Suppress
Unable to importwarning forvjsonfiles.
0.9.15
- Updates to
PresetLibraryPluginandPresetGroup. Addclearmethod to both and add preset group of typeVJSON. - Add
TransfrSharePlugintoCoreEditorAppand export in runtime bundle. - Improved warning/error messages in the core and several plugins.
- Change typescript compile target to
es2019fromes2020.
0.9.14
- Performance fixes in DiamondPlugin.
- Removed
DiamondPluginfrom addBasePlugins, it must be added separately. - Fix issues with loading some textures in files saved in old versions.
- Reset color when using background preset group
- Performance fix in
HierarchyUiPlugin.
0.9.13
- Fix an error for edge case in
GLTFLoader - Enable
depthTonemapby default inaddEditorPluginsandsetupSandboxWebGiEditor(deprecated). - Make public getter for
viewerinAViewerPlugin - Disable material unregister when disposing(in Material Manager), it has to be unregistered manually by the plugin responsible
- Improvements to
VelocityBufferPlugin- Fix clear color for 0 velocity inSSVelocityPass, small shader improvements inTAA
0.9.12
- Fix performance issue in Hierarchy UI Plugin
- Fix flicker in loading screen
- Add
applyOnLoadtoMaterialConfiguratorBasePlugin - Add
addExtensionandcreateAndAddExtensiontoGLTFDracoExporter - Other Minor fixes
0.9.11
- Make
fetchfunction public inAWSClientPlugin. - Prevent material cloning in
GLTFLoaderwhen not required. - Fix shader error in
AnisotropyPluginafter three.js update to r153. - Center pointer icon properly in
InteractionPromptPlugin.
0.9.10
- Fix in
AssetManagerLoadingBarPluginwhere loading bar gets stuck at 99% on any file load error. - Changes in
AWSClientPluginto handle several chrome bug related to cloning a request object. - Fix usage of
pluginsDisabledinVelocityBufferPlugin
0.9.9
- Add static variables
GLTFMeshOptPlugin.DECODER_URLandDRACOLoader2.LIB_CDN_PATHfor changing path of externally loaded libraries. - Fix loading screen logo image object fit in Safari
- Remove opaque check for SSAO material extension.
- Add support for disabling SSAO cast per material by setting
material.userData.pluginsDisabledtofalseormaterial.userData.ssaoCastDisabledtotrue - Add support for disabling velocity buffer(for TAA) per material by setting
material.userData.pluginsDisabledtofalseormaterial.userData[VelocityBufferPlugin.PluginType]to{disabled: true}. - Add support for material.userData.pluginsDisabled in SSR, SSCS, SSRTAO, SSGI and Bloom.
0.9.8
- Fix
InteractionPromptPlugin.PluginType. Set toInteractionPromptPluginfromInteractionPointerPlugin - Fix scene material's
alphaTestnot being used inDepthNormalMaterial(GBufferPlugin) - Fix pointer centering in container in
InteractionPromptPlugin
0.9.7
- Update three.js to
r153. Changelog, Migration Guide. Notes:- WebGL 1 support deprecated
- Functions in
bsdfs.glslremoved - Custom Anisotropy extensions could break
- Changes in XRManager related to camera.
- Add support for highlighting by materials and by materials of same name in
OutlinePlugin. Parameters -highlightSelectedMaterials,highlightMaterialSameNames. Note: these are not serialized. - Fix a runtime error in
legacySeparateMapSamplerUVFixwhile loading some files. - Serialize
apply*properties inSimpleTextPlugin - Fix issue where same image with different samplers is not loaded as different textures in
GLTFLoader - Minor runtime error fix in
Texture.toJSON.
0.9.6
- Fix an error when a file with controlsMode = none is loaded.
- Add static properties
PointerClickMaxTimeandPointerClickMaxDistancetime, distance threshold toObjectPickerfor click. - Re-add SwitchNodePlugin to the editor
CannonPhysicsPlugin- ignore invisible objects inmakeBody- Support function in tweakpane dropdown children in
TweakpaneUiPlugin
0.9.5
- Trim path in asset importer for parsing file extension.
- Fix issue in DepthOfFieldPlugin where bloom was not having an effect
- Add
TransfrSharePluginin the editor. - Fix in
CustomContextGridfor when used inside a shadowRoot, - Add tippy.js styles to
WebGiViewerElement(webgi-viewer) - Revert
FrameFadePluginissue fix. minimizeOnSceneObjectLoadinLoadingScreenPluginalso checks for scene.environment and doesn't minimizes if its null.- Set
autoStartDelayto30000(30 sec) by default inInteractionPromptPlugin.
0.9.4
- Set
useGBufferDepthto false by default inViewerAppconstructor. - Add support for morph targets in DiamondPlugin
- Minor fix in auto instance diamonds in Diamond plugin UI.
- Change default
BloomPass.intensityto0.2from0.5inBloomPlugin - Change default
SSAOPass.parameters.falloffto1.3from1inSSAOPlugin - Fix ground edge issue when tonemap disabled
- Add options to
addSceneObjectevent in RootScene - Add
duplex: halfwhenAWSClientPlugin.USE_PROXY - Add GemEnvironment2, GemEnvironment2 to PresetLibraryPlugin
- Add RainbowDiamondPlugin Plugin.
- Perform legacySeparateMapSamplerUVFix for files exported pre-0.7.6.
- Add envMapRotationOffset for x, y, z axis in
DiamondMaterial. - Change defaults in
CanvasRecorderPlugin-convergeMode = true,mimeType = video/mp4, also automatically clampmaxFrameCount(ProgressivePlugin) in record method. - Set
animationPauseDurationto6000by default inInteractionPromptPlugin. - Disable
ObjectRotationPluginby default - Fixes in VRPluginBasic
- Made improvements to fix frame drag issue in
FrameFadePlugin. - Improve performance of
GBufferPluginin some cases.
0.9.3
importPopupset to true by default inCoreViewerApp.initialize. Adds theLoadingScreenPluginif set to true- Add
interactionPrompt(default true) inCoreViewerApp.initialize. Adds theInteractionPromptPluginif set to true - Add
InteractionPromptPlugin, and toaddBasePlugins - Add
VRPluginBasicfor webxr VR support - Add
shadowMapTypetoShadowMapBakerandGroundPluginUI - Fixes in
DepthNormalMaterial,GBufferPlugin - Add support to use MRT in
WebGLRenderer.readRenderTargetPixels,EXRExporter,BaseRenderer.renderTargetToDataUrl - Dispatch
afterRenderevent inObject3D.onAfterRender - Add
rendersPerFrameandcanvasTexturetoViewerApp. - Add
depthTextureTypeanddepthTextureFormattoCreateRenderTargetOptionsandBaseRenderer.createTarget - Fix error in texture serialization where
texture.source.datawas set to null on error. - Remove bounds from
FragmentClippingExtensionPluginUI. - Fix shader error in
TriplanarUVMappingPluginwhenenvironmentis null - Add
renderDepthTextureanddepthTextureTypeinGBufferPlugin - Fixed a race condition in
ChromaticAberrationPlugin,FilmicGrainPlugin,VignettePluginrelated to uniforms. - Minor fix in
TransformControls2 - Make editor modes ui scrollable on phone.
0.9.2
- Improved Ui in Tweakpane UI plugin, added black, white and blue(default) color schemes(
colorMode). - Add color scheme switching in
ExtrasUiPlugin. - Add
GeometryGeneratorPluginwith several shape primitives - Update theme for CustomContextGrid UI(used in Material and SwitchNode configurator)
- Expand dropzone plugin by default in UI
- Add context menus to Material configurator UI to update directly
- Remove Scene Objects from UI
- Add
addToRootparameter inViewerApp.createObject3D - Fix mouse lock when pointer leaves the canvas in OrbitControls
- Handle an edge case in Geometry center (keep position) option in the UI
LoadingScreenPluginui fixes when minimised- Fix UpdateView in camera view UI
- Fix error in
CannonPhysicsPluginwhenPickingPluginis not added to the viewer - Rename
visibletoenabledinObject3DWidgetsPlugin, add option to disable by default - Catch error in
ScrollableCameraViewPluginwhen div is not found.
0.9.1
- Add
LoadingScreenPlugin - Clamp camera near to a minimum value of 0.001 when using autoNearFar
- Dispatch events
processFileStartandprocessFileEndinAssetImporter - Replace
AssetManagerBasicPopupPluginwithLoadingScreenPluginfor defaultimportPopupinaddBasePlugins,CoreViewerAppandCoreEditorApp - Fix
alphaVignette(inShadowMapBaker) material defines when ground reflections are turned off - Dispatch events
preRenderCamera,preBlitCamera,postRenderCamerafromVirtualCamerasPlugin - Fix correct class as target in ui config button type value function.
0.9.0
- Rename
LightWidgetsPlugintoObject3DWidgetsPlugin - Add
VirtualCamerasPluginto render virtual cameras to a render target in preRender before the main/active camera. - Add
Add CameraUI button to SceneCamerasUiPlugin. - Add
renderToScreeninBaseRenderer.render. - Fix near far initialization in
CameraController - Add
IScene.renderCamera - Minor fix in
Rhino3dmLoader2.ForceLayerMaterials - Add
ACameraHelperWidget,AHelperWidget - Add
CameraHelper2(CameraHelper with fat lines) - Add
onEndinAnimationOptionsfor popmotionanimate - Add support for storing multiple last frame targets for every camera in
ProgressivePlugin - Add
CanvasRecorderPlugin.recordCamera360to record camera 360 animation from current position, fix offset bug when starting record after any camera view animation and target center in record 360 in CanvasRecorderPlugin. - Fix color space warning in
CustomBumpMapPlugin - Cleanup targets on screen using
DebugPlugin - Rename
objectReftoobjectinIWidget - Add support for passing other animation options in
animateCameraToViewSpherical - Fix
TransformAnimationPluginnot showing in the UI - Changes in SSBevelPass.ts, OutlinePlugin.ts, ProgressivePlugin.ts, DepthOfFieldPlugin.ts, FrameFadePlugin.ts, GBufferPlugin.ts, SSContactShadows.ts, SSRTAOPlugin.ts, TemporalAAPlugin.ts, VelocityBufferPlugin.ts, changing activeCamera to renderCamera
- Other minor fixes
0.8.9
- Fix load of 3dm files that have
InstanceReferencewith multiple objects. - Add
ignoreWidgetsinRootScene.getBounds. - Properly serialize/deserialize object, material, geometry
userDatain gltf files, useful for three.js primitives. - Add UI config for
Rhino3dmLoadPlugin, add options forforceLayerMaterialsandhideLineMeshinRhino3dmLoadPluginandRhino3dmLoader2. - Add
ignoreObjectinBox3B.expandByObject. - Increase
MaxCanvasScaleto5inRendererUiPlugin. - Add
updateViewinCameraViewand its UI to update existing camera view. - Fix
enabledgetter inGenericFilterPluginwhich was always returning the initial enabled state of the plugin/pass(FixesDepthOfFieldPlugin,BloomPlugin, etc). - 'Add Spot-light' in
LightsUiPlugin. - Add right-click menu to material configurator UI with option to remove individual materials.
- Add
TransformAnimationPluginto save and animate to different transform states of an object. - Add
LightWidgetsPluginwithDirectionalLightHelper2,SpotLightHelper2,PointLightHelper2
0.8.8
- Add refreshScene flag in scene.setDirty options(same as scene update)
- Fix crash in Reflector2 when environment background is used
- Context restore crash fix.
- Make function optional in
ThreeViewer.doOnce. Now, to wait for end of frame simply doawait viewer.doOnce('postFrame') - Add
syncMaxDurationinGLTFAnimationPlugin. If set to true, the animation duration for all clips will be set to the max duration of all animations in the gltf file. - Add Ambient Light, Add Point Light in
LightsUiPlugin - Add
defaultModesinCoreEditorAppwhich can be edited before callingsetupUi. With this all tabs and arrangement can be set in code. - Add parameter
modesinCoreEditorApp.setupUi, using this all modes can be set from scratch in code. CameraController.userDatanow same asCameraController.cameraObject.userData.- Fix
autoNearFar,minNearandmaxFarserialization for default camera in GLTF files and viewer config.
0.8.7
- Fix transmission rendering with MSAA(isAntialiased) enabled.
- Export functions from three.js
BufferGeometryUtils - Add
env-metal-14.exrin default presets. - Add
ObjMtlLoadPlugin,FBXLoadPlugin,Rhino3dmLoadPlugin,STLLoadPlugin,EXRLoadPlugin,GLTFMeshOptPlugininaddBasePlugins. - Allow string as presets in
PresetGroup - Add minimum duration of 10ms in
CameraViewPlugin.animateToView - Allow loading preset groups from a json file url in
PresetLibraryPlugin.loadPresetGroups, use json fomexportPresetGroups
0.8.6
- Set default minimum near plane in camera to 0.5
- Updates and fixes in three.js types
- Fixes for WebGL 1 rendering
- Fix runtime error when context restored on some devices.
- Add define WebGL2Context in shaders
- Minor fixes
0.8.5
animatePromiserenamed toanimateAsync.- Add
renderScaleas an alias ofdisplayCanvasScalinginBaseRenderer. - Fix near plane clipping with
autoNearFarwhen camera is inside a model. - Make regex match exact string in
AMaterialManager. - Fix for tweakpane UI interfering with
colorSpacein textures loaded from the UI. - Allow
undefinedparameter insetEnvironmentMapandsetBackgroundMapinViewerApp, it has the same effect asnull
0.8.4
- Add support to enable/disable bloom for each material through the UI config.
- Move
BloomPluginbeforeGroundPlugininaddBasePlugins - Add
env-metal-gem-3,env-metal-gem-4environments in editor presets - Add support to export GLTFMeshGpuInstancing extension in GLTFExporter.
- Add
autoGPUInstanceMeshesto the bundle for automatically converting meshes with same geometry and material to GPU instanced meshes. - Add
Center Geometry (keep position)andAuto GPU instancein Geometry and ExtrasUIPlugin. - Fix
Box3Bfor instanced meshes. - Dispatch events
shadowBakingandshadowBakedfrom ShadowMapBaker - Fix outline color issue for visible/hidden objects
- Change default outline color in
OutlinePlugin - Promises from
PopmotionPlugin.animateandanimatePromisewill reject if an error is thrown in theonStoporonCompletecallback, which can be caught by the application. - Fix a bug in materials keeping mesh references after variation change. (in Material.copyProps)
- Add support for RegExp in
MaterialManager.findMaterialsByName - Fix for extra hover events firing when nothing is hovering.
- Remove
waitForProgressivefrom typeSnipOptions - Set default
alphaTestto0.01in ShadowMapBaker when using alphaMap mode. - Add support for
displacementMap, fixalphaMapTransforminDepthNormalMaterial(used inGBufferPlugin) - Improvements in stopping other camera view animations when starting a new animation with
animateToViewinCameraViewPlugin - Add
throwOnStopparameter toCameraViewPlugin.animateToViewto throw an error if the animation is stopped by starting another animation. - Add support to put arbitrary
datainIConfiguratorVariationinVariationConfiguratorPlugin. Includes support for traversing children and validating material type while applying materials.
0.8.3
- Fix regex match to exact match in MaterialManager.applyVariation
- Fix for Material Configurator changing other materials.
0.8.2
- Add Auto Near far to the camera UI
- Add clampMin, clampMax to OrbitControls, OrbitControls3
- Fix for export extensions not working when added before registering a file.
- Fix scroll issues with
CustomContextGrid - Serialize
enabledproperty inParallaxMappingPlugin - Add GPU instancing support to
DiamondMaterial - Other minor fixes, UI tweakes and performance improvements.
0.8.1
- Fix alphaMap read, opacity in depth buffer and gbuffer pass.
- Add stepPhysics and Make bodies from root objects in
CannonPhysicsPlugin - Add
Apply Allin Material configurator UI. - Add
colorWriteto Unlit and Physical material UI. - Fix scrolling in custom context grid for configurators
- Add support for
alphaMapTransformin DepthNormalPass and SSVelocityPass - Fix LUT, tonemap and flags buffer on some low-end Android devices (by using int ops)
- Material name is now preserved when converting a physical material to diamond material.
- Add recomputeOffsets debug flag in the editor for
DiamondPlugin - Changes to auto dispose logic of material and geometries.
- Fix camera near-far calculating when panning very far from the camera target.
- Add regex support in
MaterialManager.findMaterialsByName - Use
getOrAddPlugininaddBasePlugins - Fix for
onCompleteandonStopnot firing inPopmotionPlugin - Fix for nested auto-generated UI config rendering with decorators.
0.8.0
- Fix HalfFloat and Float target export in
BaseRenderer.renderTargetToDataUrlandBaseRenderer.renderTargetToBuffer - Fix an infinite loop in
RendererUiPluginwhen canvas had floating point size - Add Shadow Type in
ExtrasUiPlugin - Export utils
textureToDataUrl,textureToCanvas, can be used to convert any texture or data texture to a canvas or export as png/jpeg - Add
loadedBytes,totalBytestoimportFileevent inAssetImporter - Support string(url) input in
AssetImporter.importSingle - Fix initial state in
AAssetManagerProcessStatePlugin, by calling_updateMainDivwhen added to the viewer. - Add
enableRefreshTransforminBaseGroundPluginto programmatically control ground plane transform refresh - Add
autoDisposetoVariationConfiguratorPlugin. Default = true. When set to false the items will not be disposed when removed. - Improvements in
CannonPhysicsPlugin, add support for mouse pick and add it to the editor underAnimations - Keep model hierarchy and fix model reuse after dispose, if reference is saved.
- Fix issue when progressive rendering doesn't resume after
CannonPhysicsPluginis disabled. - Export
CannonPhysicsPluginin the bundle - Fix an issue in Rhino 3DM load when layer material was not used in some cases
- Add support for reading
fadeDurationfrom eventssceneUpdate,materialObject,activeCameraChangeinFrameFadePlugin - Add normalBias to Progressive Shadow UI (RandomizedDirectionalLight)
- Fixes in automatic near far computation when zoomed out.
- Add
texImageToCanvasto convert any texture image including DataTexture to convert to a canvas. - Fixes in
textureToDataUrlandtextureToCanvasfor flipped textures.
0.7.9
- Fix
sheenvalue not getting exported inGLTFExporter - Add
assetManageranddropzoneparameters toViewerAppOptionsto automatically add theAssetManagerPluginandDropzonePlugin - When adding a plugin by class, same plugin won't be added when a plugin of the same type already exists.
- Fix shader errors in
TriplanarUVMappingPlugin - Fix background warning in
HDRiGroundPlugin - Expose
autoAdjustTransformproperty inBaseGroundPlugin - Fix for
OutlinePluginwhen parent nodes are selected - Fix for
PickingPluginwhen invisible objects are obstructing the view. - Minor fixes related to asset manager instantiation
- Add support for
textureUpdateevent(from texture, material, object and scene) whentexture.needUpdateis set totrue - Increase bounds for Point Light UI.
- Expose
metainAViewerPlugindeserializeevent. - Fix for a race condition in material deserialization in
BaseGroundPlugin - Fix several runtime errors and warnings.
- Move Asset manager importers and exporters to non-static context to support multiple instances of
AssetManagerPluginon the same page - Fixes in Object uiconfig, add rotate model and autocenter options
- Add new attributes
disposeOnRemoveandautoManageViewerstoWebGiViewerElement(webgi-viewer). WhendisposeOnRemoveis set totrue, the viewer will be disposed when the element is removed from the DOM. WhenautoManageViewersis set totrue, viewers will be saved globally when the element is removed from DOM and will be reused when added again or a new element is created. - Add support for
embedUrlImagePreviewsinAssetExporterPluginandGLTFExporter2to embed small texture previews of remote URL images in glTF files. - Add support for
encryptandencryptKeyparameters inAssetExporterPluginandGLTFExporter2to encrypt the exported files inside a GLB wrapper. - Fixes in tweakpane UI
Download Imageoption. Fix download of images with explicit URLs and blobs. Add support to download render targets(WebGLRenderTarget) inPNG(forUint8) andEXR(forHalfFloatandFloat) formats.
0.7.8
- Add
ViewerApp.load,ViewerApp.setEnvironmentMap,ViewerApp.setBackgroundMapto load assets, images and environment maps and add to the scene or set as the environment/background automatically. - Add
ViewerApp.assetManagerto get the attachedAssetManagerPlugin ViewerApp.getPluginalso accepts string with PluginType- Add sync counterparts
addPluginSync,addPluginsSync,removePluginSyncinViewerApp - Add
ViewerApp.doOnceto execute a function once after a frame or renderEvent - Dispatch events
renderEnabledandrenderDisabledfromViewerApp Rhino3DMLoader2,Rhino3DMLoaderinstance reference attributes, geometry name, support to disable material parse/load, check material source, str- Add support for
ILoader.transforminAssetImporter. - Obfuscation fix for workers of DracoLoader, Rhino3dmLoader, KTX2Loader
- Add parameter
disposeRuntimeMaterialsinAMaterialManager.dispose - Fix Shader error in Transmission.
- Add
BaseRenderer.renderTargetToDataUrlandBaseRenderer.renderTargetToBuffer,RenderTarget.toJSON - Add Geometry UI - Center Geometry, Compute vertex normals, Compute vertex tangents, Normalize normals, Convert to indexed, Convert to non-indexed, Create uv1 from uv
- Fixes in glTF transform pipeline custom extensions
- Fix import of iridescence and attenuationDistance values from blender exported glTF files.
- Add interfaces
IViewerPluginSyncandIViewerPluginASync. - Refactor
AssetManagerPluginandDropzonePluginto implementIViewerPluginSync. These can be added withViewerApp.addPluginSync - Fix
ParallaxMappingPluginshader errors after three.js update - Remove
ScrollableCameraViewPluginwarning when name doesn't start with# - Fix
SwitchNodeBasePluginto not show invisible objects during export, add Enabled toggle to UI. - Fix
HierarchyUiPluginto toggle visibility postFrame - Add
VariationConfiguratorPlugin.clearVariationsto clear the loaded variations and remove the objects from the scene - Add
numbertype in TweakpaneUiPlugin, add support for generating Ui for arbitrary object and arrays
0.7.7
- Export
STLLoadPlugin,Rhino3dmLoadPlugin,VariationConfiguratorGridUiPlugin,VariationConfiguratorPlugin, serialization, ui annotations,FileTransferPlugin,AAssetManagerProcessStatePlugin,ScrollableCameraViewPlugin, canvas utils in the browser viewer bundle. - Fix window bundle when not imported with type="module"
- sRGB Color space fixes in loaders for .obj, .mtl, .hdrpng files
- Allow separate uv set in UI for all maps in physical, unlit materials.
- Add support for loading state of
MaterialConfiguratorPlugin,SwitchNodePlugin,ThemePlugininAAssetManagerProcessStatePlugin - Fix glb export with draco compression
gltf-transformpackage update- Fix multiple errors in shaders and material extensions including anisotropy and thin film layer.
- Add several radial background images.
- Add UI button to prompt for file in
DropzonePlugin. - Obfuscation fix in Draco loader by putting worker in string.
- Several minor fixes.
0.7.6 (Major changes)
- Update three.js to r152. Changes might be required only if using custom three.js code, because
ColorManagementis enabled by default. Default color space is now SRGBColorSpace instead of LinearColorSpace. As a result, material files exported from new viewer version might not look correct in older viewer versions, but old files will look correct in new viewer versions. - Three.js toJSON asset versions updated to 4.6, which is used to determine the color space.
- Deprecate
ViewerApp.getBackground()andViewerApp.setBackground() - Add
RootScene.backgroundColorin addition toRootScene.backgroundto set background color. UsebackgroundColorto set colors andbackgroundto set textures. When both are set, both are multiplied. - Deprecate
envMapBackground, background can now be set to environment by simply settingviewer.scene.background = 'environment' - Replace
autoReleaseTransparentTarget(default=true) withpreserveTransparentTarget(default=false) inRenderPass2 - Remove
refreshEnvMapIntensityandrefreshFixedEnvMapfromRootSceneby removing the need to refresh all materials on every change. - Deprecate
controlsEnabledin CameraController options, setcontrolsMode = ''orcamera.controls.enabled = falseorcamera.interactionsEnabled = falseto disable controls. - Removed
viewer.backgroundIntensity, useviewer.scene.backgroundIntensityinstead. - Removed
viewer.useLegacyLights, useviewer.renderer.useLegacyLightsinstead. - Serialize renderManager with viewer with stable noise and useLegacyLights
- Add Iridescence to physical material UI (
MeshStandardMaterial2) - Fix black screen when using MSAA(isAntialiased), when used with depth prepass.
- Add MSAA and Depth prepass toggle to Extras in the editor UI.
- Rename
useTotalFrameCount(inBaseRenderer) tostableNoise - Add
ViewerApp.getOrAddPlugin(async) which adds the plugin if it doesn't exist. - Fix a race condition when adding plugin dependencies in the viewer.
- Add
GroundPlugin.autoBakeShadows, set it tofalseto manually control shadow baking instead of automatically baking shadows whenever anything in the scene changes. Also addedGroundPlugin.bakedShadows()to trigger shadow baking manually whenever required (eg. on model load). - Set
BaseRenderer.useLegacyLightstofalseby default.
0.7.5
- Fixes in
SSContactShadowsand add to the editor UI - Fix for 0 roughness in transmission
- Fix background intensity to be consistent with envMapIntensity when envmap is used as background.
- Add
ViewerApp.addPluginsto add multiple plugins at once. - Introduce
CoreViewerApp,CoreEditorApp,addEditorPlugins - Change
setupModesUito take map of extra plugins and mode instead of an array of plugins. - Export
defaultPresetsin the bundle. ForPresetLibraryPlugin - Fix serialization of some material properties.
- Dispatch 'afterRender' event from
MeshStandardMaterial2andMeshBasicMaterial2 - Fix a bug where UI freezes in the editor while working with configurators.
- Add
CameraViewPlugin.setCurrentCameraViewto set active camera to some view without animation. - Add
cameraViewtoParallaxCameraControllerPlugin VariationConfiguratorPluginAdd support for loading icon files along with item files from local folder, implement fromJSON so that json can be loaded withaddFromPathor drag and drop. Add support for loading preset json files along with models. AddimportPathto import config.json by path.- Add
KTX2LoadPluginto the editor. - Add
processBufferViewImageBufferinGLTFWriterto directly add image buffers(instead of blob) to bufferViews - Dispose scene models on scene dispose. Dispose tracked targets on renderer dispose, remove and dispose plugins, dispose scene and renderer on viewer dispose.
- Add
encodeUint16Rgbeto gltf exporter options,AssetExporteroptions and UI (Compress hdr env mapsin Asset Export -> GLB Export) to compress/encode embedded HDR environment maps with rgbe encoding. (disabled by default) - Improve and speed up serialization for embedded rgbe images in GLB. Note: This breaks compatibility for loading new files with old webgi versions. Disable
Compress hdr env mapsin the UI to export files without encoding which will load correctly in old versions (upto 0.7.4) - Support export of
ktx2textures in the serialization pipeline. - Fix
KHR_texture_basisuextension in GLTF exporter.
0.7.4
- Fix issue with
SSGIPluginintroduced because of incorrect framecount from Total Frame Count option. - Use local position in camera controller for nested cameras.
- Add
Remove vertex color attributebutton in geometry UI. - Add
vertexColorsandalphaTestto gltf material extras extension. - Fix issue where embedded images with invalid source URLs stop loading of the glb file.
- Add
attenuationDistanceandattenuationColorto Physical material UI. Change default value ofattenuationDistanceto0(infinite) fromInfinity MaterialManager.applyMaterialandMaterialConfiguratorPlugin.applyMaterialreturnsbooleanindicating if the material was applied or not.- Add
encode-progressevent inCanvasRecorderPluginto get progress of encoding when using ffmpeg.js. - Add
ObjectPicker.hoverEnabledto enable/disable intersection check while hovering. (default:false) - Add
worldSpaceoption inCameraViewPlugin.getCurrentCameraViewto get the view in world space. (default:true) - Fix incorrect value from
useLegacyLights(Artistic Lighting toggle in the UI) - Fix issues with dynamic selection in
OutlinePlugin. - Fix state issues in tweakpane image UI where set image and remove image doesn't work in some cases.
- Serialize
enabledandenableEditinParallaxCameraControllerPlugin. - Add
autoplayOnLoadproperty and fix serialization ofdragAxisinGLTFAnimationPlugin - Fix issue in
DepthOfFieldPluginnot working properly for cameras nested inside other objects. - Add
SwitchNodeBasePlugin, similar toSwitchNodePluginbut with a base class to extend from, example: https://codepen.io/repalash/pen/bGmVbZj - Set
autoLookAtTargetto false by default in CameraController - Fix camera animation for nested cameras in imported models
OutlinePluginfix for non-default camera.
0.7.3
- Add
originPositioninHDRiGroundPluginto move the sphere in world. - Fix
viewer.createCamerafor cameras nested inside other objects. - Fix UI crash on safari browsers.
- Several fixes in
VariationConfiguratorPlugin. - Set
useTotalFrameCountto true by default inTemporalAAPlugin - Use
premultipliedAlphainWebGLRenderer, this fixes issues on ios browsers. - Add
autoPullTargettoOrbitControls(similar toautoPushTarget) to automatically pull the target to the camera position when the camera is moved beyond max distance. note: to make the camera work like first person view, setminDistance,maxDistanceto very close to each other (like 1 and 1.1) and setautoPullTargetandautoPushTargetto true. - Add
ParallaxCameraControllerPlugin,GryoInputDevice,MouseInputDevice. - Add
easingtoCameraViewControlPluginandScrollableCameraViewPlugin.
0.7.2
- Add
VariationConfiguratorPlugin,VariationConfiguratorGridUiPluginandVariationConfiguratorEditorUiPluginfor creating object and material configurations from external files. - Remove object cache from
AssetImporterwhen disposed. - Add
applyMaterialinMaterialManagerto apply a material configuration using copy. - Add
importedFileparam toImportAssetOptionsinAssetManager - Fix
stoppedevent inFFMPEGRecorder - Add support to exclude objects(and it's children) from being exported in glb by setting
object.userData.excludeFromExporttotruein the object. - Fixes in
WebGiViewerElementwhere scene was not cleared when src changed, fix a race condition in environment map load. - Improve
CanvasSnipper.GetBlobto usetoBlobdirectly. - Fix for scene getting clipped when GLTF animations are playing. Note: to fix any clipping issue when scene is updated/animated, call
viewer.scene.refreshActiveCameraNearFar() - add
DEBUG_DEPTHinTonemapExtension, and asRender Depthin the Tonemap Plugin UI - Add support for reading
minNearPlaneandmaxFarPlanefrom camera.userdata, and add to the UI. Note: change minNearPlane if there are z-fighting issues even when objects are not overlapping. Remove zoom from Camera Ui - Add frustumCulled in Object UI
- Fix
useLegacyLightsnot getting changed inViewerApp - Fix
PointerLockControls2. - Deprecate
RootScene.minNearDistancein favor ofcamera.userData.minNearPlane
0.7.1
- Rewrite
CanvasRecorderPlugin, add support for encoding mp4 with ffmpeg.js for typevideo/mp4 - Add
ACanvasRecorder,CanvasMediaRecorder,FFMPEGRecorder,ImageSequenceRecorder. - Deprecate
CanvasRecorder. - Fixes in
MaterialConfiguratorPlugin - Fix shader compile error when SSR is toggled for some single nodes.
- Update
GLTFLoaderso that loaded textures have the sameuuidas when saving, by removingtexture.clone()inGLTFTextureTransformExtension.
0.7.0
- Fix cache storage being overwritten in
ImageLoader - Use lights added to scene by plugins in
PathTracingPlugin1 - Add
gammaFactorinDiamondMaterial - Performance optimizations in Material extension.
- Add
fixedEnvMapDirectioninRootScenewith a toggle in the UI inBackgroundEnvUiPlugin - Fix
displacementMapexport with DRACO compression. - Multiple environment map support in
DiamondPlugin - Fix support for rough transmissive material support (for effects like frosted glass).
- Update three.js to r150dev from r144
- Set
blurTransmissionTargettotrueby default inRenderPass2 - Set
ViewerApp.useGbufferDepthtotrueby default and enabled in the sandbox editor. - Add support for transparent objects and
useRgbm=trueinARPluginfor webxr, as well as several fixes. - Add
SSGIPlugin,NormalBufferPluginandSSBevelPlugintoaddBasePlugins. (Disabled by default) - Export
TriplanarUVMappingPluginin bundle. - Fix
disposeSceneModelswhen some scene objects are not disposed. - Fixed a bug where material extension doesn't work in production builds.
- Use pointer events instead of mouse events in
FirstPersonControls2 - Add
useLegacyLightsin ViewerApp. Set it tofalseto enable physically correct lighting. Added asArtistic Lightingin the Background/Env UI - Serialize plugin properties in
PathTracingPlugin1 - Support for
getValueandsetValuein tweakpane image ui config generator. - Fixed an issue when loading and caching SVG files.
- Fix
onChangedecorator for multiple references to the same property. - Add
XAtlasPluginto bundle and sandbox editor, - Add static variables for library path
KTX2LoadPlugin.TRANSCODER_LIBRARY_PATH,Rhino3dmLoader2.LIBRARY_PATH,ENABLE3D_LIBRARY_PATHandAMMOJS_LIBRARY_PATHinAmmoPhysicsPlugin - Add
tTransparentuniform in CombinedPostPass (not used) - Add
autoReleaseTransparentTarget(default=true) in RenderPass2
0.6.9
- Add support for disabling automatic near far calculation by setting
cameraObject.userData.autoNearFarto false inCameraController. - Remove reference to preImported assets after dispose.
- Add
clearCacheinAssetImporterto clear memory asset and loader cache. This does not clear the browser cache or cache storage. - Implement
disposeinAMaterialManagerto dispose all materials. This does not remove any references to material in any scene objects. - Replace objects in AssetManagerPlugin cache storage if downloaded again.
- Fixes in
ARPluginto present the scene in WebXRimmersive-armode. Still in development. - Remove obsolete parameters in
SSAOPassserialization. - Remove
renderToScreenfrom TonemapPlugin. It's now rendered withCombinedPostPlugin. GroundPluginnow keeps the ground mesh rotation in z.- Change default view names in
CameraViewPluginto#view{id} - Add
resumeAnimation()inGLTFAnimationPlugin. - Fixes in
ScrollableCameraViewPreviewPlugin. - Fixes in
PathTracingPlugin1. Add support for directional lights. - Add
reRendertoCombinedPostPluginto rerender just the screen pass with changes like outline, tonemapping etc. - Cache
blobof loaded images inImageLoader.
0.6.8
- Cache 'blob' in
ImageBitmapLoader, images referenced by URL inside GLTF files will now be cached toCacheStorage. - Add
useTotalFrameCounttoTemporalAAPluginand its UI, if this is set to true, then frameCount won't be reset when the viewer is set to dirty - Fix aspect refresh for camera when activated as main.
- Download and import textures with
rootPathin parallel inObjectLoader2. - Add
CameraViewControlPluginwithsetStateto interpolate the camera position, target between all camera views fromCameraViewPlugin. - Add
ScrollableCameraViewPluginwhich maps the camera views to div/sections on the HTML page and syncs the camera view with the scroll position. - Add
ScrollableCameraViewPreviewPluginto preview the camera views in the scrollable camera view plugin with editable HTML. - Remove SSAO disable confirm popup in
SSGIPlugin - Add
autoIncrementTimecontrol inGLTFAnimationPlugin. If set tofalse, the animation time can be set manually withsetTime - Several fixes in
GLTFAnimationPluginrelated to resetting and playing animations. - Fixed
initializedevent inWebGiViewerElement
0.6.7
- Add
normalScaleto material extras during GLTF export, since it doesn't work properly in some cases. - Serialize
loop,loopRepetitionsandtimeScaleinGLTFAnimationPlugin. - Fix
timeScaleinGLTFAnimationPluginto allow negative values and bound to mixer. - Better shadow-based transparency for the ground with
aoMapmode inGroundPlugin. - Fix unsupported encoding issue with Multi render targets.
- Add
GLTFKHRMaterialVariantsPluginto import and exportKHR_materials_variantsextension mappings and material variants in GLTF. - Add classes
GLTFMaterialsVariantsExtensionExportandGLTFMaterialsVariantsExtensionImportto the bundle. - Add support for
userData.__importDatafor loaders inAssetImporter. This data can be used after the object is added to the scene. - Fix issue in
AMaterialManager.processMaterialwhere non-converted materials were registered in the manager. - Add
consoleproperty toIViewerinterface. It can be used to override the console object used by the viewer.
0.6.6
- Add
storeStateandloadStatetoAViewerPlugin. All serializable plugins have support for saving and loading their state to a storage(by defaultlocalStorage). - Fix issues with
TweakpaneUiPluginUI refresh. - Serialize
exportOptionsinAssetExporterPlugin - Add
FileTransferPluginwith utility actions to download file(used byAssetExporterPlugin,CanvasSnipperPlugin,CanvasRecorderPlugin), and can be overridden to upload files to server. - Add
downloadSceneGlbfunction inAssetExporterPlugin - Expose
storage(cache/cache storage) inAssetManagerPlugin - Add
AWSClientPluginwhich can connect to any S3 compatible server, interface withFileTransferPluginto upload files to server on export. Dispatches event 'fileUpload' on successful upload. - Prompt for filename when downloading file in
CanvasRecorderPlugin - Add
filenameproperty toCanvasSnipperPluginto set default filename - Add 'Clear local storage' and 'Clear cache' buttons to
ExtrasUiPlugin - Persist serializable plugins state when reload of page in webgi modes editor.
- Add
reset defaultsoption inTweakpaneUiPluginfor viewer plugins to reset values to default. - Fix loading of downloaded
LUTPluginpreset json. - Add
exportStateandimportStatefunctions inAViewerPluginto export and import (serialized) plugin state. MaterialConfiguratorBasePluginnow creates a new material to apply if the type is mismatched.- Add
reset defaultsbutton in the sandbox editor. - Add
viewAddandviewDeleteevents inCameraViewPlugin. - Fix
resetOnEndinGLTFAnimationPlugin.playAnimation.
0.6.5
- Fix issues with floating point scale and render target size.
- Serialize and save geometry offsets after being prepared by
DiamondPlugin. Fixes issue when geometry is modified due to DRACO compression. - Fix diamond shader rendering after context loss and restore.
- Remove
confirmdialog box when enablingSSBevelPlugin - Disable
scalein UI whenmode === 'custom'inRendererUiPlugin - Fix
PickingPluginautoFocusto fit object in view. - Add
CameraViewPlugin.animateToFitObjectand aliasViewerApp.fitToViewto animate camera and fit an object/scene to the view. - Add 'Fit Scene/Object' option in modes ui bottom bar.
0.6.4
- Add 360 turntable camera animation recording option in CanvasRecorderPlugin UI
- Add
recordfunction inCanvasRecorderPluginwhich takes an action and executes it betweenstartandstoprecording calls. - Add
dracoOptionsof typeEncoderOptionstoAssetExporterPlugin.exportOptions - Fix Diamond rendering after context loss and restore.
- Emit events 'contextRestored' and 'contextLost' from
BaseRenderer(viewer.renderer) - Fixed bug with memory caching of offset matrices in diamond plugin.
- Serialize geometry offsets(eigen vectors) matrices in gltf to read in the viewer.
0.6.3
- Add
DiamondMaterialsupport forThinFilmLayerPlugin - Add
FragmentClippingExtensionPlugin - Automatically dispose Cube Normal Maps when all attached geometries are disposed. Can be disabled by setting
CubeNormalsCaptureHelper.AutoDisposeTargetstofalse. - Add functions
disposeCacheMapanddisposeAllCacheMapstoDiamondPluginto dispose maps based oncacheKey. - Add
'materialChanged'event toISceneandRootSceneto notify when a material is changed on any mesh in the scene. - Automatically prepare Diamond meshes when
DiamondMaterialis set on a mesh usingsetMaterial. - Add
animateOnDragtoGLTFAnimationPluginto seek animation playback with pointer drag over canvas. - Add
PointerDragHelperfor easier pointer drag event subscription. - Rewrite
RendererUiPluginfor easier resolution setting with automatic scale calculation andfull(container fill) mode. - Fix aspect ratio in
FragmentClippingExtensionPlugin
0.6.2
- Add
cachingflag in options forsetupCoreWebGiViewer - Export
setupModesUiandsetupModesStylesin bundle. - Add
useTotalFrameCountandtotalFrameCountinBaseRenderer. - Add
envMapRotationOffsetinDiamondMaterial - Add
contrastandsaturationtoTonemappingPlugin - Fixed issues in
OutlinePlugin
0.6.1
- Fix for material bump map, when SSBevel is on.
- Separate OutlineRenderPass, removed redraw in
GBufferRenderPass, Changes in outline shader to render visible/hidden parts differently. - Add vertexColors to the UI
- Export
PresetGroupand subclasses in the viewer bundle. - Fix
GBufferPluginon webgl1 devices. - Add 9 new environment map presets.
- Export
CustomAnimationHelperandCustomAnimationHelperPluginin the bundle to interface with three.js animations by code.
0.6.0
- Add
AShaderMaterial2aith API to create materials types with custom shaders and apply them on objects. - Add support for custom material extensions in
MeshBasicMaterial2andDiamondMaterial. - Add
textAnchorinSimpleTextPlugin - Read
autoLookAtTargetfrom userData inCameraController. - Fixed
PickingPluginto properly pick objects inside another. - Fix promises returned from
playAnimation,playClipwith convergeMode, pausing inGLTFAnimationPlugin. - Bind button
valuefunction in tweakpane buttons to config so thatthisworks. - Add
smoothShadowtoGroundPluginto smooth baked shadow edges. - Disabled
Outlineextension by default, can be enabled from the UI. - Fixes in
LUTPlugin. - Several build improvements.
0.5.9
- Build improvements
0.5.8
- Add
renderOrderto Object UI. AddpolygonOffset,polygonOffsetFactorandpolygonOffsetUnitsto Physical Material UI. - Add
OutlinePluginto the sandbox editor to show outline on selected objects. It depends onPickingPluginDisabling it enables the bounding-box selection behaviour fromPickingPlugin - Add
IGBufferUpdaterinterface.LUTPlugin,SSBevelPlugin,TonemapPlugin,OutlinePluginimplement it for updating GBuffer flag data - Add
addGBufferUpdaterfunction toDepthNormalPass. LUTPluginnow supports upto 3 LUT Textures. Old files with LUT textures will be incompatible with this change.- Fix for Unexpected exception while loading some old files.
- Fix for post-processing plugins not updating properties properly on
setDirtycall. - Add support for adding material extensions to
DiamondMaterial.
0.5.7
- Update
rhino3dmto7.15.0 - Fix error while importing raw text files with
AssetImporter - Fix rendering issue in
ContactShadowGroundPluginwhere colors were inverted. - Clear GLTF Animations on plugin remove.
- Export Combined post plugins in the viewer bundle.
- Add Record GLTF Animation button in Canvas Recorder UI
- Add events
checkpointBeginandcheckpointEndtoGLTFAnimationPlugin, fired when animation reaches the start position and the end. - Fix
GLTFAnimationPlugin.playAnimationto return promise that resolves properly when usingconvergeModeinCanvasRecorderPlugin - Change signature of
exportViewerConfig, add parameterbinarywhich can be set to false when exporting json config, this will encode all array buffers in resources to base64 strings. - Fix issues with de-serialization of LUT files in config json.
- Apply rotation to imported 3dm files (-Pi/2 in x) to keep orientation consistent with Rhino.
0.5.6
- Set
depthTonemaptotrueby default insetupCoreWebGiViewer - Set
importPopuptofalseby default insetupCoreWebGiViewer - Add
AAssetManagerProcessStatePluginas helper to access the current state/progress while importing/exporting files through theAssetManagerPlugin - Add
AssetManagerLoadingBarPlugin, to show top loading bar while importing and exporting files, added by default insetupCoreWebGiViewer - Export
SSBevelPluginandNormalBufferPluginin bundle. autoScalewill now also scale the object position to work properly withautoCenter- Enable
autoCenterinstead ofpseudoCenterin Dropzone options. - Add 'panel' as alternative to 'folder' in
UiObjectConfig. RendererUiPlugin:widthandheightare not serialized when its more than the canvas container size(at export time).- Implement serialization of LUT Cube texture files as embedded blobs in viewer config resources while exporting GLB files.
0.5.5
- Add
WEBGI_materials_displacementmapas GLTF extension to export displacement map, scale and bias in GLTF. - Fixed a bug when exporting
lightMapwithWEBGI_materials_lightmapextension. - Fix refresh of camera UI objects in
CameraUiPlugin. - Rename
SerializableOrbitControlstoOrbitControls3 - Add
setControlsCtorandsetControlsCtorinCameraControllerto add custom camera controls with mode. - Add abstract class
ACameraControlsPluginto attach new camera controls to the viewer cameras. - Add
DeviceOrientationControlsPlugints version ofDeviceOrientationControlswith added features, usingACameraControlsPlugin. - Add
FirstPersonControls2, ts version ofFirstPersonControlswith added features, usingACameraControlsPlugin. - Add
PointerLockControls2, ts version ofPointerLockControlswith added features, usingACameraControlsPlugin. - Removed
DeviceOrientationPlugin. - Fix signature of
RootScene.addEventListenerto get event types in autocomplete. - Add
IMaterial.dispose()(dev) - this will automatically dispose all theTextureobjects on the material that are not used by any other material inMaterialManager, unlesstexture.userData.disposeOnIdleisfalse. The material must be registered withMaterialManager(which happens during load fromAssetManagerPlugin), and it is automatically unregistered on dispose. - Rename
material.userData.appliedMeshestomaterial.userData.__appliedMeshes. - Rename
geometry.userData.appliedMeshestogeometry.userData.__appliedMeshes. - Add
viewer.createMaterial()to create new materials. (similar toviewer.createPhysicalMaterialwith ability to create any material type). - Add
CSS3DRendererPluginto editor UI and export class in bundle. - Add
forcedLinearDepthsupport inGbufferPluginin material userData. - Fix issue with alpha map clearing scene on rendering in
GbufferPlugin. - Fix material indexing for multi-materials in
CSGPluginBSP.
0.5.4
- Add
CSGPluginBVHandCSGPluginBSP - Add
deviceOrientationtocontrolsModeinICamera. - Improve
CameraControllerto support different types of controls. - Add
DeviceOrientationPlugin(alpha) - Add support to import/export
polygonOffsetparameters in gltf material extras extension. - Allow negative values in
offsetandrepeatin texture sampler UI config. - Export class
SSGIPluginin bundle. (beta) - Change
DropzonePlugindefault import options withpseudoCenter: trueandautoCenter: false - Export class
EllipseCurve3Din bundle. - Fix parameters refresh on deserialize in
RendererUiPlugin. AddRendererUiPlugin.refreshSize()to triggersetSizemanually. - Add support for loading
.cubefiles in Tweakpane Image UI. - Edit
ViewerApp.setBackgroundColorto returnvoidinstead ofPromise<void> - Add
SSBevelPlugin(alpha) - Add
CombinedPostPluginfor combining all screen post-processing in a single pass - Add abstract class
GenericExtensionPluginfor post-processing extensions to be added inCombinedPostPlugin - Add
ChromaticAberrationPlugin,FilmicGrainPlugin,GammaCorrectionPlugin,LUTPlugin,VignettePlugin - Add
ChromaticAberrationExtension,FilmicGrainExtension,GammaCorrectionExtension,LUTExtension,VignetteExtension,TonemapExtensionall implementingMaterialExtension - Update
TonemapPluginto useCombinedPostPlugin. AddTonemapExtensionto implement tonemap postprocessing. Useviewer.getPlugin(TonemapPlugin).configinstead ofviewer.getPlugin(TonemapPlugin).pass.passObject. GLTFExporterwill convert allBufferGeometryattributes to non-normalized and export.- Fixed import of
Material.sidein gltf material extras extension. - Automatic Gamma correction removed from the viewer, add
GammaCorrectionPluginto get the same look.
0.5.3
- In
AssetImporter, importing disposed models again by path will automatically reimport the objects, unlessreimportDisposedis set tofalsein import options. - Fix error when importing
Lineobjects in 3dm files. - Add
depthFuncto gltf inWEBGI_material_extrasextension - When importing assets with
AssetManagerPlugin, all meshes with no material will be assigned a default standard material. - Add mipmap filtering options to texture UI config.
- Add
depthFuncanddepthTestto physical material UI config. - Prevent scene update in
SelectionWidgetvisibility change. - Add
alert,confirmandprompttoViewerAppandIUiObjectConfig - Export
ClearcoatTintPlugin,PresetLibraryPlugin,SceneLoopPlugin - Add
WindowiseDialogPluginto editor for betteralert,confirmandprompt. by overriding in viewer - Fixed UX issue where it's not possible to set image by url without setting a load one first.
- Add
makeDiamondMeshinDiamondPluginto convert only a single mesh to diamond. (Make Diamond in the UI now prompts the user to convert all or just the selected mesh) - Fix SVG serialization and deserialization in GLB files as image source.
- Update three.js to r143.
0.5.2
depthTonemapistrueby default inTonemapPlugin- Add
dollyZoomtoOrbitControls,CameraController - Fix issues with
clipBackgroundand non-tonemapped objects - Reimporting materials with the same url or asset with
addFromPath,importSinglePath,importAssetetc will not create new materials, instead instances created earlier will be returned. - Fix issues with depth rendering in
Reflector2(used withGroundPlugin) - Add types for options passed to AssetImporter, AssetExporter, AssetManagerPlugin, RootScene
- Add
autoCenterinObject3DModeland import options, to center the imported model by changing its location according to bounding box. This is an alternative topseudoCenterwhich creates a new parent. - Moved
setMaterial,setGeometry,setDirtyanddisposetoIModelinterface from its userData(along with types inIModelinterface). So instead of callingobject.modelObject.userData.setDirty()you can callobject.setDirty()directly. - Deprecation warning for setter functions in
userDataforObject3DandMesh - Fixed bug where environment map intensity is not synced multiple materials on a single mesh.
- Add
SceneCamerasUiPluginfor listing cameras in the scene, with camera UI options to set to the active camera or copy view settings to the current active camera. - Add event handling for
setViewandactivateMainevents. Dispatch these events on cameras to change the main camera or copy view settings to the current active camera like:camera.dispatchEvent({type: 'setView', camera: camera}) - Moved
material.userData.setDirty()tomaterial.setDirty() - Add
uuid,visibleanduserDatatoIModelinterface. limitCameraAboveGroundinBaseGroundPluginset tofalseby default as it can interfere with serialization of custommaxPolarAnglevalue inSerializableOrbitControls.- Fix issue with SSR and AO multiplication when applied to the same object.
0.5.1
- Disposing an object with
object.modelObject.userData.dispose()will dispose all children as well. - Add
progressparameter for download progress (computed based on downloaded bytes) inimportFileevent ofAssetImporter hierarchyChangedparameter added tosceneUpdateevent inRootScene, fired when some object is added or removed from the scene's model root.- Add
traverseSceneObjectstoViewerAppto traverse all objects added to the scene model root. - Rewrite LightsUiPlugin to update with scene.
- Fix noise with high roughness in
Reflector2 - Fix issues when deserializing default camera options.
0.5.0
- Removed
processorsfrom RootScene - Convert
setBackgroundandsetEnvironmentfunctions to sync. (inViewerAppandRootScene) - Add support for MSAA with
isAntialiasedparameter inViewerAppconstructor. - Fixed issues with serialization of large
DataTextures. - Add
blurTransmissionTargetinRenderPass2 - Changed defaults for
GroundPlugin - Shadow type set to
PCFSoftShadowMapby default. It can be changed by settingviewer.renderer.rendererObject.shadowMap.type - Add support for Unlit materials with
MeshBasicMaterial2 - Add
autoPushTargetwithminDistanceinOrbitControls - Fixed issues when importing empty scenes with viewer configurations.
- Fixed read of
normalMapBiaswhen importing lights. - Several other fixes and UI tweaks.
- Add
CameraUiPluginandRendererUiPlugin - Export
LightsUiPluginin webgi bundle.