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
[Animation API] Black flickering while a model is rotating. #4960
Comments
I've gone back with a test mod and found the build where this issue started. fastTESR artifacts for the Forge Animation System begin starting with this build 14.22.0.2474 14.22.0.2473 is okay, no "Black Flickering" rendering artifacts present in this version for the Forge Animation System
This is the asm and armature I used in my animated model to create a bell like motion. If anyone wants to look at my test mod look for OneShot related classes and jsons TestMod asm{
"parameters": {
"world_cycle": [ "/", "#cycle_length" ],
"end_anim": [ "compose", [ "+", "#cycle_length" ] , "#click_time" ],
"trigger_anim": [ "-", "#end_anim" ],
"progress": [ "-/", "#click_time", "#cycle_length" ]
},
"clips": {
"rest": "#identity",
"trigger": [ "trigger_positive", [ "apply", "testmod:block/one_shot_bell@trigger", "#progress" ], "#trigger_anim", "!transition:rest" ],
"free_run": [ "apply", "testmod:block/one_shot_bell@trigger", "#world_cycle" ]
},
"states": [
"rest",
"trigger",
"free_run"
],
"transitions": {
"rest": "trigger",
"trigger": [ "rest", "trigger" ],
"free_run": [ "rest", "trigger" ]
},
"start_state": "free_run"
} armature{
"joints": {
"bell_conn": { "0": [ 1.0 ] },
"bell_top": { "1": [ 1.0 ] },
"bell_main": { "2": [ 1.0 ] },
"bell_mouth1": { "3": [ 1.0 ] },
"bell_mouth2": { "4": [ 1.0 ] },
"bell_mouth3": { "5": [ 1.0 ] },
"bell_mouth4": { "6": [ 1.0 ] },
"axle_horiz": { "7": [ 1.0 ] },
"axle_vert1": { "8": [ 1.0 ] },
"axle_vert2": { "9": [ 1.0 ] },
"clapper": { "10": [ 1.0 ] }
},
"clips": {
"rest": {
"loop": false,
"joint_clips": {},
"events": {}
},
"trigger": {
"loop": true,
"joint_clips": {
"bell_conn": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 0, 330, 0, 30, 0, 350,0, 10, 0, 355, 0 ]
}
],
"bell_top": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 0, 330, 0, 30, 0, 350,0, 10, 0, 355, 0 ]
}
],
"bell_main": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 0, 330, 0, 30, 0, 350,0, 10, 0, 355, 0 ]
}
],
"bell_mouth1": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 0, 330, 0, 30, 0, 350,0, 10, 0, 355, 0 ]
}
],
"bell_mouth2": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 0, 330, 0, 30, 0, 350,0, 10, 0, 355, 0 ]
}
],
"bell_mouth3": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 0, 330, 0, 30, 0, 350,0, 10, 0, 355, 0 ]
}
],
"bell_mouth4": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 0, 330, 0, 30, 0, 350,0, 10, 0, 355, 0 ]
}
],
"axle_horiz": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 0, 330, 0, 30, 0, 350,0, 10, 0, 355, 0 ]
}
],
"axle_vert1": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 0, 330, 0, 30, 0, 350,0, 10, 0, 355, 0 ]
}
],
"axle_vert2": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 0, 330, 0, 30, 0, 350,0, 10, 0, 355, 0 ]
}
],
"clapper": [
{
"variable": "axis_x",
"type": "uniform",
"interpolation": "linear",
"samples": [ 1 ]
},
{
"variable": "angle",
"type": "uniform",
"interpolation": "linear",
"samples": [ 0, 45, 40, 0, 330, 335, 0, 30, 20, 0, 350, 345, 0, 10, 5, 0, 355, 350, 0 ]
}
]
},
"events": {}
}
}
} |
@bs2609 Because the changes are from you, can you look at this? |
For easy reference, here's how the normal values are produced: MinecraftForge/src/main/java/net/minecraftforge/client/ForgeHooksClient.java Lines 572 to 604 in bea0234
MinecraftForge/src/main/java/net/minecraftforge/client/model/pipeline/VertexLighterFlat.java Lines 131 to 149 in bea0234
|
Right I see what the problem is now >_> |
Continued from: http://www.minecraftforge.net/forum/topic/64596-animation-api-rendering-issue/
As can be seen in this video, there is an issue with the Animation API. Always when the rotation goes back to its original state, the texture turns black. I tested this with my custom block and the block from the forgedebugmodelanimation test mod. (Sometimes I have to break and place the block again or rejoin the world to reproduce the issue again)
Forced crash (to provide some system details): https://pastebin.com/G2Kn6Khx
The text was updated successfully, but these errors were encountered: