Iris2.de

Iris2-Forum
It is currently Tue Mar 19, 2024 10:34 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Model Resizing ?
PostPosted: Sat May 23, 2009 10:48 am 
Offline
Power User
User avatar

Joined: Fri Apr 17, 2009 2:32 pm
Posts: 122
True Harrower/Sphinx/Quaqmire models are too big, is there a way to scaling them ?


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 23, 2009 11:58 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
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}


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 24, 2009 7:34 am 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
Yeah.

we have a filter concept to modify Art or Grannys.

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

Just add scaling to Granny Filter.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 24, 2009 7:22 pm 
Offline
Power User
User avatar

Joined: Fri Apr 17, 2009 2:32 pm
Posts: 122
like:
Code:
gGranyFilters[210] = {grannyid=210, scalex=0.5, scaley=0.5, scalez=0.5}


?


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 27, 2009 5:00 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
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! :-)


Top
 Profile  
 
 Post subject: Re: Model Resizing ?
PostPosted: Fri Jul 08, 2011 10:39 am 
Offline

Joined: Fri Jul 08, 2011 10:30 am
Posts: 8
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?


Top
 Profile  
 
 Post subject: Re: Model Resizing ?
PostPosted: Fri Jul 08, 2011 10:35 pm 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
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.


Top
 Profile  
 
 Post subject: Re: Model Resizing ?
PostPosted: Sun Oct 09, 2011 8:32 am 
Offline

Joined: Fri Jul 08, 2011 10:30 am
Posts: 8
Oh, wow. Thanks a lot! This looks so much cooler.


Top
 Profile  
 
 Post subject: Re: Model Resizing ?
PostPosted: Sun Oct 09, 2011 3:20 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
Should we change the value to 0.5 or makes this problems?

_________________
http://crankgaming.blogspot.com/ | https://twitter.com/#!/crank_gaming


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group