I want to make this kind of animation GIF. It has to work in Eevee with multiple objects. Unfortunately I couldn't do it via wireframes modifier and proportional editing. Do you have any suggestions?
A similar (though not physically realistic) effect can be done using array modifiers and a wireframe modifier to create the 3 dimensional space-time lattice, and then a cast modifier to create the gravitational effect.
- Start with a cube, and then add three array modifiers, one for each dimension, and then a wire frame modifier, as indicated:
This gives you the space time lattice. Apply these modifiers and then center the lattice on the origin, just to make everything else a little easier.
- Add a sphere. Then add to the lattice a cast modifier, shape sphere, with a negative factor. The lower this factor is, the more gravitation is simulated.
Moving the sphere will distort the lattice as one might expect:
Note well however that this effect is applied linearly over space, while real gravity would fall off proportionally to the inverse square. A more physically realistic effect I believe is possible using vertex groups and the hook modifier, but would be more complicated than this solution, which should be acceptable for most aesthetic uses.
Great answer from jwrush! - I'll add that with regards to texturing, this seems to do the trick. Make sure to select your "Warp sphere" as the Object basis for the Texture Coordinate. You may have to alter your mapping scale values and the ColorRamp sliders to accommodate the size of your objects.