Dalian Works
aifilm

One imgstyle Field Switches Between Four Art Styles: Realistic, Period, Anime, and Modern

Published 2026-11-02 · Translated from the Chinese original

In the database design of Yuncao Academy, art style is not a repetitive concept scattered across every prompt, but is converged into a single field: imgstyle. Each time you enter a chapter in the dbvideo_article table, you must specify an atctype for that chapter, and the value range is strictly limited to four enumerated values: xs, gz, dm, and xd. When the funx.atctoscene function splits this chapter into scenes, it copies the value of atctype into the imgstyle field of each generated dbvideo_process storyboard record. This field subsequently becomes the sole style basis for all image generation tasks. The drawrole function pulls the corresponding style descriptor words from the system's built-in art style dictionary table based on the value of imgstyle, and the placeaiwords function also automatically embeds that style feature when concatenating location prompts. Therefore, no position in the entire chain requires you to manually modify the prompt template. As long as you select an atctype at the source dbvideo_article table, the visual style of every shot in the entire chapter is determined. The feature parameters corresponding to the four enumerated values differ enormously. xs represents realistic style, and its style descriptor words include ultra-high definition, natural skin texture, physically correct lighting, realistic environmental details, 85mm lens, shallow depth of field, film grain, and extremely rich details. gz represents period costume style, with descriptor words emphasizing ink wash painting style, gongbi heavy color, flowing hair strands, ancient costume details, environments such as the Forbidden City, gardens, bamboo shadows, warm yellow tones, and composition with traditional Chinese painting negative space. dm represents anime style, with descriptor words including cel shading, clean lines, high contrast lighting, anime character styling, bright colors, exaggerated expressions, atmospheric backgrounds, and shoujo manga halftone effects. xd represents modern style, with descriptor words highlighting urban feel, high saturation, fashionable styling, glass curtain wall reflections on skyscrapers, street neon lights, refined realism with a commercial film texture, and sharp edges. These style descriptor words are stored in a dedicated system_style_dict table, indexed by the imgstyle field. Every time the system concatenates a prompt, it automatically reads this table and inserts the corresponding style descriptor text segment into the style position of the image generation prompt. To more intuitively demonstrate the differences, a passage from the first chapter of the novel, in which Lin Xuan first enters the Five Elements City, can be used as a test sample. The original text reads: "Lin Xuan stood at the city gate, looking up at the towering city wall. The banners on the wall fluttered in the breeze. He took a deep breath and stepped into the city gate." This passage is split into two storyboards in dbvideo_process. The first storyboard has the scene set outside the city gate with the character Lin Xuan, and the imgstyle field in the storyboard record is populated according to the chapter's atctype. When set to xs (realistic), the generated first frame presents a realistically textured young man standing beneath a stone city wall, with visible facial pores, a natural sky gradient, moss in the brick joints of the wall, and lighting simulated according to the timestamp to mimic natural light. When set to gz (period), the first frame becomes an ink-brush figure outline. Lin Xuan wears a wide-sleeved robe with flowing lines, the city wall tone is grayish-white, distant mountains are faintly visible, the composition is full of negative space, and the dark patterns on the robe are outlined cloud motifs. When set to dm (anime), the first frame becomes high-saturation colors. Lin Xuan's hair is sharp and reflective, his eyes are large and expressive, the city wall is simplified into geometric color blocks with clear edges, and floating light spots drift in the background. When set to xd (modern), the first frame shows a young man in modern streetwear standing before a glass curtain wall, with a background of high-rise buildings and a busy street, a cool blue tone, crisp details such as legible text on billboards, and a sharp character outline. The first-frame differences among these four images are significant, and the last-frame images equally follow the same set of style descriptors, so style consistency between first and last frames is automatically guaranteed. The key point is that during the generation of the four styles, when the drawrole function receives the taskdes prompt, the only difference is the system-automatically-inserted style descriptor words; all other parts are identical. The character appearance descriptions in the prompt are fixed — such as Lin Xuan's short hair, sword-like eyebrows, and high nose bridge — and the scene descriptions are also fixed, such as the city gate, banners, and sky. Only the style descriptor words change with imgstyle. This design allows the creative team to switch art styles through data fields without rewriting the prompt for every shot, and without needing to understand the syntactic details of each style. In actual production, batch application of art style typically occurs during the book entry stage. Suppose "The First Avenue" has sixty-nine chapters divided into four chapter groups, corresponding to four themes: Five Elements Dragon Flag suited to period style, Miao Bazi Super Body suited to modern style, Miao Bagua Super Body suited to anime style, and Fake Not Easy Super Body suited to realistic style. When the operator enters data into dbvideo_article, they set the corresponding atctype based on the tone of each chapter group. Specifically, when entering the Five Elements Dragon Flag chapter, set atctype to gz; when entering Miao Bazi Super Body, set it to xd; when entering Miao Bagua Super Body, set it to dm; and when entering Fake Not Easy Super Body, set it to xs. After entry is complete, execute funx.atctoscene for batch splitting, and the imgstyle field of each storyboard record automatically inherits the atctype value of its parent chapter. At this point, the art style distribution for the entire film is determined, with no need for subsequent batch updates. If an overall style adjustment for a certain segment is needed after splitting, for example changing the art style of Miao Bagua Super Body from anime to period, you only need to execute a simple SQL statement: UPDATE dbvideo_process SET imgstyle = 'gz' WHERE bookcode = 'BKD20240001' AND imgstyle = 'dm'. This statement updates all storyboard records in that book where imgstyle is dm. From the frontend effect, the next time image generation tasks run, the drawrole function reads the new imgstyle and automatically replaces the style descriptor words with period-style vocabulary, and the first and last frame images will be entirely transformed to a period texture. However, note that if videos have already been generated, those videos will not change automatically. The relevant shots' first and last frames and video segments must be regenerated, or the entire film will mix two art styles. Therefore, when finalizing the plan, you should set all chapters in advance, and avoid modifying the style after videos have been generated. One more boundary case deserves attention: when a book consists of multiple chapters but is actually intended to have a single unified art style, the simplest approach is to set the atctype of all chapters to the same value when entering them, for example setting the entire book to xs. The system does not prevent this practice, nor does it force different chapters to have different styles. For certain script types, such as a full-length feature grounded entirely in realism, this approach is in fact reasonable. Meanwhile, in some experimental works, this field's per-shot control capability can also be exploited to allow different shots within the same chapter to use different art styles, simply by manually modifying the imgstyle value of some records in the storyboard table. This flexibility allows Yuncao Academy to support not only single-style films, but also multi-style mixed narrative within a single film — for example, realistic style for real-life flashbacks and anime style for dream fantasies — resulting in films with greater visual impact after editing. The final piece of practical advice is that the imgstyle field should be defined as varchar(4) at the very beginning, with an index created on it, because during batch art style updates this field frequently appears in WHERE conditions, and the index can improve update performance by several times.