Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Generate Normalmap" action #83

Open
sczerwinski opened this issue Feb 16, 2021 · 0 comments
Open

"Generate Normalmap" action #83

sczerwinski opened this issue Feb 16, 2021 · 0 comments
Assignees
Labels
component:actions priority:low Will be done when will be done status:new Awaiting triage type:feature New feature or request
Milestone

Comments

@sczerwinski
Copy link
Owner

Create an action for generating a normalmap from a height map, using Sobel operator:

red = sobel(X)
green = sobel(Y)
blue = 255

The action should open a dialog with additional options:

  • Wrap X CheckBox
  • Wrap Y CheckBox
  • Channel ComboBox: red, green, blue, luminosity

The action should be shown in project view popup menu, and in image editor popup menu:

        <action
                id="it.czerwinski.intellij.wavefront.editor.actions.GenerateNormalmapAction"
                class="it.czerwinski.intellij.wavefront.editor.actions.GenerateNormalmapAction">
            <add-to-group group-id="ProjectViewPopupMenu"/>
            <add-to-group group-id="EditorPopupMenu3"/>
        </action>
action.it.czerwinski.intellij.wavefront.editor.actions.GenerateNormalmapAction.text=Generate Normalmap\u2026
action.it.czerwinski.intellij.wavefront.editor.actions.GenerateNormalmapAction.description=Generates normalmap from height map
class GenerateNormalmapAction : AnAction(), DumbAware {

    override fun update(event: AnActionEvent) {
        val project = event.project
        val file = event.getData(CommonDataKeys.VIRTUAL_FILE)
        event.presentation.isEnabled = project != null
        event.presentation.isVisible = /* is a valid texture image file */
    }

    override fun actionPerformed(event: AnActionEvent) {
        // TODO
    }
}
@sczerwinski sczerwinski added type:feature New feature or request status:new Awaiting triage priority:low Will be done when will be done labels Feb 16, 2021
@sczerwinski sczerwinski added this to the 1.1.x milestone Feb 16, 2021
@sczerwinski sczerwinski self-assigned this Feb 16, 2021
@sczerwinski sczerwinski modified the milestones: 1.1.x, 1.3.x Feb 16, 2021
@sczerwinski sczerwinski removed this from the 1.3.x milestone Nov 11, 2021
@sczerwinski sczerwinski added this to the nice to have milestone Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:actions priority:low Will be done when will be done status:new Awaiting triage type:feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant