Iris2.de

Iris2-Forum
It is currently Fri Apr 26, 2024 9:00 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Jul 25, 2007 9:42 am 
Offline
User avatar

Joined: Sun May 27, 2007 8:01 pm
Posts: 41
Location: France
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 :)

_________________
Suwing
Sorry for my bad english.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 12:22 pm 
Offline
iris2-developer
User avatar

Joined: Tue Aug 22, 2006 1:21 pm
Posts: 173
Location: Munich, Germany
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.

_________________
O-->---


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 25, 2007 1:36 pm 
Offline
iris2-developer
User avatar

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



Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 02, 2007 1:01 pm 
Offline
User avatar

Joined: Sun May 27, 2007 8:01 pm
Posts: 41
Location: France
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 =)

_________________
Suwing
Sorry for my bad english.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 02, 2007 1:41 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
No. but i can add Scaling for your request.

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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