import bpy # the alpha. 0 is fully transparent, 1 is fully visible alpha_value = 0 # layer name color_layer_name = "Col" # get selected object obj = bpy.context.active_object # check if selected is a mesh if obj and obj.type == 'MESH': mesh = obj.data # create vertex layer if it deosnt already exist if color_layer_name not in mesh.color_attributes: mesh.color_attributes.new(name=color_layer_name, type='FLOAT_COLOR', domain='CORNER') color_layer = mesh.color_attributes[color_layer_name] # add the alpha to mesh for poly in mesh.polygons: for loop_index in poly.loop_indices: color = list(color_layer.data[loop_index].color) color[3] = alpha_value color_layer.data[loop_index].color = color else: print("No mesh object selected.")
Last step
Once you have your mesh and your script setup, Make sure you have your mesh selected and run the script. The mesh will visually be the same in blender (so don’t worry if it looks like it did nothing)
You can now import the mesh into roblox with the FBX format. (Needs to be FBX)
For the ghosting effect, set the meshes material to glass.
For the unlit effect, set the meshes material to forcefield.
Unfortunately the ghosting effect only works when you have the “Unified lighting” Beta Feature enabled. This means that the effect isn’t usable in an actual game and may sadly be patched at some point.
I dont know what I was thinking but… I made “motion blur” using this effect? The best similar thing I can describe it as is screen-space motion blur, though this is definitely not close as it has nothing to do with motion and everything to do with the previous pixel color
It doesn’t work on transparent parts, (I assume since the material is glass?)
anyways just wanted to share this here instead of making a new post, since in terms of performance, its dragging up both my GPU and CPU time by around 8x, as well as this effect being very dependent on this beta feature, the device its being run on, stable frame rate and also any frames at all
I can send you the code that I made for this effect if you want, its the same effect in the bottom and top video. It works by using the ghosting effect on only half of the image, I did it using a checkerboard pattern with this material.
I’ve just compiled it and removed extra code, feel free to share or modify it. The checker pattern with the material is in ReplicatedStorage, and the Script is in ReplicatedFirst. TemporalEffect.rbxl (61.7 KB)
That unlit effect can be done without trickery on normal parts by setting them to forcefield and making the transparency be a big negative number Although only the opaque version