Log in

View Full Version : [REL] ShiftTexture. A small addition to S3D.


Anvart
06-22-11, 03:10 AM
One of my old stuff, designed for use in S3D.
Simple ShiftTexture render controller... must be attached to Type 4/100 object.
This controller moves the texture along U and/or V coordinates with a given relative speed.

IIRC:
If your object is multitextured (multi-material) the controller will move only the first texture (first material in Type 4/100 object).
TexUnit:
Texture0 - it's base diffuse texture;
Texture1 - it's additional Type 13 texture as AO/Lightmap, Bump and so on;
Texture2 - it's reserve parameter :haha:.
I tested it in interior... when i choosed TexUnit = Texture0, base texture was moved... when i choosed TexUnit = Texture1, LightMap was moved.

Link:
http://www.mediafire.com/file/jrsbtuqub1jad2x/ShiftTexture.cs

Installing:
Put ShiftTexture.cs into X:\Program Files\Silent 3ditor\Controllers\_SH3\SH3Controllers\ folder.
/////////////////////////////////////////////////////////////////////////////////////////////////////
Updated - 18.07.2011
******************
Slight organizational renewal.
So as TexUnit property is used in other controllers also, I have identified this enumerated type into a separate file TexUnits.cs (same story with AnimatedTexture controller in http://www.subsim.com/radioroom/showthread.php?t=184667).
Installation:
Unpack the archive ShiftTexture_2.rar. Move folders movietex and SH3Controllers into X:\Program Files\Silent 3ditor\Controllers\_SH3\ folder and overwrite the existing folders and files.

Link: http://www.mediafire.com/file/wjn4bb63xbudcvb/ShiftTexture_2.rar

urfisch
06-22-11, 04:29 AM
interesting, anvart. so what can we do with it? any examples?

Anvart
06-22-11, 04:45 AM
:haha:
Now it's your problem (your headache)... not mine.

DivingDuck
06-22-11, 08:48 AM
Thanks Anvart. You never cease to amaze me. This might come in handy some day in the future. I just have to find something to apply it to. But, that is my problem, of course. :D

Regards,
DD

Fish In The Water
06-22-11, 02:01 PM
Once again, thanks for sharing your work with the community. The little things often make a big difference and I suspect we'll soon discover this to be true again. :up:

Jimbuna
06-22-11, 04:32 PM
Amen http://www.psionguild.org/forums/images/smilies/wolfsmilies/pirate.gif

Madox58
06-24-11, 02:13 PM
:haha:
Now it's your problem (your headache)... not mine.

Now my head hurts thinking about it.
:03:

Nice work Mate!
:yeah:

Hans Witteman
06-30-11, 01:36 AM
Hi Anvart,

Another great add on from the master of code thank you very much mate:Kaleun_Cheers:

Best regards Hans

Anvart
07-18-11, 12:26 PM
Slight organizational renewal. :haha:
See the first post in this thread.

:salute: