updated to video creation

This commit is contained in:
2025-07-02 16:41:44 +03:00
parent 3ccbf72599
commit 291e5bab44
22 changed files with 206303 additions and 105 deletions

View File

@@ -8,6 +8,7 @@ from kivy.properties import StringProperty, NumericProperty, AliasProperty
from utils import (
process_preview_util, optimize_route_entries_util
)
from video_3d_generator import generate_3d_video_animation
from kivy.uix.popup import Popup
from kivy.uix.button import Button
from kivy.uix.label import Label
@@ -170,3 +171,33 @@ class CreateAnimationScreen(Screen):
pause_edit_screen.set_project_and_callback(self.project_name, self.on_pre_enter)
self.manager.current = "pause_edit"
def generate_3d_video(self):
"""Generate a 3D video animation similar to Relive"""
# Show processing popup
layout = BoxLayout(orientation='vertical', spacing=10, padding=10)
label = Label(text="Preparing 3D video generation...")
progress = ProgressBar(max=100, value=0)
layout.add_widget(label)
layout.add_widget(progress)
popup = Popup(
title="Generating 3D Video Animation",
content=layout,
size_hint=(0.9, None),
size=(0, 200),
auto_dismiss=False
)
popup.open()
# Schedule the 3D video generation
Clock.schedule_once(
lambda dt: generate_3d_video_animation(
self.project_name,
RESOURCES_FOLDER,
label,
progress,
popup,
Clock
),
0.5
)