Spontanious idea made in few minutes. You are allowed to make a great game out of it
Left Mouse Button: Draw line
Space Key: Restart Game
UPBGE_0.3_DrawBall.blend (996.4 KB)
Spontanious idea made in few minutes. You are allowed to make a great game out of it
Left Mouse Button: Draw line
Space Key: Restart Game
UPBGE_0.3_DrawBall.blend (996.4 KB)
As little math-coding exercise I added the option to show the trajectory of the Ball:
Here is an alternative Version with realtime texture painting.
Ball reads color information and reacts physically.
Left Mouse Button: Draw Green Ground
Middle Mouse Button: Draw Blue Air (Lift)
Right Mouse Button: Erase
Space Key: Restart Game
Note:
refreshing VideoTexture is costy.
resolution can be set in property "res" of background plane
UPBGE_0.3_DrawBall2.blend (1.1 MB)
Version 3: FlowMap
Brush color changes dependent on stroke direction.
This flowmap color directs the linear velocity of the Ball.
Left Mouse Button: Draw FlowMap Color (dependent on mouse movement direction)
Right Mouse Button: Erase
Space Key: Restart Game
UPBGE_0.3_DrawBall3.blend (1.0 MB)
what u did after the second video doesnt bring much. The inner idea is great ! Maybe can u tune music when the game bounce our draw a line ?
You dare to say ?!?!?!?
LOL - just kidding
I admit I’m not gonna make a cool game out of it.
So it’s not a development of the initial idea but different ideas that evolved from it.
For me it’s an exciting journey to explore and learn.
Version 2
is about detecting collisions based on raster graphics and calculating physics.
For this I had to find a way to read pixel color information from the VideoTexture.
Version 3
is about understanding, creating and using FlowMaps.
For this I had to find a way to modify the brush on the fly.
(btw, say you have a flowmap as reference texture:
Now what would be cool were to have a water shader using that…)
ah, something like this :