3D scene and role driving method and terminal based on xLua
A driving method and role technology, applied in the field of graphical programming, can solve problems such as inability to execute directly, poor performance, poor rendering performance, etc., and achieve a more optimized 3D rendering effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] Please refer to figure 1 , Embodiment 1 of the present invention is:
[0072] A driving method for 3D scenes and characters based on xLua, including steps:
[0073] S1. Create a building block in Unity, and configure the logic semantics used in programming for the building block.
[0074] In this embodiment, step S1 specifically includes the following steps:
[0075] S11. Using the FGUI editor in Unity to create building blocks of different shapes or colors, which are used to distinguish the types of building blocks.
[0076] In this embodiment, the building block generation process is as follows: the FGUI editor decomposes the basic blocks in Unity into multiple horizontal rows or vertical columns of spaces, and mounts various basic controls for the spaces, such as text, input boxes, The drop-down box, operator button, judgment box, and splicing container boxes of various shapes, etc., and then use the GLoader (loader) control of the FGUI editor to load image resour...
Embodiment 2
[0092] A 3D scene and character driving method based on xLua, on the basis of the first embodiment above, in this embodiment, step S3 specifically includes the following steps:
[0093] S31. Start Unity, load preset 3D scenes and characters, and add C# control scripts for the 3D scenes and characters.
[0094] Among them, the C# control script includes 3D scene loading, switching and unloading control scripts and character action play, display, hide and character speech bubble control scripts.
[0095] That is, by binding some scripts that control 3D scenes and characters, such as 3D scene switching, loading, etc., and character actions, speaking, etc. Among them, the loading, switching and unloading control scripts of 3D scenes can be packaged as scene control, and can also include camera control, scene role control, etc. By encapsulating pathfinding with a navigation mesh, the character can move freely in the scene. The overall realization of realistic and diverse scenes a...
Embodiment 3
[0099] Please refer to figure 2 , Embodiment three of the present invention is:
[0100] A 3D scene and role-driven terminal 1 based on xLua, including a memory 2, a processor 3, and a computer program stored on the memory 2 and operable on the processor 3, the processor 3 implements the above-mentioned embodiments when executing the computer program Steps of a 3D scene and character driving method based on xLua in the first or second embodiment.
[0101] To sum up, the present invention provides a xLua-based 3D scene and character driving method and terminal, by developing building blocks with logical semantics in the Unity engine, and converting the logical semantics corresponding to the built building blocks into The executable Lua script code executes the Lua code through the xLua virtual machine to drive 3D scenes and characters to display the output results of the code, which has the following beneficial effects:
[0102] 1. Use the Unity engine to develop building bl...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com


