How to get *textured* PlayerModel frame of shapeshift forms?
I want to put the 3D models of shapeshift forms into a frame, but SetModel() with the ModelFileID as returned by GetModelFileID() only gives me the model without a texture.
How can this be achieved? Here is my code so far: Code:
local playerModelFrame = CreateFrame("PlayerModel") And this is the result: |
This may not be what you are looking for, but it might give you ideas on how to accomplish your goal.
https://wowinterface.com/downloads/i...delViewer.html |
Thanks, but rIngameModelViewer uses playerModelFrame:setDisplayInfo(displayID).
If I wanted to do this, I would first need the displayID. So my questions would be: How to get the displayID of shapeshift forms? When I do Code:
playerModelFrame:SetUnit("player") UPDATE: OK, this has already been answered 3 years ago... |
After some research (particularly this thread), I am smarter now.
Using SetModel(fileID) seems to be pretty useless for any purpose I could think of. What you need is SetDisplayInfo(displayID). There are basically two ways of finding the displayID of your playerModelFrame:setUnit() created model:
|
Quote:
https://raw.githubusercontent.com/Re...isplayPath.lua |
Quote:
Maybe you can help me with another thing! I want to bring the Demon Hunter Vengeance BloodElf model into a playerModel frame. But this does not have a displayID of its own. It is instead the NightElf model (creature/dhmaletank/dhmaletank.m2) with the creature/dhmaletank/demon_tankbodybelf.blp skin. The displayIDs using dhmaletank.m2 in your file Code:
[65309] = "creature/dhmaletank/dhmaletank.m2", Any idea how I can display this with the "belf" skin? I saw that your Power Auras 4 Addon allows you to apply different textures to the same model, so I wanted to try it for this. But I did not know how to set your "Model" slider (going from 1 to 2742) to get the dhmaletank.m2 model. Entering "creature/dhmaletank/dhmaletank.m2" in the "Custom" field did not do anything at all... |
Quote:
|
Quote:
(It does not need to be a "PlayerModel" frame at all. Just any kind of frame would be fine.) Could this be done with your "custom skin support"? |
Quote:
|
Quote:
and The textures on the female version are looking a bit odd in the model viewer. Here are two youtube videos showing the models in game. https://youtu.be/bJQuj1Akyvc?t=21 https://youtu.be/w_xNCaoGTq4?t=92 |
All times are GMT -6. The time now is 12:27 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI