Skip to content
Discussion options

You must be logged in to vote

Cool proof of concept!

How would you approach keeping the image's texture in sync with the image node's transform?

Reacting to events is still a thing we're ironing out. We will likely remove all events from the renderer (including "before_render").

The following should work though, and should keep working in the future:
The WorldObject class has _update_object() which gets called on every draw. You could subclass Image and implement that (don't forget to call super()._update_object(). Then compare local.last_modified to a new variable self._local_last_modified, similar to what we do here to sync the world matrix:

def _…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kevinyamauchi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants