ItsMods

Full Version: Flipping images/shaders
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I'd like to know if its possible to flip an image .. this is what I've got:
[Image: 4d811553d781e-example2.png]

and this is what i want to do:

[Image: 4d8115789a888-example1.png]

so then I need to flip the shader .. but I have no idea how Sad

what do u mean with flipping?
should the shader do an animation?
(03-16-2011, 21:08)Tomsen1410 Wrote: [ -> ]what do u mean with flipping?
should the shader do an animation?

I mean flip the shader horizontal .. look @ the pictures .. I used 2 shaders, a 4th place button from wager matches and a fade out shader which has a nice round shape on one side, BUT if I want to place that shader on both sides of the round button I need to flip the fade out shader ..
Maybe if you use a negative width/height

SetShader( "asdsa", -15, -15 );
(03-16-2011, 21:38)Pozzuh Wrote: [ -> ]Maybe if you use a negative width/height

SetShader( "asdsa", -15, -15 );

That is smart, but not working Sad
My best suggestion is to search for the flipped shader if there is one.
Otherwise, I doubt it's possible.
LOL it is a 3D rotation, it isnt possible
Well, the engine supports drawing shaders flipped (fixed mirror, no dynamic 3D rotation).

Also the minimap is a shader that is being rotated, so it IS possible somehow (can't you check how the minimap is drawn somewhere?)
(03-17-2011, 12:36)AZUMIKKEL Wrote: [ -> ]My best suggestion is to search for the flipped shader if there is one.
Otherwise, I doubt it's possible.

that sucks.. coz there is none
(03-17-2011, 13:33)SuperNovaAO Wrote: [ -> ]Well, the engine supports drawing shaders flipped (fixed mirror, no dynamic 3D rotation).

Also the minimap is a shader that is being rotated, so it IS possible somehow (can't you check how the minimap is drawn somewhere?)

rotating a shader isnt the problem .. how can I mirror it horizontally?
(03-17-2011, 13:33)SuperNovaAO Wrote: [ -> ]Well, the engine supports drawing shaders flipped (fixed mirror, no dynamic 3D rotation).

Also the minimap is a shader that is being rotated, so it IS possible somehow (can't you check how the minimap is drawn somewhere?)

hmm. and where could u look for the code of the minimap?
Pages: 1 2