Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simultaneously playing and moving video #1928

Open
luoGanda opened this issue Jan 22, 2025 · 4 comments
Open

Simultaneously playing and moving video #1928

luoGanda opened this issue Jan 22, 2025 · 4 comments

Comments

@luoGanda
Copy link

I have made a simple setup with video on a plane.

In Non-Linear editor there are 100 animation frames:
with x-axis animation(Object tab) and Offset animation(Material tab - else video does not play at all while pressing P).
While moving playing head - all works as expected(moving and playing).

Then - there is also a setup in Logic node editor like this:
OnUpdate is attached to Play animation(PlaneAction selected)
and Left mouse click is attached to another Play animation(Shader NodeTreeAction selected).

Now, if P is pressed transformation works ok,
but as soon as Left mouse is clicked - something freezes.
Video stops moving, video starts playing and when it stops - that plane again starts moving(usually a new cycle).

How to do this correctly?

@luoGanda luoGanda changed the title Simultaneously playing and moving video [Question] Simultaneously playing and moving video Jan 22, 2025
@luoGanda luoGanda changed the title [Question] Simultaneously playing and moving video [question] Simultaneously playing and moving video Jan 22, 2025
@luoGanda luoGanda changed the title [question] Simultaneously playing and moving video Simultaneously playing and moving video Jan 22, 2025
@nestanqueiro
Copy link

can you please attach a simple blend file with your setup (only the .blend, without the video in question) so I can try to replicate the problem? thank you

@nestanqueiro
Copy link

you can test a working example with my file, just replace big_buck_bunny.mp4 in material with your video...
download sample from
https://filebin.net/xwip98t4370a6ceg#

@luoGanda
Copy link
Author

luoGanda commented Jan 22, 2025

I have been working in latest 3.6.2, installed latest alpha but still it seems you have a little newer 0.44 ver,
still - it seems it also works with alpha ver that is available on main page, and it seems it isn't much of a difference if ver 0.36 or 0.4x
is used in what i try to do - because i tried in both and it's the same thing. In ver 0.4x i can not get/install Logic node plugin
though(i don't find it - is it available somewhere?), so i made it in Bricks.

I'm not much experienced in this - so i don't know much about bpy api etc.
So, i would like to make it fully without the code, And with the code.

The without script thing:
the attached file shows what i would like to do(using only main Layout and Animation tabs for Non-Linear animation).
In my opinion when choosing Action actuator
object(near Continue) - it should play whatever is made in NonLinear animation - isn't this so?
Because i try to use two Actions and i don't think this is the correct way(this is probably why it freezes).
When only 1st or 2nd Action is enabled - it works - but how to do it at the same time?
Can you correct this - how it should be done(without script) and reSend?
https://filebin.net/dhab6s2njr5ifvwl

The with script thing:
your scene seems to work fine(it plays images on an object), but...
how to move it in parallel while playing(eg along X-axis) a small amount - just for testing?

@nestanqueiro
Copy link

you can use a driver to bind the motion to the offset, that way there is no code... or there is less, because depending on the distance traveled you must find a multiplier for the driver....

anyway, here is your file.... there are no bugs in this, you just have to explore a bit more on how to play with the offset... remember the engine plays at 60fps and movies usually play at 24, 25 or 30...
https://filebin.net/nd95ti4vyr664mry/test-upbge-0.43-simpleMovement.blend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants