flip image script????

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
chrisredfield003
Sergeant
Posts: 56
Joined: Thu Oct 05, 2006 1:00 am
Contact:

flip image script????

Post by chrisredfield003 »

is it possible to flip a skin or image thru scripting
i made a jetpack kind of mod i added fire coming
form one of the tubes and the fire should be upside down
since i turned the model of the fire upsidedown..........but sadly thats not the case so my question is thru scripting it should be possible to flip a texture

for example like this

Image


without having to go thru all 25 images of the fire and manualy turning them myself and than having to make a totaly new fire script of my own and all the steps of manualy doing that...........
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

tcMod scale 1.0 -1.0

In the shader (inside a texture stage) :)

Oh btw many graphic programs (even free ones) come with batch processing tools that can perform the same operation on many images in no time.
Image
chrisredfield003
Sergeant
Posts: 56
Joined: Thu Oct 05, 2006 1:00 am
Contact:

Post by chrisredfield003 »

i notice alot of scripts are asked to be fixed here but rarely is it understood or fixed first post after question so ill get my script here in a sec and hopefuly u can take a look......
chrisredfield003
Sergeant
Posts: 56
Joined: Thu Oct 05, 2006 1:00 am
Contact:

flip image script????

Post by chrisredfield003 »

fire_front
{
qer_editorimage textures/effects/flamer_01.tga
nopicmip
nomipmaps
deformVertexes autosprite
cull none
{
animMapPhase 15 0 textures/effects/flamer_01.tga textures/effects/flamer_02.tga textures/effects/flamer_03.tga textures/effects/flamer_04.tga textures/effects/flamer_05.tga textures/effects/flamer_06.tga textures/effects/flamer_07.tga textures/effects/flamer_08.tga textures/effects/flamer_09.tga textures/effects/flamer_10.tga textures/effects/flamer_11.tga textures/effects/flamer_12.tga textures/effects/flamer_13.tga textures/effects/flamer_14.tga textures/effects/flamer_15.tga textures/effects/flamer_16.tga textures/effects/flamer_17.tga textures/effects/flamer_18.tga textures/effects/flamer_19.tga textures/effects/flamer_20.tga textures/effects/flamer_21.tga textures/effects/flamer_22.tga textures/effects/flamer_23.tga textures/effects/flamer_24.tga textures/effects/flamer_25.tga
blendfunc add
}
}



thats the script that needs to be fliped

obviously im gonna change the directories and scriptname to w/e but the actual texture stage that i need to add wher to add it =/
chrisredfield003
Sergeant
Posts: 56
Joined: Thu Oct 05, 2006 1:00 am
Contact:

Post by chrisredfield003 »

to give another idea of what im looking for
Image

that flame is a model and no matter wichway i turn the model itself the image keeps coming up right side up =/

what i need is for the textures to show up upside down =/
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Hehe nice pic.. gonna have to sit on blisters now :P

Does

Code: Select all

fire_front
{
  qer_editorimage textures/effects/flamer_01.tga
  nopicmip
  nomipmaps
  deformVertexes autosprite
  cull none
  {
    animMapPhase 15 0 ...blablabla... :P
    tcMod scale 1.0 -1.0
    blendfunc add
  }
}
do what you want?
Image
chrisredfield003
Sergeant
Posts: 56
Joined: Thu Oct 05, 2006 1:00 am
Contact:

Post by chrisredfield003 »

jeez u fixed it first try ^^ you saved me from having to make....

1.3 new scripts
2.touch up 25 diffrent img's
3.new texture foldier

basicly saved me from a whole mess of work ^^ ty much
chrisredfield003
Sergeant
Posts: 56
Joined: Thu Oct 05, 2006 1:00 am
Contact:

Post by chrisredfield003 »

Image

i got the effect i was looking for thanks to you
its not as clean as it will be but this is the basic idea of the gearmodel.
Green Beret
Major General
Posts: 746
Joined: Mon Apr 19, 2004 12:21 pm
Contact:

Post by Green Beret »

Nice MoD 8-)
Image
GiffE1118
Warrant Officer
Posts: 137
Joined: Fri Aug 05, 2005 12:14 am
Contact:

Post by GiffE1118 »

chrisredfield003 wrote:to give another idea of what im looking for
Image

that flame is a model and no matter wichway i turn the model itself the image keeps coming up right side up =/

what i need is for the textures to show up upside down =/
Beans?

why is his ass on fire :shock:

new pic looks nice u should add another fire to the send one.
www.95thDivision.com
Image

BOTTOM 125th Poster! lol
chrisredfield003
Sergeant
Posts: 56
Joined: Thu Oct 05, 2006 1:00 am
Contact:

Post by chrisredfield003 »

yup the second pic is just showing i got my small problem out of the way it

was causing a creators block LoL

how the fire has perfect placing and thers been model added to the pack

the jet is in its rough draft steps just gettin the basic idea together befor i put

a decent model together :P

i have more to come tomorow im not dead yet ^^
Post Reply