Such yaratish uchun Xgen ko’rsatmalari


def abc_export(filepath, node=None


Download 1.48 Mb.
bet6/6
Sana22.04.2023
Hajmi1.48 Mb.
#1378800
1   2   3   4   5   6
def abc_export(filepath, node=None, start_frame=1, end_frame=1, data_format='otawa', uv_write=True):


job_command = '-frameRange {} {} '.format(start_frame, end_frame)
job_command += '-dataFormat {} '.format(data_format)


job_command += '-attr groom_root_uv '


if uv_write:
job_command += '-uvWrite '


job_command += '-root {} '.format(node)


job_command += '-file {} '.format(filepath)


cmds.AbcExport(verbose=True, j=job_command)


def main():


export_directory = 'D:/Dev/Ref'
hair_file = os.path.join(export_directory, 'hair_export.abc')
curve_top_group= 'description1|SplineGrp0'
uv_mesh='pPlane1'


create_root_uv_attribute( curve_top_group , uv_mesh)
abc_export(hair_file, curve_top_group)


main()

  1. Maya tilida, Unreal Engine-ga import qilinadigan yangi Alembic ('.abc') faylini yaratish uchun o'zgartirilgan qiymatlar bilan skriptni ishga tushiring.

  2. Unreal Engine-da Sochni soya qilish modelidan foydalanib yangi material yarating . Moddiy grafikda Soch atributlari ifodasini qo'shing va ildiz UV ni tekstura namunasining UV kirishiga ulang.


Atribut groom_root_uvhar bir sochga biriktirilgan asosiy to'r UVni belgilaydi. Ushbu atribut ixtiyoriy va agar ko'rsatilmagan bo'lsa, sferik xaritalash yordamida dvigatelda avtomatik ravishda ildiz UV hosil bo'ladi.

  1. Import qilingan soch Alembic faylini Kontent brauzeridagi darajaga torting va unga soch materialini belgilang. Siz shunday bir narsa bilan yakunlashingiz kerak:

Sochingizdagi alembik faylning kengligi 0 dan katta ekanligiga ishonch hosil qiling.
Download 1.48 Mb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling