SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 06-22-11, 03:10 AM   #1
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
[REL] ShiftTexture. A small addition to S3D.

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 .
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/jrsbtu...hiftTexture.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/wjn4bb...tTexture_2.rar
__________________
Alex ®


Moses said: "Don't create yourself an idol"...

Last edited by Anvart; 07-18-11 at 12:09 PM.
Anvart is offline   Reply With Quote
Old 06-22-11, 04:29 AM   #2
urfisch
Sea Lord
 
Join Date: Mar 2005
Location: Deep down in Germany
Posts: 1,969
Downloads: 42
Uploads: 0
Default

interesting, anvart. so what can we do with it? any examples?
__________________


urfisch is offline   Reply With Quote
Old 06-22-11, 04:45 AM   #3
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Default


Now it's your problem (your headache)... not mine.
__________________
Alex ®


Moses said: "Don't create yourself an idol"...

Last edited by Anvart; 06-22-11 at 05:26 AM.
Anvart is offline   Reply With Quote
Old 06-22-11, 08:48 AM   #4
DivingDuck
Grey Wolf
 
Join Date: Jul 2006
Location: Germany
Posts: 902
Downloads: 10
Uploads: 1
Default

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.

Regards,
DD
DivingDuck is offline   Reply With Quote
Old 06-22-11, 02:01 PM   #5
Fish In The Water
Prince of
the Sea


SUBSIM
Welcome
Committee

 
Join Date: Jul 2009
Location: Watching over U-253
Posts: 3,527
Downloads: 98
Uploads: 2
Default

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.
Fish In The Water is offline   Reply With Quote
Old 06-22-11, 04:32 PM   #6
Jimbuna
Chief of the Boat
 
Jimbuna's Avatar
 
Join Date: Feb 2006
Location: 250 metres below the surface
Posts: 190,525
Downloads: 63
Uploads: 13


Default

Amen
__________________
Wise men speak because they have something to say; Fools because they have to say something.
Oh my God, not again!!

Jimbuna is offline   Reply With Quote
Old 06-24-11, 02:13 PM   #7
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

Quote:
Originally Posted by Anvart View Post

Now it's your problem (your headache)... not mine.
Now my head hurts thinking about it.


Nice work Mate!
  Reply With Quote
Old 06-30-11, 01:36 AM   #8
Hans Witteman
Kaleun of U-3
 
Join Date: Sep 2008
Location: somewhere in 1939
Posts: 1,816
Downloads: 123
Uploads: 0
Default

Hi Anvart,

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

Best regards Hans
__________________




Hans Witteman is offline   Reply With Quote
Old 07-18-11, 12:26 PM   #9
Anvart
Admiral
 
Join Date: Jan 2006
Location: Russia ®
Posts: 2,492
Downloads: 122
Uploads: 1
Final version.

Slight organizational renewal.
See the first post in this thread.

__________________
Alex ®


Moses said: "Don't create yourself an idol"...
Anvart is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:20 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.