This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Shader Development Studio Problem

Note: This was originally posted on 12th May 2011 at http://forums.arm.com

Hello,
Recently I decided to try out Mali Developer Tools, which look very promising.

Unfortunately I have a problem with Shader Development Studio.
When trying to make SimpleTest Project (from the User Guide) while rendering the shader effect
the Shader Preview shows a triangle instead of a square shown in the Guide.
In general, it is not surprising, since the option VERTICES in Shader Attributes View has by default  three
vertices:
-1.0 -1.0,0.0,1.0,
1.0 -1.0,0.0,1.0,
1.0,1.0,0.0,1.0,

The problem however is that there is no possibility to add additional vertices
(when choosing the option USER_DEFINED). You can only change the three given.
Changing the geometry in Shader Control View do not bring any effect, always showing three vertices.
Even when using a Shader Examples from Mali GPU Shader Library shaders are applied to that triangle.
The shaders themselves are working (changing color, texturing, etc).

Plugin has been tested on the following configurations:
Eclipse 3.6.2
  • GeForce 9600M GT Windows 7 64bit
  • GeForce GTS 250 Windows 7 32bit

All necessary OpenGL extensions are present, Emulator and Offline Shader Compiler are installed and work.

[font=arial, sans-serif]Had someone the same problem and is there a solution?[/font]
[font=arial, sans-serif]Thanks.[/font]
Parents
  • Note: This was originally posted on 23rd March 2013 at http://forums.arm.com

    Hi there,

    just wanted to bump this topic... i have the same problem on
    Win 7 64bit
    JDK7_17
    [color="#444444"][font="arial"][size="2"]Eclipse Juno
    latest Android SDK (and projects)

    Is there any solution yet?

    Best Regards

    DrNoes
    [/size][/font][/color]


    [color="#444444"][font="arial"][size="2"]EDIT: This Error message appears in the logs, when  I try to save chages in the shader control:[/size][/font][/color]

    [color="#444444"][font="arial"][size="2"]
    java.lang.ClassCastException: org.eclipse.ui.editors.text.TextEditor cannot be cast to com.arm.mali.shaderdevelopmentstudio.editors.ShaderStockpileEditor
    at com.arm.mali.shaderdevelopmentstudio.Activator.getShaderStockpileEditor(Activator.java:660)
    at com.arm.mali.shaderdevelopmentstudio.control.ShaderToolbarFactory$3.run(ShaderToolbarFactory.java:133)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)[/size][/font][/color]
    [color="#444444"] [/color]
    [color="#444444"] [/color]
    [color="#444444"][font="arial"][size="2"]Maybe theres a similar problem with the Dropdown-Box using deprecated (not longer used) methods to change the actual geometry ?[/size][/font][/color]
    [color="#444444"][font="arial"] [/font][/color]
    [color="#444444"][font="arial"][size="2"]EDIT2:[/size][/font][/color]
    [color="#444444"][font="arial"] [/font][/color]
    [color="#444444"][font="arial"][size="2"]This is the shader config... the shaders are the default vertex and fragment shaders[/size][/font][/color]
    [color="#444444"][font="arial"] [/font][/color]
    [color="#444444"][font="arial"][size="2"]
    ShaderStockpile:
      localTimeStamp: 1364053487225
      shaderEffects:
        ShaderEffect:
          name: bounds
          vertexSources:
            ShaderSource:
              fileName: shader\bounds.vert
          fragmentSources:
            ShaderSource:
              fileName: shader\bounds.frag
          CompilerSettings:
            useCompiler: true
            revisionTarget:
            compilerPath: malisc
            basePath:
          vertexInstructionWords: 0
          vertexShortestCodePath: 0
          vertexLongestCodePath: 0
          fragmentInstructionWords: 0
          fragmentShortestCodePath: 0
          fragmentLongestCodePath: 0
          data: null
          axis:
            [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
          uniforms:
            Uniform:
              type: GL_FLOAT_MAT4
              initialData:
                data:
                  -[[1.0, 0.0, 0.0, 0.0],
                  [0.0, 1.0, 0.0, 0.0],
                  [0.0, 0.0, 1.0, 0.0],
                  [0.0, 0.0, 0.0, 1.0]]-
              location: 0
              name: camera
              pushed: true
              mapping: CAMERA_MATRIX
              finalData:
                data:
                  -[[1.0, 0.0, 0.0, 0.0],
                  [0.0, 1.0, 0.0, 0.0],
                  [0.0, 0.0, 1.0, 0.0],
                  [0.0, 0.0, 0.0, 1.0]]-
          attributes:
            Attribute:
              type: GL_FLOAT_VEC4
              initialData:
                data:
                  -[-1.0, -1.0, 0.0, 1.0]
                  -[1.0, -1.0, 0.0, 1.0]
                  -[1.0, 1.0, 0.0, 1.0]-
              location: 0
              name: coord
              pushed: true
              mapping: VERTICES
          backgroundColour:
            [0.0, 0.0, 0.0]
          orthographic: true
          maxFrames: 1
          geometry: PLANE
          blendEnabled: true
          BlendMode:
            blendColour:
              [0.0, 0.0, 0.5]
            useEquationSeperateMode: false
            useFunctionSeperateMode: false
            equationMode: GL_FUNC_ADD
            equationAlphaMode: GL_FUNC_ADD
            blendFuncSource: GL_ONE
            blendFuncDest: GL_ZERO
            blendFuncSourceAlpha: GL_ONE
            blendFuncDestAlpha: GL_ZERO[/size][/font][/color]
Reply
  • Note: This was originally posted on 23rd March 2013 at http://forums.arm.com

    Hi there,

    just wanted to bump this topic... i have the same problem on
    Win 7 64bit
    JDK7_17
    [color="#444444"][font="arial"][size="2"]Eclipse Juno
    latest Android SDK (and projects)

    Is there any solution yet?

    Best Regards

    DrNoes
    [/size][/font][/color]


    [color="#444444"][font="arial"][size="2"]EDIT: This Error message appears in the logs, when  I try to save chages in the shader control:[/size][/font][/color]

    [color="#444444"][font="arial"][size="2"]
    java.lang.ClassCastException: org.eclipse.ui.editors.text.TextEditor cannot be cast to com.arm.mali.shaderdevelopmentstudio.editors.ShaderStockpileEditor
    at com.arm.mali.shaderdevelopmentstudio.Activator.getShaderStockpileEditor(Activator.java:660)
    at com.arm.mali.shaderdevelopmentstudio.control.ShaderToolbarFactory$3.run(ShaderToolbarFactory.java:133)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1414)[/size][/font][/color]
    [color="#444444"] [/color]
    [color="#444444"] [/color]
    [color="#444444"][font="arial"][size="2"]Maybe theres a similar problem with the Dropdown-Box using deprecated (not longer used) methods to change the actual geometry ?[/size][/font][/color]
    [color="#444444"][font="arial"] [/font][/color]
    [color="#444444"][font="arial"][size="2"]EDIT2:[/size][/font][/color]
    [color="#444444"][font="arial"] [/font][/color]
    [color="#444444"][font="arial"][size="2"]This is the shader config... the shaders are the default vertex and fragment shaders[/size][/font][/color]
    [color="#444444"][font="arial"] [/font][/color]
    [color="#444444"][font="arial"][size="2"]
    ShaderStockpile:
      localTimeStamp: 1364053487225
      shaderEffects:
        ShaderEffect:
          name: bounds
          vertexSources:
            ShaderSource:
              fileName: shader\bounds.vert
          fragmentSources:
            ShaderSource:
              fileName: shader\bounds.frag
          CompilerSettings:
            useCompiler: true
            revisionTarget:
            compilerPath: malisc
            basePath:
          vertexInstructionWords: 0
          vertexShortestCodePath: 0
          vertexLongestCodePath: 0
          fragmentInstructionWords: 0
          fragmentShortestCodePath: 0
          fragmentLongestCodePath: 0
          data: null
          axis:
            [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
          uniforms:
            Uniform:
              type: GL_FLOAT_MAT4
              initialData:
                data:
                  -[[1.0, 0.0, 0.0, 0.0],
                  [0.0, 1.0, 0.0, 0.0],
                  [0.0, 0.0, 1.0, 0.0],
                  [0.0, 0.0, 0.0, 1.0]]-
              location: 0
              name: camera
              pushed: true
              mapping: CAMERA_MATRIX
              finalData:
                data:
                  -[[1.0, 0.0, 0.0, 0.0],
                  [0.0, 1.0, 0.0, 0.0],
                  [0.0, 0.0, 1.0, 0.0],
                  [0.0, 0.0, 0.0, 1.0]]-
          attributes:
            Attribute:
              type: GL_FLOAT_VEC4
              initialData:
                data:
                  -[-1.0, -1.0, 0.0, 1.0]
                  -[1.0, -1.0, 0.0, 1.0]
                  -[1.0, 1.0, 0.0, 1.0]-
              location: 0
              name: coord
              pushed: true
              mapping: VERTICES
          backgroundColour:
            [0.0, 0.0, 0.0]
          orthographic: true
          maxFrames: 1
          geometry: PLANE
          blendEnabled: true
          BlendMode:
            blendColour:
              [0.0, 0.0, 0.5]
            useEquationSeperateMode: false
            useFunctionSeperateMode: false
            equationMode: GL_FUNC_ADD
            equationAlphaMode: GL_FUNC_ADD
            blendFuncSource: GL_ONE
            blendFuncDest: GL_ZERO
            blendFuncSourceAlpha: GL_ONE
            blendFuncDestAlpha: GL_ZERO[/size][/font][/color]
Children
No data