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

filter.art.lua use question
http://iris2.de/forum/viewtopic.php?f=16&t=1101
Page 1 of 1

Author:  Suwing [ Wed Jul 25, 2007 9:42 am ]
Post subject:  filter.art.lua use question

Hello,
I see in the filter.art.lua we can change and rotate id.
So it is usefull for turn 3d model.
But for the moment I use good position of my mesh for after rotate for another uo-id view.

I explain:

2972 is the metal_postsign, this mesh have exactly the good position ingame for the 2972 uo id item.
2971 is the same item but in other view, so I use filter.art.lua to change my first item

filter.art.lua
Code:
--~ metal_postsign_2972
gArtFilter[2971]={maptoid=2972,rotation="x:0,y:0,z:90",xadd=0,yadd=1,zadd=0}



Now it is not easy to place .mesh in good position, so I would like know if it possible to use the filter for the primary id location.
like this:

Code:
--~ metal_postsign_2972
gArtFilter[2972]={maptoid=2972,rotation="x:10,y:25,z:0",xadd=0,yadd=0,zadd=0}
gArtFilter[2971]={maptoid=2972,rotation="x:0,y:0,z:90",xadd=0,yadd=1,zadd=0}


It will be more easier but there are any risk of bad performance soon with lots .mesh ?

So can I use this method or not?

Thank you :)

Author:  hagish [ Wed Jul 25, 2007 12:22 pm ]
Post subject: 

the lua tables are based on a hash structure so accessing them should be fast even if there are many elements in the table.
so it should be no problem to use gArtFilter this way.

Author:  SiENcE [ Wed Jul 25, 2007 1:36 pm ]
Post subject: 

Mh mapping an id to itself makes no sense.

I include a check and then you don't have to write this for the first mapping.

soemthing like this:
Code:
gArtFilter[2972]={rotation="x:10,y:25,z:0",xadd=0,yadd=0,zadd=0}
gArtFilter[2971]={maptoid=2972,rotation="x:0,y:0,z:90",xadd=0,yadd=1,zadd=0}


Author:  Suwing [ Thu Aug 02, 2007 1:01 pm ]
Post subject: 

Code:
gArtFilter[2972]={rotation="x:10,y:25,z:0",xadd=0,yadd=0,zadd=0}

Doesn't work, I have an lua error.

Code:
gArtFilter[2972]={maptoid=2972,rotation="x:0,y:0,z:90",xadd=0,yadd=1,zadd=0}

I'm agree this are no sense but work :)


And, it is possible to resize a mesh with command like rotation ?

thx =)

Author:  SiENcE [ Thu Aug 02, 2007 1:41 pm ]
Post subject: 

No. but i can add Scaling for your request.

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