GithubHelp home page GithubHelp logo

maxartz15 / vertexanimation Goto Github PK

View Code? Open in Web Editor NEW
435.0 19.0 84.0 93.05 MB

Vertex animation baking tool, shaders and animation system for Unity DOTS/ECS.

License: MIT License

C# 94.50% HLSL 5.50%
vertex-animation unity hybrid-renderer urp gpu-instancing ecs dots vat animation lod

vertexanimation's People

Contributors

maxartz15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vertexanimation's Issues

SimpleCullingJob Throw IndexOutOfRangeException When Destroying Lod Entities from ecb

When I use EntityCommandBuffer to Destory the Parent and LOD entities, It cause the error as following:

IndexOutOfRangeException: Index 33 is out of range of '33' Length.
Unity.Collections.NativeArray`1[T].FailOutOfRangeError (System.Int32 index) (at <3631fb7a903940d29845b8847b40e18e>:0)
Unity.Collections.NativeArray`1[T].CheckElementReadAccess (System.Int32 index) (at <3631fb7a903940d29845b8847b40e18e>:0)
Unity.Collections.NativeArray`1[T].get_Item (System.Int32 index) (at <3631fb7a903940d29845b8847b40e18e>:0)
Unity.Rendering.SimpleCullingJob.Execute (Unity.Entities.ArchetypeChunk archetypeChunk, System.Int32 chunkIndex, System.Int32 firstEntityIndex) (at Library/PackageCache/[email protected]/Unity.Rendering.Hybrid/HybridV2Culling.cs:344)
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].ExecuteInternal (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at Library/PackageCache/[email protected]/Unity.Entities/IJobChunk.cs:370)
Unity.Entities.JobChunkExtensions+JobChunkProducer`1[T].Execute (Unity.Entities.JobChunkExtensions+JobChunkWrapper`1[T]& jobWrapper, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, Unity.Jobs.LowLevel.Unsafe.JobRanges& ranges, System.Int32 jobIndex) (at Library/PackageCache/[email protected]/Unity.Entities/IJobChunk.cs:337)

My code is like following:

var ecb = _ecbs.CreateCommandBuffer().AsParallelWriter();
var pos = new Vector3(data.attack_pos.x, 0, data.attack_pos.z);
jobHandle = Entities.ForEach((Entity entity, int entityInQueryIndex, in EnemyNavComponentData data, in Translation t, in DynamicBuffer<Child> children) =>
        {
            var distance = Vector3.Distance(t.Value, pos);
            if (distance > data.radius) return;
            ecb.RemoveComponent<EnemyNavComponentData>(entityInQueryIndex, entity);
            for (int i = 0; i < children.Length; i++)
            {
                ecb.DestroyEntity(entityInQueryIndex, children[i].Value);
            }
            ecb.DestroyEntity(entityInQueryIndex, entity);
        }).ScheduleParallel(jobHandle);
        jobHandle.Complete();

Subscript error

Hey, I am using the Editor version 2021.2.6 and i get the following three erros when I open the scene:

"Shader error in 'TAO/Lit': invalid subscript 'Vector1_967e0c2bcb6e48c2b85b82c6d4c734a4' at line 577"
"Shader error in 'TAO/Lit': invalid subscript 'Vector1_967e0c2bcb6e48c2b85b82c6d4c734a4' at line 2302"
"Shader error in 'TAO/Lit': invalid subscript 'Vector1_967e0c2bcb6e48c2b85b82c6d4c734a4' at line 2975"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.