Thread Tools Display Modes
02-13-14, 03:20 PM   #1
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Model mirroring

Anyone know a workaround for mirroring a model?
  Reply With Quote
02-13-14, 07:02 PM   #2
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
Are the models still m2 files? If everything else fails you edit them and provide custom models with your addon.
  Reply With Quote
02-13-14, 07:23 PM   #3
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
I'm not sure what you mean by mirroring. You can change which direction the model is pointing using model:SetFacing(radians).

I don't know if you can truly flip the image around.
  Reply With Quote
02-14-14, 02:17 AM   #4
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Resike haven't you fixed that already? In your example you could rotate a model in any direction.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
02-14-14, 03:11 AM   #5
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by zork View Post
Resike haven't you fixed that already? In your example you could rotate a model in any direction.
Yes but some models only visible only from one side, and rotating it makes it invisible on the other side.

Anyway i used a different model now, but such function would be handy in some situations, but it might not be doable.

Last edited by Resike : 02-14-14 at 03:14 AM.
  Reply With Quote
02-14-14, 03:12 AM   #6
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by Duugu View Post
Are the models still m2 files? If everything else fails you edit them and provide custom models with your addon.
Would be nice, but addons can't load models from custom paths, at least i couln't make it work.
  Reply With Quote
02-14-14, 03:48 AM   #7
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Hmmm. Just a question but had you issues with caching at any time? Because when I first started with oUF_D3Orbs I tried using wisp m2 models but there was a problem. The model would not show up until it was cached. I'm not sure if that is still the fact though.

The displayId technique fixed that for me because it allowed loading of models that where not cached yet. Imo that was added because Blizzard needed a way to show uncached quest NPC models in the new questframe themselve.

Actually I just found the thread regarding that topic. http://www.wowinterface.com/forums/s...ad.php?t=34898

Maybe the caching issue only exists when using :SetCreature() and not when calling a model directly via :SetModel().
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 02-14-14 at 04:01 AM.
  Reply With Quote
02-14-14, 04:07 AM   #8
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
Originally Posted by zork View Post
Hmmm. Just a question but had you issues with caching at any time? Because when I first started with oUF_D3Orbs I tried using wisp m2 models but there was a problem. The model would not show up until it was cached. I'm not sure if that is still the fact though.

The displayId technique fixed that for me because it allowed loading of models that where not cached yet. Imo that was added because Blizzard needed a way to show uncached quest NPC models in the new questframe themselve.

Actually I just found the thread regarding that topic. http://www.wowinterface.com/forums/s...ad.php?t=34898

Maybe the caching issue only exists when using :SetCreature() and not when calling a model directly via :SetModel().
Do you use "Model", or "PlayerModel"? I think the the model is "PlayerModel" then it's not gonna need caching, at least i never run into this problem.

But you could be right because i always use :SetModel() too.
  Reply With Quote
02-14-14, 02:18 PM   #9
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by zork View Post
Maybe the caching issue only exists when using :SetCreature() and not when calling a model directly via :SetModel().
SetCreature relies on the cache and SetModel doesn't, however SetModel won't texture the model if it has more than one skin.
  Reply With Quote
02-14-14, 02:47 PM   #10
pelf
Sentient Plasmoid
 
pelf's Avatar
Premium Member
Join Date: May 2008
Posts: 133
That reminds me of a thread I saw somewhere, some time ago, where something horrible had happened while trying to skin a model and dwarf textures were stuffed onto human models and all sorts of further abominations. I wonder if that thread was here...
  Reply With Quote
02-14-14, 05:00 PM   #11
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
You're probably thinking of this thread.

There were in fact more abominations like these (nsfw?) which I had neglected to post and I can't imagine why.

Bonus picture!

Last edited by semlar : 02-14-14 at 05:26 PM.
  Reply With Quote
02-14-14, 06:42 PM   #12
pelf
Sentient Plasmoid
 
pelf's Avatar
Premium Member
Join Date: May 2008
Posts: 133
That is definitely the thread. I laughed so hard the first time I saw that.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Model mirroring

Thread Tools
Display Modes

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