So I've been home sick for almost a week now and made this super overkill cigarette shader.
https://www.youtube.com/watch?v=uZOCA49TiFg
Everything is dynamic except for deciding whether the cigarette should "keep" it's ashes or not. I want to fix this by checking the cigarette's movement by storing it's position from last frame and comparing it to current. Any idea how to do this?
Replies
If you're problem is just storing the position value and saving it, I think what you could do is create a new variable in the blueprint called old_position or whatnot, change it to type vector, and at the end of every tick (after your logic for the ashes is done), set the old_position variable to it's current position.
Hope this makes sense! Sick shader btw- that looks very realistic!
Thanks! I'll certainly try this out.
I realised that I have another problem to take care of aswell.. I'll try to demonstrate:
As it is now:
The cigarette starts to burn - no movement. There will be ashes. The cigarette moves and the ashes disappear. The cigarette stops to move and ALL of the ashes will come back.
But I have a feeling it shouldn't be to hard to figure this out.
This also helps fixing the problem i mentioned in the other post.
and then I can use the ashes value to set the opacity
So do you know how I can make that script in nodes?