• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How can I script like making shader like HLSL or GLSL?

New Here ,
Mar 26, 2020 Mar 26, 2020

Copy link to clipboard

Copied

 Hi. I'm quite new to Photoshop scriping.

 What I want to do is kind of image processing. Making custom blur or custom tone mapping by using my custom formula. Normally, I do this kind of works not in photoshop, but our team need this in Photoshop. 

 

Firstly, Is there any way to apply HLSL or GLSL to image in photoshop?

I found the scripting in photoshop, looks like it can sample color from pixel, and then set color to pixel. but this is quite slow for use it. Are there any way to make faster? the native photoshop filter is quite fast. How did they do for it?

 

TOPICS
Actions and scripting

Views

1.8K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

New Here , Nov 25, 2023 Nov 25, 2023

Hey, it's possible to apply shaders code using the Photoshop Shader Plugin which may be found on its itch.io page: https://hellmapper.itch.io/photoshop-shader-plugin

Votes

Translate

Translate
Adobe
Guide ,
Mar 26, 2020 Mar 26, 2020

Copy link to clipboard

Copied

As far as I know, the script cannot access the pixels of the image directly. If you stay within the scripting language of Photoshop, that is, a very long and inefficient way of working with pixels is to read each pixel through the colorSampler tool, process the resulting array, then assign a color to each pixel through make selection & fill. It is really very long and inefficient.
A more effective option is to save the image to disk and transfer its processing to an external script / program, and then upload the result to Photoshop.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 26, 2020 Mar 26, 2020

Copy link to clipboard

Copied

And I suppose a proper Filter plugin programmed in C++ should also be more efficient than a Scripting-approach. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 26, 2020 Mar 26, 2020

Copy link to clipboard

Copied

Ok. It seems like that option is more effective. I'm gonna try that. Thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 25, 2023 Nov 25, 2023

Copy link to clipboard

Copied

LATEST

Hey, it's possible to apply shaders code using the Photoshop Shader Plugin which may be found on its itch.io page: https://hellmapper.itch.io/photoshop-shader-plugin

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines