Image generation method and device, storage medium and electronic device
The invention discloses an image generation method and device, a storage medium and an electronic device. The method comprises the steps: acquiring target parameters used for generating an image of aneye of a virtual character, wherein the target parameters at least comprise a first parameter, and t...
Gespeichert in:
Hauptverfasser: | , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses an image generation method and device, a storage medium and an electronic device. The method comprises the steps: acquiring target parameters used for generating an image of aneye of a virtual character, wherein the target parameters at least comprise a first parameter, and the first parameter is used for representing the pupil depth of the eye of the virtual character; adjusting a refraction offset channel in a normal map corresponding to the eyes of the virtual character according to the first parameter to obtain an adjusted normal map; inputting the first parameterinto a parallax mapping refraction equation corresponding to the eyes of the virtual character to obtain an image coordinate set corresponding to the eyes of the virtual character; obtaining a diffusereflection map corresponding to the eyes of the virtual character according to the image coordinate set; and performing rendering according to the adjusted normal map and diffuse reflection map to generate an image of the eyes |
---|