Iris2.de
http://iris2.de/forum/

Model Resizing ?
http://iris2.de/forum/viewtopic.php?f=17&t=1407
Page 1 of 1

Author:  Sehlor [ Sat May 23, 2009 10:48 am ]
Post subject:  Model Resizing ?

True Harrower/Sphinx/Quaqmire models are too big, is there a way to scaling them ?

Author:  ghoulsblade [ Sat May 23, 2009 11:58 pm ]
Post subject: 

hmm, i took a short look but couldn't find anything for scaling, but here are a few pointers on how to add that :


iris/lua/lib.bodygfx.lua:261:function MakeBodyPartGfx (modelid,meshname,partgfx,forcescalex,forcescaley,forcescalez)

iris/lua/lib.bodygfx.lua:312: local partgfx = MakeBodyPartGfx(modelid,meshname,parentgfx:CreateChild(),fsx,fsy,fsz)

iris/lua/lib.bodygfx.lua:331: table.insert(partsarr,MakeBodyPartGfx(modelid,meshname,rightHandEntity1:CreateTagPoint(rightHandBoneName1),fsx,fsy,fsz))

iris/lua/lib.bodygfx.lua:340: table.insert(partsarr,MakeBodyPartGfx(modelid,meshname,leftHandEntity1:CreateTagPoint(leftHandBoneName1),fsx,fsy,fsz))



and a good place to add scaling infos would be here :
iris/lua/filter/filter.granny.lua:41:gGrannyFilter[780] ={grannyid=779}

Author:  SiENcE [ Sun May 24, 2009 7:34 am ]
Post subject: 

Yeah.

we have a filter concept to modify Art or Grannys.

http://www.iris2.de/index.php/Filters

Just add scaling to Granny Filter.

Author:  Sehlor [ Sun May 24, 2009 7:22 pm ]
Post subject: 

like:
Code:
gGranyFilters[210] = {grannyid=210, scalex=0.5, scaley=0.5, scalez=0.5}


?

Author:  SiENcE [ Wed May 27, 2009 5:00 pm ]
Post subject: 

Yep. But you have to implement this yourself. Currently i don't have the time todo it.

Send the patch to me if you are done. I add it to Iris2. Thanks in advance! :-)

Author:  Archfiend [ Fri Jul 08, 2011 10:39 am ]
Post subject:  Re: Model Resizing ?

I'm planning on setting up a small RunUO server to test out Iris as the primary client for players.

To make it look smooth I've been making up a list of mounts, clothing and building materials that are scaled relatively well and limiting the world to those models.

Most mounts appear very small but, I've realized by standing my character next to a wall, that the models for humanoids are actually too large for the mounts. In a building, my character's head is poking above walls if I view from the side.

Is there any way to fix this without being an Iris developer? Could I, say, get a model editor, fix the problem in the MLegacy files, package the new models and include them in a redistributed Iris2 installer?

Author:  ghoulsblade [ Fri Jul 08, 2011 10:35 pm ]
Post subject:  Re: Model Resizing ?

it's tricky since you'll need to scale not only the humans, but also all the clothes, weapons and other wearable equipment.
scaling the mounts might be easier.

you can do it with a text-editor like notepad++ editing the file ./lua/filter/filter.granny.lua : scale={x=2,y=2,z=2}
the id number needed is in the bottom line of the screen when you hold your mouse over the item, body or so.

best thing would be setting a global scale factor by editing

lua/lib.granny.lua: line 63: gGrannyScaleFactor = 0.65

maybe set it to 0.5 instead,
and then adjust individual models, e.g. mounts.

Author:  Archfiend [ Sun Oct 09, 2011 8:32 am ]
Post subject:  Re: Model Resizing ?

Oh, wow. Thanks a lot! This looks so much cooler.

Author:  SiENcE [ Sun Oct 09, 2011 3:20 pm ]
Post subject:  Re: Model Resizing ?

Should we change the value to 0.5 or makes this problems?

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/