• R
    rons

    @Robert

    That fixed it. So simple, but it does seem most of my problems come from using GITHUB.

    Thank you for your help as always,

    Ron

    posted in Kode read more
  • R
    rons

    @Robert

    Executing task: node C:\Devlopment\Kha\Kha\make.js windows --compile <

    Using Kha (3f53ac96, M Backends/Kore/khacpp, M Kinc, M Tools/khamake) from C:\Devlopment\Kha\Kha
    Creating Kha project.
    Compiling shader 1 of 9 (clear.comp.glsl).
    Compiling shader 2 of 9 (painter-colored.frag.glsl).
    Compiling shader 3 of 9 (painter-colored.vert.glsl).
    Compiling shader 4 of 9 (painter-image.frag.glsl).
    Compiling shader 5 of 9 (painter-image.vert.glsl).
    Compiling shader 6 of 9 (painter-text.frag.glsl).
    Compiling shader 7 of 9 (painter-text.vert.glsl).
    Compiling shader 8 of 9 (painter-video.frag.glsl).
    Compiling shader 9 of 9 (painter-video.vert.glsl).
    kincfile found.
    Creating Windows project files.
    Compiling...


    ** Visual Studio 2019 Developer Command Prompt v16.4.4
    ** Copyright (c) 2019 Microsoft Corporation


    [vcvarsall.bat] Environment initialized for: 'x64'
    Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Framework
    Copyright (C) Microsoft Corporation. All rights reserved.

     1>C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(356,34): error C2039: 'colorAttachmentCount': is not a member of 'Kore::Graphics4::PipelineState' [C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\New-Project.vcxproj]
     1>C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(358,29): error C2039: 'colorAttachment': is not a member of 'Kore::Graphics4::PipelineState' [C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\New-Project.vcxproj]
     1>C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(361,33): error C2039: 'depthAttachmentBits': is not a member of 'Kore::Graphics4::PipelineState' [C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\New-Project.vcxproj]
     1>C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(362,35): error C2039: 'stencilAttachmentBits': is not a member of 'Kore::Graphics4::PipelineState' [C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\New-Project.vcxproj]
    

    Build time: 0m 4s
    Compilation failed.
    The terminal process terminated with exit code: 1

    Terminal will be reused by tasks, press any key to close it.

    Thanks you

    posted in Kode read more
  • R
    rons

    @Robert

    Here is the Build output from VS 2019

    hxcpp.cpp
    Date.cpp
    Lambda.cpp
    Main.cpp
    Project.cpp
    Reflect.cpp
    ReverseIterator.cpp
    Std.cpp
    StringTools.cpp
    Type.cpp
    files.cpp
    resources.cpp
    Gc.cpp
    IMap.cpp
    Log.cpp
    Timer.cpp
    Unserializer.cpp
    IntMap.cpp
    List.cpp
    ObjectMap.cpp
    StringMap.cpp
    ListNode.cpp
    Bytes.cpp
    BytesBuffer.cpp
    BytesInput.cpp
    BytesOutput.cpp
    Encoding.cpp
    Eof.cpp
    Error.cpp
    FPHelper.cpp
    Input.cpp
    Output.cpp
    Path.cpp
    DefaultResolver.cpp
    AlignedQuad.cpp
    Assets.cpp
    BlobCallback.cpp
    Canvas.cpp
    Display.cpp
    DisplayMode.cpp
    Framebuffer.cpp
    FramebufferOptions.cpp
    FrameTask.cpp
    Image.cpp
    ImageCallback.cpp
    Kravur.cpp
    KravurImage.cpp
    LoaderImpl.cpp
    Resource.cpp
    Scheduler.cpp
    Shaders.cpp
    Sound.cpp
    SoundCallback.cpp
    System.cpp
    SystemImpl.cpp
    SystemOptions.cpp
    TimeTask.cpp
    Video.cpp
    Window.cpp
    WindowOptions.cpp
    Worker.cpp
    Float32ArrayPrivate.cpp
    Int16ArrayPrivate.cpp
    Int32ArrayPrivate.cpp
    Uint32ArrayPrivate.cpp
    Float32Array_Impl_.cpp
    Int16Array_Impl_.cpp
    Int32Array_Impl_.cpp
    Uint32Array_Impl_.cpp
    AudioChannel.cpp
    Audio.cpp
    Audio1.cpp
    Buffer.cpp
    ResamplingAudioChannel.cpp
    StreamChannel.cpp
    Crc32.cpp
    MathTools.cpp
    Mdct.cpp
    Reader.cpp
    VorbisDecoder.cpp
    VorbisDecodeState.cpp
    VorbisTools.cpp
    Codebook.cpp
    Comment.cpp
    Floor.cpp
    Floor0.cpp
    Floor1.cpp
    Header.cpp
    IntPoint.cpp
    Mapping.cpp
    MappingChannel.cpp
    Mode.cpp
    Page.cpp
    PageFlag.cpp
    ProbedPage.cpp
    ReaderError.cpp
    ReaderErrorType.cpp
    Residue.cpp
    Setting.cpp
    FindPageResult.cpp
    ConstantLocation.cpp
    Shader.cpp
    TextureUnit.cpp
    Graphics.cpp
    Graphics1.cpp
    StbTruetype.cpp
    Stbtt_aligned_quad.cpp
    Stbtt_bakedchar.cpp
    Stbtt_fontinfo.cpp
    Stbtt_packedchar.cpp
    Stbtt_pack_context.cpp
    Stbtt_pack_range.cpp
    Stbtt_temp_font_v_metrics.cpp
    Stbtt_temp_glyph_h_metrics.cpp
    Stbtt_temp_rect.cpp
    Stbtt_temp_region.cpp
    Stbtt_vertex.cpp
    Stbtt__active_edge.cpp
    Stbtt__bitmap.cpp
    Stbtt__edge.cpp
    Stbtt__point.cpp
    VectorOfIntPointer.cpp
    ColoredShaderPainter.cpp
    CubeMap.cpp
    FragmentShader.cpp
    GeometryShader.cpp
    Graphics2.cpp
    ImageShaderPainter.cpp
    IndexBuffer.cpp
    PipelineCache.cpp
    PipelineState.cpp
    PipelineStateBase.cpp
    StencilValue.cpp
    TessellationControlShader.cpp
    C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(356,34): error C2039: 'colorAttachmentCount': is not a member of 'Kore::Graphics4::PipelineState'
    C:\Devlopment\Kha\Kha\Kinc\Sources\Kore\Graphics4\PipelineState.h(14): message : see declaration of 'Kore::Graphics4::PipelineState'
    C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(358,29): error C2039: 'colorAttachment': is not a member of 'Kore::Graphics4::PipelineState'
    C:\Devlopment\Kha\Kha\Kinc\Sources\Kore\Graphics4\PipelineState.h(14): message : see declaration of 'Kore::Graphics4::PipelineState'
    C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(361,33): error C2039: 'depthAttachmentBits': is not a member of 'Kore::Graphics4::PipelineState'
    C:\Devlopment\Kha\Kha\Kinc\Sources\Kore\Graphics4\PipelineState.h(14): message : see declaration of 'Kore::Graphics4::PipelineState'
    C:\Users\RonS\Downloads\Development\Kha\RayTracer_00\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(362,35): error C2039: 'stencilAttachmentBits': is not a member of 'Kore::Graphics4::PipelineState'
    C:\Devlopment\Kha\Kha\Kinc\Sources\Kore\Graphics4\PipelineState.h(14): message : see declaration of 'Kore::Graphics4::PipelineState'
    TessellationEvaluationShader.cpp
    TextShaderPainter.cpp
    VertexBuffer.cpp
    VertexElement.cpp
    VertexShader.cpp
    VertexStructure.cpp
    BlockInterventions.cpp
    Gamepad.cpp
    Keyboard.cpp
    Mouse.cpp
    MouseEventBlockBehavior.cpp
    MouseImpl.cpp
    Pen.cpp
    Sensor.cpp
    Surface.cpp
    TouchDownEventBlockBehavior.cpp
    BytesBlob.cpp
    IntBox.cpp
    FastMatrix3.cpp
    FastMatrix4.cpp
    FastVector2.cpp
    FastVector3.cpp
    FastVector4.cpp
    Matrix3.cpp
    Matrix4.cpp
    Quaternion.cpp
    Vector2.cpp
    Vector3.cpp
    Vector4.cpp
    Client.cpp
    Controller.cpp
    ControllerBuilder.cpp
    Entity.cpp
    LocalClient.cpp
    Network.cpp
    Session.cpp
    State.cpp
    SyncBuilder.cpp
    Pose.cpp
    PoseState.cpp
    SensorState.cpp
    TimeWarpImage.cpp
    TimeWarpParms.cpp
    VrInterface.cpp
    VrInterfaceEmulated.cpp
    BlobList.cpp
    FontList.cpp
    ImageList.cpp
    SoundList.cpp
    VideoList.cpp
    Color_Impl_.cpp
    WindowFeatures_Impl_.cpp
    FileSystem.cpp
    File.cpp
    FileInput.cpp
    FileSeek.cpp
    Mutex.cpp
    Thread_Impl_.cpp
    Vec3f_Impl_.cpp

    Thanks again,
    Ron

    posted in Kode read more
  • R
    rons

    @Robert

    Will do. Thank you.

    Ron

    posted in Kode read more
  • R
    rons

    Im seeing strange results using Graphics1 with Krom vs HTML5. It runs without errors or warnings for both Krom and Html. Has anyone run into this issue?

    Krom:
    d7f71999-0151-471e-82a4-9b1d6a9da3f3-image.png

    HTML5:
    9682b150-3c97-475b-ae8b-78a11c0e0bfb-image.png

    Project.hx Code:

    package;
    
    import kha.math.FastVector3;
    import kha.Framebuffer;
    import kha.Color;
    import kha.Assets;
    import kha.graphics1.Graphics;
    
    class Project
    {
    	var nx:Int = Main.WIDTH;
    	var ny:Int = Main.HEIGHT;
    
    	public function new()
    	{
    		var v1 = new Vec3f(2, 2, 2);
    		var v2 = new Vec3f(1, 1, 1);
    		trace(v1 - v2);
    		trace(v1.dot(v2));
    	}
    
    	public function update():Void 
    	{
    		
    	}
    
    	public function render(frames: Array<Framebuffer>): Void 
    	{
    		var graphics = frames[0].g1;
    		graphics.begin();
    
    		for (i in 0 ... nx)
    		{
    			for (j in new ReverseIterator(ny-1, 0))
    			{
    				var r = i/nx;
    				var g = j/ny;
    				var b = 0.2;
    
    				var ir = Std.int(255.99*r);
    				var ig = Std.int(255.99*g);
    				var ib = Std.int(255.99*b);
    
    				graphics.setPixel(i, ny - j - 1, Color.fromBytes(ir, ig, ib));
    			}
    		}
    		graphics.end();
    	}
    }
    
    class ReverseIterator 
    {
      var end:Int;
      var i:Int;
    
      public inline function new(start:Int, end:Int) 
      {
        this.i = start;
        this.end = end;
      }
    
      public inline function hasNext() return i >= end;
      public inline function next() return i--;
    }
    
    

    Thanks for the help,
    Ron

    posted in Kode read more
  • R
    rons

    When I try to build for windows (full build) from with in VS Code I get the following errors. I have VS 2019 installed, and this is new behavior.

    1>C:\Users\Ron\Documents\Kha\Projects\PartTest\build\windows-build\Sources\src\kha\SystemImpl.cpp(852,35): error C2039: 'waitingForLogin': is not a member of 'Kore::System' [C:\Users\Ron\Documents\Kha\Projects\PartTest\build\windows-build\New-Project.vcxproj]
    1>C:\Users\Ron\Documents\Kha\Projects\PartTest\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(356,34): error C2039: 'colorAttachmentCount': is not a member of
    'Kore::Graphics4::PipelineState' [C:\Users\Ron\Documents\Kha\Projects\PartTest\build\windows-build\New-Project.vcxproj]
    1>C:\Users\Ron\Documents\Kha\Projects\PartTest\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(358,29): error C2039: 'colorAttachment': is not a member of 'Kore::Graphics4::PipelineState' [C:\Users\Ron\Documents\Kha\Projects\PartTest\build\windows-build\New-Project.vcxproj]
    1>C:\Users\Ron\Documents\Kha\Projects\PartTest\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(361,33): error C2039: 'depthAttachmentBits': is not a member of 'Kore::Graphics4::PipelineState' [C:\Users\Ron\Documents\Kha\Projects\PartTest\build\windows-build\New-Project.vcxproj]
    1>C:\Users\Ron\Documents\Kha\Projects\PartTest\build\windows-build\Sources\src\kha\graphics4\PipelineState.cpp(362,35): error C2039: 'stencilAttachmentBits': is not a member of 'Kore::Graphics4::PipelineState' [C:\Users\Ron\Documents\Kha\Projects\PartTest\build\windows-build\New-Project.vcxproj]
    Build time: 0m 6s
    Compilation failed.
    The terminal process terminated with exit code: 1

    Code from Project.hx:

    package;
    
    import kha.Framebuffer;
    import kha.Color;
    import kha.Assets;
    import kha.graphics1.Graphics;
    
    class Project
    {
    
    	public function new()
    	{
    		
    	}
    
    	public function update():Void 
    	{
    		
    	}
    
    	public function render(frames: Array<Framebuffer>): Void 
    	{
    
    	}
    }
    

    Thanks for the help,
    Ron

    posted in Kode read more
  • R
    rons

    Agreed. Signed in just to reply to this post. Rob was incredibly patient with me and help me figure out my problems as I learn Kha. Cant thank him enough for Kha and his help.

    With his help Ive been building a node based editor (see attached image), everything is written from scratch by me, including the GUI. Right now I am just getting the basics working. It will eventually be used for some computational analysis.

    Thank you again
    Ron

    Untitddddled.png

    posted in Kode read more
  • 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