#ECS graphics - nothing is being rendered?

1 messages · Page 1 of 1 (latest)

past perch
#

First time working with entities graphics, very confused on why LocaltoWorldSystem isnt setting the matrix and everything is 0.

    ```var entityManager = state.EntityManager;

    // Create a Player entity with its basic components.
    Entity player = entityManager.CreateEntity(
        typeof(PlayerTag),
        typeof(Translation),
        typeof(Rotation),
        typeof(PlayerInput),
        typeof(LocalToWorld),
        typeof(RenderMesh),
        typeof(RenderBounds)
    );
    entityManager.SetComponentData(player, new Translation { Value = new float3(0f, 1f, 0f) });
    entityManager.SetComponentData(player, new Rotation { Value = quaternion.identity });
    entityManager.SetSharedComponentManaged(player, new RenderMesh
    {
        mesh = mesh,
        material = material
    });```
#

added localtransform... still no dice

fervent oasis
#

i think you're missing about a dozen components to make entities graphcs work here

#

wait hang on

#

what version of entities are you using

#

Translation Rotation

#

haven't existed in years

#

LocalTransform replaced them a long time ago now

past perch
#

do you have a reference to updated information?

#

its.... very difficult to find anything

#

i found their sample repository. Ill do some digging.

tired moss
#

1.3.10 for base Entities. 1.3.2 for Entities Graphics

fervent oasis
#

i think 1.4.8 is stable for graphics

#

only 1.4.9 is exp

misty token