champ icon indicating copy to clipboard operation
champ copied to clipboard

Blender script for animations

Open al3dv2 opened this issue 1 year ago • 6 comments

Hi, your script is awesome! I have a question, when will you make the Blender file available for generating new animations from video? Because at the moment, I can only use the example data for animation

al3dv2 avatar Mar 25 '24 07:03 al3dv2

Thanks! Cause there are many scripts on the rendering side, we are working on it to make it easy and robust for all users. Don't worry, we will publish all of that within this week👏.

Leoooo333 avatar Mar 25 '24 09:03 Leoooo333

@Leoooo333 I'm so anticipated to release. Thanks!

chojinie avatar Mar 25 '24 11:03 chojinie

@Leoooo333 I would recommend even releasing the base mesh/skeleton renderer as a Blender file. There will be a lot of people who want to create novel animations from scratch, not necessarily convert 2D video to a 3D skeleton.

sam598 avatar Mar 25 '24 19:03 sam598

Hello @Leoooo333

Please any updates on releasing the process of creating all maps withing motion folder using Blender.

I know you guys have been working hard for this and this is open source project. But you have done something really good and we can't wait to use it using our own motions. Thank you

nitinmukesh avatar Apr 02 '24 08:04 nitinmukesh

Hi there, thanks for your patience! I just released SMPL & Rendering code. Check the README for details!

Leoooo333 avatar Apr 03 '24 10:04 Leoooo333

Hi there, thanks for your patience! I just released SMPL & Rendering code. Check the README for details!

Where are the codes you mentioned? Why haven't I seen anything

lxd941213 avatar Apr 06 '24 15:04 lxd941213

I wanna share our repo of synthetic data rendering XRFeitoria. With this Python package, you can render RGB and annotations through Blender using the system Python. Check out the sample code for rendering motion of amass here.

HaiyiMei avatar Apr 07 '24 04:04 HaiyiMei

Hi @lxd941213 sorry that this repo has been deleted cause it's not convenient for users to set up the environment. You can git clone the previous tested version @ https://github.com/Leoooo333/champ, they are the same. Also, there are several checkpoint URLs in 4D-Humans that could not be directly visited from China, you may need to configure VPN to avoid files missing errors.

Leoooo333 avatar Apr 07 '24 04:04 Leoooo333

Thanks @HaiyiMei! It's a great toolbox. Now I set Normal, Semantic Map as materials in a blender file, can it be directly reused in XRFeitoria?

Leoooo333 avatar Apr 07 '24 04:04 Leoooo333

Thanks @HaiyiMei! It's a great toolbox. Now I set Normal, Semantic Map as materials in a blender file, can it be directly reused in XRFeitoria?

Yeah, I think you can. Check this out:

import xrfeitoria as xf
from xrfeitoria.data_structure.models import RenderPass


xf_runner = xf.init_blender(cleanup=False, project_path='/path/to/your/blend_file')
seq = xf_runner.sequence(seq_name='render', level='Scene')
mesh = xf_runner.Actor('{actor_name}')  # This is to find an object called `actor_name` in your blend file, or you can import from fbx file, or from `smplx_addon`

# create new material
mat = xf_runner.Material.new(mat_name=f'Material')
diffuse_tex_path = '/path/to/tex_path'
mat.add_diffuse_texture(diffuse_tex_path, 'diffuse')

# or just use existing material
mat = xf_runner.Material('{material_name'})

# set material to mesh
mesh.set_material(mat)

# render
camera = xf_runner.Camera('camera')  # use a camera called `camera` predefined in your blend file, or you can create a new one
seq.use_camera(camera)
seq.add_to_renderer(
    output_path='output_path',  # enter your output_path
    render_passes=[RenderPass('img', 'png')],
    resolution=[512, 512],
)
xf_runner.render()

HaiyiMei avatar Apr 07 '24 06:04 HaiyiMei

Hi all, we have released the SMPL & Rending code. Git clone the updated Champ and have a try!

Leoooo333 avatar Apr 12 '24 05:04 Leoooo333

Closing this issue. If any further questions, please reopen or create a new one.

AricGamma avatar Apr 12 '24 07:04 AricGamma