• R
    rons

    Yes I just figured that glsl error message out. It took me a while to reproduce. Instead of changing directories to the Krom directory in the command prompt I changed it to Krom/Kinc accidentally. The VS project was then built in the wrong location. Running node Kinc/make from the Krom directory fix the problem. Everything worked by setting visual studio code to the newly compiled Krom.exe path.

    PS I'm stealing "Null Problemo".

    Thank you again for your patience.

    posted in Kode read more
  • R
    rons

    Yes the compute example works from visual studio code using Krom. Krom still does not open a window from Kode Studio but compiles correctly. Thank you again for helping me work through these issues.

    posted in Kode read more
  • R
    rons

    Got it to work. The Krom executable I finally compiled works. The Krom window stays open and works correctly from within visual studio code. Thank for all of the help.

    posted in Kode read more
  • R
    rons

    Sorry for the delay in response. I grabbed Krom and ran the node Kinc/make command to build the VS project. This was succesfull and no errors were displayed. When I try open the VS project I get this error:

    5d0fb279-f740-41d5-b5f3-d831238a6ded-image.png

    posted in Kode read more
  • R
    rons

    It does work when compiling for windows. I did run it from the command line, Krom still crashes. Thank you.

    posted in Kode read more
  • R
    rons

    Well thats interesting. It must be that I wasn't updating from git-hub properly. Because the path was defiantly set correctly. The error is gone now but the Krom window crashes in Visual studio code. No out put errors were observed. Is there a crash log ?

    Thank you again for the help.

    posted in Kode read more
  • R
    rons

    So I unistalled everything and fetched Kha again, downloaded the Krom binaries, reinstalled nodejs and set the paths from within Kode Studio. I also installed the Kha extention pak in Visual Studio Code. The build to windows now compiles in VS from Kode Studio for the compute shader example, I cant recreate this problem now. But now I get this error from Krom in Kode Studio and Visual Studio Code. Im not sure why this is showing up all of a sudden.

    C:\Devlopment\Kode\libraries\Kha\Backends\Krom/kha/compute/Compute.hx:81: characters 84-92 : kha.compute.Access has no field getIndex
    C:\Devlopment\Kode\libraries\Kha\Backends\Krom/kha/compute/Compute.hx:81: characters 162-170 : kha.compute.Access has no field getIndex

    Also Krom just doesnt run for anything in Kode Studio, no errors are shown in any terminal. I installed the Kha extention pak in Visual Studio Code and ran some projects from there Krom works.

    Im also not well versed in VS so please have patience with me.

    Did some more googling and found that there is a problem getting a krom window to open from Kode Studio.

    posted in Kode read more
  • R
    rons

    So for the heck of it I went back to the default Kha and Krom installation that comes with Kode Studio and it worked. Krom ran other examples and the compute shader example worked. But other projects im working on to learn Kha do not because some features do not exist in the default Kode Studio verrsion of Kha. Ill get the values for the varibles.

    PS thank you very much for all of your help.

    posted in Kode read more
  • R
    rons

    Sorry, yes I did update per your instructions. There is no other error in any panel. I cant see any value at that memory location.

    posted in Kode read more
  • R
    rons

    It compiles with krom but its been running for 10 min now and gives the error "Display file not found in class path (1,1)".

    In general Krom never displays anything for me.

    The VS error happend at line 277 in the ComputeImpl.cpp

    context->UpdateSubresource(shader->impl.constantBuffer, 0, nullptr, constantsMemory, 0, 0);

    posted in Kode read more
  • R
    rons

    Yea its a different error from Visual studio. its an older Quadro k4200 but supports directx 11.2. Will this example run in Kode Studio? I built it for windows and compiled it in VS to get that last error.

    posted in Kode read more
  • R
    rons

    It shows the correct path. It will build to VS project and compiles but crashes with an exception error:

    Exception thrown at 0x00007FF8933FA131 (d3d11_3SDKLayers.dll) in ComputeShader.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.

    posted in Kode read more
  • R
    rons

    I fetched the latest version of kha this morning.

    posted in Kode read more
  • R
    rons

    Ok it looks like i am dunning directx 12 but I still get the error above.

    posted in Kode read more
  • R
    rons

    Nevermind I found it. Add a compiler flag in khafile.js

    project.addParameter('-graphics direct3d11');

    or

    project.addParameter('-graphics opengl');

    Although it still does not compile it could be the graphics card im using.

    posted in Kode read more
  • R
    rons

    Im having problems running the compute shader example. It gives the following error:

    Error compiling to GLSL ES 100: At least ESSL 3.10 required for compute shaders.

    Is this because Kha defaults to a graphics api that does not support compute shaders? Is there a way to force Kha to either Directx 11 or an Opengl version that does support them from within Kode Studio?

    Thanks for the help.

    posted in Kode read more
  • R
    rons

    <face_palm.gif> I guess that happens when you look at something for too long. Thank you for the help.

    posted in Kode read more
  • R
    rons

    I am using a backbuffer to prevent flickering using Image.createRenderTarget. Using the following antialiasing statement does not work.

    System.start({width, 1024, height:768, framebuffer:{samplesPerPixel: 4}}, function(_) {});

    What obvious thing am I missing?

    Thank you

    posted in Kode read more
  • R
    rons

    Yes the Kha backend is what i meant. Thank you for the reply. I suppose if I feel courageous enough ill give it a try 🙂

    posted in Kode read more
  • R
    rons

    Title says it all 🙂 If it does is it added by adding it to the project libraries?

    Thanks for the help.

    posted in Kode read more