Make container model plus shaped. Remove test texture. Try a bunch of
crap to make NiAlphaProperty work. It didn't help...
This commit is contained in:
parent
e98a5ca9e0
commit
9ab6010ad8
5 changed files with 10 additions and 7 deletions
6
Makefile
6
Makefile
|
@ -35,12 +35,12 @@ plugin/Data/Scripts/%.pex: Source/Scripts/%.psc
|
||||||
"$(SKYRIM_BASE)/Papyrus Compiler/PapyrusCompiler.exe" \
|
"$(SKYRIM_BASE)/Papyrus Compiler/PapyrusCompiler.exe" \
|
||||||
"$(current_dir)/$^" \
|
"$(current_dir)/$^" \
|
||||||
"-f=$(SKYRIM_BASE)/Data/Source/Scripts/TESV_Papyrus_Flags.flg" \
|
"-f=$(SKYRIM_BASE)/Data/Source/Scripts/TESV_Papyrus_Flags.flg" \
|
||||||
"-i=$(SKYRIM_BASE)/Data/Source/Scripts;$(current_dir)/Source/Scripts" \
|
"-i=$(SKYRIM_BASE)/Data/Source/Scripts;$(SKYRIM_BASE)/Data/Scripts/Source;$(current_dir)/Source/Scripts" \
|
||||||
"-o=$(dir $(current_dir)/$@)"
|
"-o=$(dir $(current_dir)/$@)"
|
||||||
|
|
||||||
textures: $(textureFiles)
|
textures: $(textureFiles)
|
||||||
|
|
||||||
plugin/Data/Textures/_EQ_ItemRoulette/%.dds: Source/Textures/_EQ_ItemRoulette/%.xcf
|
plugin/Data/Textures/_EQ_ItemRoulette/%.dds: Source/Textures/_EQ_ItemRoulette/%.xcf export_gimp_textures.py
|
||||||
GIMP=$$(powershell -Command '(Get-Item "$(ProgramW6432)/GIMP*/bin/gimp-console*.exe").FullName')
|
GIMP=$$(powershell -Command '(Get-Item "$(ProgramW6432)/GIMP*/bin/gimp-console*.exe").FullName')
|
||||||
"$$GIMP" -n -i --batch-interpreter python-fu-eval -b 'import export_gimp_textures ; export_gimp_textures.main("$<", "$@")'
|
"$$GIMP" -n -i --batch-interpreter python-fu-eval -b 'import export_gimp_textures ; export_gimp_textures.main("$<", "$@")'
|
||||||
|
|
||||||
|
@ -100,10 +100,12 @@ plugin/Data/Meshes/_EQ_ItemRoulette/%_final.nif: Source/Meshes/_EQ_ItemRoulette/
|
||||||
build/ChunkMerge/ChunkMerge.exe &
|
build/ChunkMerge/ChunkMerge.exe &
|
||||||
powershell -Command '$$env:ChunkMerge_NifFile=Split-Path (Join-Path "$@" "."); $$env:ChunkMerge_CollisionFile=Split-Path (Join-Path "$(filter %_collision.nif,$^)" ".") ; $$env:ChunkMerge_TemplateFile="$(notdir $(filter %_template.nif,$^))" ; Start-Process -Wait -FilePath AutoHotKey -ArgumentList @("ChunkMerge.ahk") ; Stop-Process -Name ChunkMerge'
|
powershell -Command '$$env:ChunkMerge_NifFile=Split-Path (Join-Path "$@" "."); $$env:ChunkMerge_CollisionFile=Split-Path (Join-Path "$(filter %_collision.nif,$^)" ".") ; $$env:ChunkMerge_TemplateFile="$(notdir $(filter %_template.nif,$^))" ; Start-Process -Wait -FilePath AutoHotKey -ArgumentList @("ChunkMerge.ahk") ; Stop-Process -Name ChunkMerge'
|
||||||
|
|
||||||
|
.PRECIOUS: plugin/Data/Meshes/_EQ_ItemRoulette/%_mesh.nif
|
||||||
plugin/Data/Meshes/_EQ_ItemRoulette/%_mesh.nif: Source/Meshes/_EQ_ItemRoulette/%_mesh.blend
|
plugin/Data/Meshes/_EQ_ItemRoulette/%_mesh.nif: Source/Meshes/_EQ_ItemRoulette/%_mesh.blend
|
||||||
BLENDER=$$(powershell -Command '(Get-Item "$(ProgramW6432)/Blender*/Blender*/blender.exe").FullName')
|
BLENDER=$$(powershell -Command '(Get-Item "$(ProgramW6432)/Blender*/Blender*/blender.exe").FullName')
|
||||||
"$$BLENDER" --background --python "./export_blender_models.py" -- "$^" "$@"
|
"$$BLENDER" --background --python "./export_blender_models.py" -- "$^" "$@"
|
||||||
|
|
||||||
|
.PRECIOUS: plugin/Data/Meshes/_EQ_ItemRoulette/%_collision.nif
|
||||||
plugin/Data/Meshes/_EQ_ItemRoulette/%_collision.nif: Source/Meshes/_EQ_ItemRoulette/%_collision.blend
|
plugin/Data/Meshes/_EQ_ItemRoulette/%_collision.nif: Source/Meshes/_EQ_ItemRoulette/%_collision.blend
|
||||||
BLENDER=$$(powershell -Command '(Get-Item "$(ProgramW6432)/Blender*/Blender*/blender.exe").FullName')
|
BLENDER=$$(powershell -Command '(Get-Item "$(ProgramW6432)/Blender*/Blender*/blender.exe").FullName')
|
||||||
"$$BLENDER" --background --python "./export_blender_models.py" -- "$^" "$@"
|
"$$BLENDER" --background --python "./export_blender_models.py" -- "$^" "$@"
|
Binary file not shown.
|
@ -7,9 +7,10 @@ ObjectReference[] DisplayItems
|
||||||
ObjectReference Roulette
|
ObjectReference Roulette
|
||||||
|
|
||||||
Int MAX_ITEMS = 5
|
Int MAX_ITEMS = 5
|
||||||
Float UI_DISTANCE = 32.0
|
Float UI_DISTANCE = 48.0
|
||||||
Float UI_DEGREES = 7.0
|
Float UI_DEGREES = 7.0
|
||||||
Float UI_ZEES = 4.0
|
Float UI_ZEES = 4.0
|
||||||
|
Float UI_ITEM_SCALE = 0.2
|
||||||
|
|
||||||
Event OnInit()
|
Event OnInit()
|
||||||
DisplayItems = New ObjectReference[127]
|
DisplayItems = New ObjectReference[127]
|
||||||
|
@ -36,11 +37,11 @@ Event OnUpdate()
|
||||||
Float handZ = VRIK.VrikGetHandZ(true)
|
Float handZ = VRIK.VrikGetHandZ(true)
|
||||||
Float playerAngle = PlayerRef.GetAngleZ()
|
Float playerAngle = PlayerRef.GetAngleZ()
|
||||||
|
|
||||||
Roulette.MoveTo(PlayerRef, UI_DISTANCE * Math.sin(playerAngle), UI_DISTANCE * Math.cos(playerAngle), VRIK.VrikGetHmdZ(), true)
|
Roulette.TranslateTo(PlayerRef.X + UI_DISTANCE * Math.sin(playerAngle), PlayerRef.Y + UI_DISTANCE * Math.cos(playerAngle), VRIK.VrikGetHmdZ(), 0, 0, playerAngle, 1000)
|
||||||
|
|
||||||
Int index = 0
|
Int index = 0
|
||||||
While index < MAX_ITEMS && DisplayItems[index] != None
|
While index < MAX_ITEMS && DisplayItems[index] != None
|
||||||
; TLRB
|
; T-LCR-B
|
||||||
Float top = 0
|
Float top = 0
|
||||||
Float left = 0
|
Float left = 0
|
||||||
If index == 0
|
If index == 0
|
||||||
|
@ -72,7 +73,7 @@ Event OnMyAction(string eventName, string strArg, float numArg, Form sender)
|
||||||
count = numItems - formIndex
|
count = numItems - formIndex
|
||||||
Form invItem = PlayerRef.GetNthForm(formIndex)
|
Form invItem = PlayerRef.GetNthForm(formIndex)
|
||||||
ObjectReference invItemInst = PlayerRef.DropObject(invItem)
|
ObjectReference invItemInst = PlayerRef.DropObject(invItem)
|
||||||
invItemInst.SetScale(0.1)
|
invItemInst.SetScale(UI_ITEM_SCALE)
|
||||||
invItemInst.SetMotionType(invItemInst.Motion_Keyframed)
|
invItemInst.SetMotionType(invItemInst.Motion_Keyframed)
|
||||||
DisplayItems[count - 1] = invItemInst
|
DisplayItems[count - 1] = invItemInst
|
||||||
EndWhile
|
EndWhile
|
||||||
|
|
Binary file not shown.
|
@ -21,7 +21,7 @@ def main(xcf_path, dds_path):
|
||||||
pdb.file_dds_save(
|
pdb.file_dds_save(
|
||||||
image,
|
image,
|
||||||
# (13, 'image', 'Input image'),
|
# (13, 'image', 'Input image'),
|
||||||
image.flatten(),
|
pdb.gimp_image_merge_visible_layers(image, 1),
|
||||||
# (16, 'drawable', 'Drawable to save'),
|
# (16, 'drawable', 'Drawable to save'),
|
||||||
dds_path,
|
dds_path,
|
||||||
# (4, 'filename', 'The name of the file to save the image as'),
|
# (4, 'filename', 'The name of the file to save the image as'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue