Skip to content

Request: object instance movement example #5

@dualisme

Description

@dualisme

Hi
Got your primes_3d.zip from internet (based on this Engine).
Nice structured engine by the way.

For more than a view day's I am trying to get individual instanced objects to move in the code (not in de instancing.vert
(the 'whole' intanced object at once is no problem).

Do you have an example on how to do that.
I got to the part in scene.py, I update the positions in self.offset_buffer every frame bij making a def update (self) in scene.py in class InstancingMap and calling this run-loop in main.py

I cannot get it to update in the graphics card. The instanced Cubes remain frozen...what ever i try
I looked at your other software and also at ModernGl examples but they do it in an otherway.

I would really appreciate it if you can give me an example so i can move on with my project.

Thanx, Paul

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions