← Changelog

Polygonjs 2.0.66

Gems, strut lattices and compute loops

·built with Jai 0.2.029

  • Breaking geo/ConvexHull2D is renamed geo/ConvexHull, and it now builds 3D hulls too. A saved scene drops the old node: create geo/ConvexHull in its place, and turn asManifold off to get the closed curve of before.
  • Breaking compute/SourceGeoAttribute is replaced by compute/Buffer, and a compute network now ends in a compute/Gather. Rebuild a saved compute network that way and point the path of geo/Compute at the gather.
  • Breaking geo/SDFBuilder needs an SDF object in its first input, which sets its bounds. Its size and center params are gone: wire in a geo/SDFBox of that size and position.
  • Breaking In SDK code, set the t, r, s and scale params of geo/Transform and the lengths of geo/TransformLayout with decimal values, and read an object’s placement with worldObjectPosition, worldObjectQuaternion and worldObjectScale.
  • New compute/Buffer
  • New compute/Gather
  • New compute/Merge
  • New compute/ForEachBegin
  • New compute/ForEachEnd
  • New compute/ReactionDiffusion
  • New geo/Gem
  • New mat/Gem
  • New geo/Crystal
  • New geo/Sweep
  • New geo/SDFStrutLattice
  • New geo/SDFMeasure
  • New geo/FileCSV
  • New geo/AttributeMultAdd
  • New geo/MeshLaplacianAttributes
  • New code/Buffer
  • New code/IntersectionProperties
  • New code/MeshLaplacian
  • New code/SDFStrutLattice
  • New A Performance panel records how long each node takes to cook.
  • New geo/ControlPanel can set a theme for the whole panel UI: Dark, Light or Dark Orange.
  • New The SDK can be used from C and C++. Start a project with polygon sdk new --language c or --language cpp, and the editor saves its scenes as C.
  • New Canvas can export a native app, as well as a web page.
  • Improved A Canvas export holds only the node types its scene uses, so it is smaller.
  • Improved Canvas downloads the tools a web export needs by itself, so there is nothing to install.
  • Improved geo/ControlPanel can sit in a column of its own beside the scene, set with its new _column param. The scene is drawn in the space that is left, so the panel never covers it. On a view taller than it is wide, the panel floats over the scene as before. Fold every panel of a column and it slides down to a thin strip.
  • Improved A control panel taller than the view scrolls, with the mouse wheel or by dragging, and is never wider than the view.
  • Improved Dragging a number param moves it by the digits one pixel is worth, so small values are easy to reach.
  • Improved New radius and orientation handles on geo/Sphere, geo/Box, geo/Capsule, geo/Icosahedron, geo/Plane, geo/Ring, geo/Torus and geo/Tube.
  • Improved geo/PolarTransform has a handle for its longitude, latitude and depth.
  • Improved Rotation handles follow rotationOrder, and a guide line takes the colour of the value it drives.
  • Improved Where handles overlap, the one in front is grabbed.
  • Improved geo/SDFTPMS can wrap its cells around a cylinder or a sphere, and grade their size across a part.
  • Improved code/SDFTPMS can blend one surface type into another.
  • Improved geo/SDFCreate gained smoothness, to round the joints of struts.
  • Improved geo/SDFBuilder can sample a texture.
  • Improved tex/Builder can read a depth texture.
  • Improved mat/MeshSDF can add a roughness texture, and can leave out soft shadows and ambient occlusion so it compiles faster.
  • Improved SDF materials compile faster, and render through an orthographic camera.
  • Improved geo/SDFTriangulate always outputs a manifold mesh.
  • Improved geo/Ray can hit back faces.
  • Improved geo/AttributeTransfer works on volumes.
  • Improved PLY files keep integer attributes, and geo/AttributeCast converts between float and integer types.
  • Improved render/Taa restarts when the scene changes, not only when the camera moves.
  • Improved Antialiasing and volumes work when the browser falls back to WebGL.
  • Improved Wireframes draw cleanly over surfaces.
  • Improved The spare params editor can show an integer menu as buttons or a dropdown.
  • Improved Every param tooltip starts with its type, and a menu param lists what each entry does.
  • Improved With several geo/Output nodes, Ctrl and a digit key picks the one the digit keys connect to.
  • Improved The geometry spreadsheet shows a node’s error, and its Object tab shows translation, rotation and scale.
  • Improved The automatic network layout crosses fewer wires.
  • Fixed geo/AttributeCopy and geo/AttributeTransfer work with P as the source.
  • Fixed geo/PolyFill finds the holes of a face whatever order they arrive in.
  • Fixed The value of a menu param driven by an expression stays within the available range.
  • Fixed A texture larger than 8192 pixels a side shows an error instead of crashing.
  • Fixed GPU memory no longer grows when a texture updates every frame.
  • Fixed Panning a perspective camera with a pan control no longer crashes.
  • Fixed The web editor loads the engine’s own polynodes.