Follow

Got to mess around with server side canvas'es for the first time today.

Having a REST API to image processing is actually pretty damn useful.

Considering adding an API to my image gen projects. If client side is suffering Abit just render your content statically and shove a blob into an img source for your thin clients.

I'm quite excited by the possibilities of it all.

I needed a rest API to generate some normal, height, specular and a custom mask map from an aldebo image based on a json specification of physical material properties.

So I utilised some inspiration from cpetry.github.io/NormalMap-Onl and now I just post my image blob and a json spec sheet to the API and the server will return to me my set of maps based on some snazzy math from conversion of physical properties to visual equvilants in 3D properties encoded to maps.

Show thread
Sign in to participate in the conversation
Merveilles

Merveilles is a community project aimed at the establishment of new ways of speaking, seeing and organizing information — A culture that seeks augmentation through the arts of engineering and design. A warm welcome to any like-minded people who feel these ideals resonate with them.