Thread Tools Display Modes
01-26-14, 04:39 PM   #1
Spawnova
A Warpwood Thunder Caller
 
Spawnova's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 96
Display 3d model in game

What I would like is to show a simple 3d object in a small box, similar to how player frame units of other addons have the 3d model of your character.

I've done a lot of looking but I can't find anything, I've also tried looking at the code of similar addons but most use AceLib and I don't use that.

If someone could help me out or point me in the right direction it would be very much appreciated.

EDIT: After more digging I did manage to create such a window the only problem is that the model comes out completely white, missing textures here's what I have so far..

Code:
local f= CreateFrame("DressUpModel", "MyModelFrame", UIParent, "ModelTemplate")
f:SetPoint("CENTER")
f:SetSize(172,400)
f:SetModel("Character\\NightElf\\Female\\NightElfFemale.mdx")
f:Show()

Last edited by Spawnova : 01-26-14 at 04:58 PM.
  Reply With Quote
01-26-14, 05:21 PM   #2
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Check this thread, it might be a bit overkill for you but you will found codes to test there too.

Edit: Oh yes i only forget to link the thread.

http://www.wowinterface.com/forums/s...ght=model+tilt
  Reply With Quote
01-26-14, 05:44 PM   #3
Spawnova
A Warpwood Thunder Caller
 
Spawnova's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2012
Posts: 96
Hey that's pretty useful, thank a bunch this has helped! =)
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Display 3d model in game


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off