| Author |
instant water mod.. |
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-09 14:11  
opening the
water.mdf
water2.mdf and
water3.mdf
and removing the
;
checks from the
;; Level 5, Texture Stage 0
[STAGE50]
Texture = Bump
Use = NORMAL_MAP
MinFilter = TRUE
MagFilter = TRUE
Mipmap = TRUE
NormalScale = 15
NormalAxis = Y
;; Level 5, Texture stage 1
[STAGE51]
Texture = NONE
[STAGE51]
Texture = Water2
Use = TEXTURE_MAP
Mipmap = TRUE
MinFilter = TRUE
MagFilter = TRUE
UVIndex = 0
;; Level 5, Texture stage 2
[STAGE51]
Texture = EnviroMap
Size = 64,64
Use = CUBIC_MAP
UVIndex = 1
ColorOp = MODULATE
AlphaOp = SELECT_CURRENT
MinFilter = TRUE
MagFilter = TRUE
ClampU = TRUE
ClampV = TRUE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Level 4 water texture - for cards with bump mapping
;; and spherical environment mapping capabilities.
[LEVEL4]
Diffuse = 0,6,4,255
Ambient = 0,6,4,255
;Diffuse = 255,255,255,255
;Ambient = 255,255,255,255
Fog = TRUE
Gouraud = TRUE
ZBuffer = TRUE
Lighting = TRUE
NextPass = Water2
;; Level 4, Texture stage 1
[STAGE40]
Texture = WaterBump_
Use = BUMP_MAP
MinFilter = TRUE
MagFilter = TRUE
MipMap = TRUE
TexGen = POSITION
TexMat0 = ROTATE,90,0,0
TexMat1 = SCALE,0.02,0.02,0.0
;;0.016667,0.016667,0.0
BumpMatrix = 0.1,0.0,0.0,0.1
BumpLumScale = 1.0
BumpLumOffset = 0.0
FlipBook = TRUE
FrameCnt = 16
;; Level 4, Texture stage 2
[STAGE41]
Texture = EnviroMap
Size = 256,256
Use = ENVIRO_MAP
UVIndex = 1
MinFilter = TRUE
MagFilter = TRUE
ClampU = TRUE
ClampV = TRUE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Level 2 water texture - for cards with 2 blend stages.
[LEVEL2]
Diffuse = 255,255,255,255
Fog = TRUE
Gouraud = TRUE
ZBuffer = TRUE
Lighting = TRUE
NextPass = Water2
;; Level 2, Texture Stage 0
[STAGE20]
Texture = Water3
Use = TEXTURE_MAP
Mipmap = TRUE
MinFilter = TRUE
MagFilter = TRUE
TexGen = POSITION
TexMat0 = ROTATE,90,0,0
TexMat1 = SCALE,0.000125,0.000125,0.0
;TexMat1 = SCALE,0.008333,0.008333,0.0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Level 1 water texture - for all other accelerator cards.
[LEVEL1]
Diffuse = 96,96,96,255
Fog = TRUE
Gouraud = TRUE
ZBuffer = TRUE
Lighting = TRUE
;; Level 1, Texture Stage 0
[STAGE10]
Texture = Water
Use = TEXTURE_MAP
Mipmap = TRUE
MinFilter = TRUE
MagFilter = TRUE
or those stage/levels in your mdf's that are switched of with the
;
mark
will increse the detail on the water surface quite noticably...i wondered what the
waterDetail_a
and
waterDetail_b
textures where for..this seems to enable them,as another layer to the water..make a back up first..
this worked on my voodoo 5500 with stock drivers...
watch out for the
waterDetail_b
entry in the mdf it seems to be missing the b suffix..(dunno if it matters..?)
any how passed an hour on a sunday evening!
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-09 16:42  
allso changing the
Lighting = FALSE
entrys to
Lighting = TRUE
changes the effects dramatically..
with a voodoo card (as mine is)
this is the first time i've seen any thing like real changes in water depiction due to time of day...in the morning it's the usual dark blue scheme...but at noon the water is markedly lighter in colour and there is a realism to it that i like a lot....
the read me in the mdf's mentions that the water effects in the sim are set up to deal with the possibility of using the features of up-coming graphics cards...and the disabled features are there to be enabled if your card has the appropiate capabilitys...
just experiment with removing the ; before the entrys...this will enable the feature mentioned in the mdf's
this is actually stock not a mod...these features are built into the sim...(which shows that they were thinking of ensuring the life span of the game for the players...nice one ubi)
would allso love to know what those dozens of etra waterdetail_ tga's are for... cos i can't find the trigger for them any where and they aren't being accessed by the game at the moment..(?)
he he just shot down a sword-fish on the gaultlet mission....very nice..!!
mmmmmmmmmmm
i wonder if the waterdetail_
entry in the mdf is left without a suffix to allow the user to choose one of the waterdetail tga that are available....that sounds a bit odd..but i'm game
[ This Message was edited by: CB.. on 2002-06-09 16:47 ]
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-09 17:12  
yes unless i've gone mad he's saying that you can addas many water detaills as your card can display..
you just need to know how to write the script..(should be a piece of cake for the main guys here)
this is what he says in the read me part of the mdf files
File: Water.mdf
;; Project: Janus Viewer
;; Author: Troy Heere
;;--------------------------------------------------------------------------------
;; Copyright (c) 2000, Ultimation Inc. All Rights Reserved
;;--------------------------------------------------------------------------------
;; This material script defines the possible material states for ocean water in
;; the Janus viewer application. This will probably be used in multiple other
;; projects as it is a good example of a material definition file.
;;
;; In an MDF file, the material can be specified with several levels to allow
;; scaling to a variety of hardware configurations. The levels are abstracted as
;; follows:
;;
;; Level 1. Card is accelerated but has no multitexture blend capability.
;; Level 2. Card has 2 multitexture blend stages
;; Level 3. Card has 3 multitexture blend stages
;; Level 4. Card has bump/environment mapping
;; Level 5. Card has bump and cubic environment mapping
;;
;; This is a pretty good paradigm and allows for additional levels when new
;; hardware features appear (Level 6+, etc.)
;;
;; Each level is represented by a clause in the material script, for example:
;;
;; [LEVEL1]
;; ...
;; [LEVEL2]
;; ... etc.
;;
;; Note that not all levels must be provided for every material. In fact, only
;; [LEVEL1] is actually required for a material to load. If a level is missing
;; from the script, the script process will devolve to the next lowest level
;; represented in the script.
;;
;; Each level may define multiple texture stages. Stages have separate parameter
;; blocks which are a combination of the level ID and stage ID. Stages are numbered
;; from zero up to four (this will probably increase as hardware becomes more
;; powerful.) Thus, if level 4 has three stages the parameter blocks would
;; look like this:
;;
;; [STAGE40]
;; ...
;; [STAGE41]
;; ...
;; [STAGE42]
;; ...
;;
;; History:
;;
;; 03/27/00 TDH Initial script definition
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[MATERIAL]
; ImageFolder = Environment ; Folder where artwork may be found (default is Art)
; Force = 2 ; May be used to force a level for debugging
/////
File: Underwater.mdf
;; Project: Janus Viewer
;; Author: Troy Heere
;;--------------------------------------------------------------------------------
;; Copyright (c) 2000, Ultimation Inc. All Rights Reserved
;;--------------------------------------------------------------------------------
;; This material script defines the possible material states for ocean water in
;; the Janus viewer application. This will probably be used in multiple other
;; projects as it is a good example of a material definition file.
;;
;; In an MDF file, the material can be specified with several levels to allow
;; scaling to a variety of hardware configurations. The levels are abstracted as
;; follows:
;;
;; Level 1. Card is accelerated but has no multitexture blend capability.
;; Level 2. Card has 2 multitexture blend stages
;; Level 3. Card has 3 multitexture blend stages
;; Level 4. Card has bump/environment mapping
;; Level 5. Card has bump and cubic environment mapping
;;
;; This is a pretty good paradigm and allows for additional levels when new
;; hardware features appear (Level 6+, etc.)
;;
;; Each level is represented by a clause in the material script, for example:
;;
;; [LEVEL1]
;; ...
;; [LEVEL2]
;; ... etc.
;;
;; Note that not all levels must be provided for every material. In fact, only
;; [LEVEL1] is actually required for a material to load. If a level is missing
;; from the script, the script process will devolve to the next lowest level
;; represented in the script.
;;
;; Each level may define multiple texture stages. Stages have separate parameter
;; blocks which are a combination of the level ID and stage ID. Stages are numbered
;; from zero up to four (this will probably increase as hardware becomes more
;; powerful.) Thus, if level 4 has three stages the parameter blocks would
;; look like this:
;;
;; [STAGE40]
;; ...
;; [STAGE41]
;; ...
;; [STAGE42]
;; ...
;;
;; History:
;;
;; 03/27/00 TDH Initial script definition
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
the most interesting part about this is that ubi have provided the textures for up to 20 new layers of effects in the water....there all in the sim art textures folder waterdetail_
at the moment i think we have around four or five layers
the
dark blue plain surface layer;
an alternating lighter blue plain layer
an alternating wave pattern layer;
and a alternating white dot foamy layer;
plus any reflections you have working (me voodoo reflect dunny work)
well thats me obsessed for the next couple of days ,
[ This Message was edited by: CB.. on 2002-06-09 17:15 ]
[ This Message was edited by: CB.. on 2002-06-09 17:18 ]
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-09 20:05  
may be on me own with this one!!
grief you can come up with some weird stuff with this idea...
everything from white sea...(ice?) might be usefull if the wake can be mad blue..he he!!!
(reckon it can)
managed to add a layer of detail to the ocean bed...nice dark shadows on the sand...makes you want to investigate...
all trail and error...
at the mo i've got a very picturesque sea with as close to reflections as i'm going to get with the voodoo..(the reflect mod is around i know...but it's a bit much for my set up)
added a layer of surface foam (as well as the hidden one.)
i don't really know what i'm doing but haven't had an erro or refusal yet so it is'nt that sensitive....my card has coped with evrything that's thrown at it and i think the idea is the card/sim ignores anything that doesnt work basically..
give it a try...
i must admit that at first i didn't think it was working .(was being tentative with the changes) and was wondering if i was just going loopy!)..so i got a bit radical with it and yes it does work...
very much so!!!
[ This Message was edited by: CB.. on 2002-06-09 20:10 ]
 
|
Torplexed
Joined: Feb 28, 2002 Posts: 186 From: Des Moines, WA
| Posted: 2002-06-09 21:07  
Wow! You are as busy as a C-bee. Sometimes these sims are more fun to take apart and put back together the way we think best with than to play.
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-09 21:19  
yes your right!
didn't feel like doing much to-day so i just ended up farting about with this n that, pottering in the garden so to speak!!
give this stuff a try tho....you can do just about anything with the water effects textures it's very flexable
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-11 06:03  
try this one;
this will make the sea bed respond to changes in the time of day so that it will be dark at night , red at sunrise and sunset and normal during the day;
this is for underwater.mdf
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[MATERIAL]
; Force = 1 ; May be used to force a level for debugging
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Level 2 water texture - for cards with 2 blend stages.
[LEVEL2]
Diffuse = 0,91,132,255
Ambient = 0,91,132,255
Fog = TRUE
Gouraud = TRUE
ZBuffer = TRUE
Lighting = FALSE
;NextPass = Underwater2
[STAGE20]
;Texture = NONE
Texture = UnderBase
Use = TEXTURE_MAP
UVIndex = 0
TexGen = POSITION
TexMat0 = ROTATE,90,0,0
TexMat1 = SCALE,0.0625,0.0625,0.0
;; Level 2, Texture Stage 0
[STAGE21]
Texture = PROCEDURAL
Use = SPECULAR_MAP
Size = 64,64
FlipBook = TRUE
FrameCnt = 32
MinFilter = TRUE
MagFilter = TRUE
Mipmap = TRUE
Procedure = NOISE
NoiseX = 15.0
NoiseY = 15.0
NoiseZ = 4.0
NoiseDZ = 0.125
NoiseScaleX = 12.0
NoiseScaleY = 12.0
NoiseAmp = 1.5
NoiseOffset = -1.0
NoiseColor = 35,120,150,255
FractalInc = 5.0
Lacunarity = 10.0
Octaves = 4.0
UVIndex = 1
TexGen = POSITION
TexMat0 = ROTATE,90,0,0
TexMat1 = SCALE,0.015625,0.015625,0.0
TexMat1 = SCALE,0.03125,0.03125,0.0
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Level 1 water texture - for all other accelerator cards.
:[LEVEL1]
;Diffuse = 255,255,255,255
;Fog = TRUE
;Gouraud = TRUE
;ZBuffer = TRUE
;Lighting = TRUE
;; Level 1, Texture Stage 0
;[STAGE10]
;Texture = Underwater
;Use = TEXTURE_MAP
;Mipmap = TRUE
;MinFilter = TRUE
;MagFilter = TRUE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Level 2 water texture - for cards with 2 blend stages.
[LEVEL2]
Diffuse = 0,91,132,255
Ambient = 0,91,132,255
Fog = TRUE
Gouraud = TRUE
ZBuffer = TRUE
Lighting = FALSE
;; Level 2, Texture Stage 0
[STAGE20]
Texture = cirrus003
Use = TEXTURE_ALPHA
UVIndex = 0
Mipmap = TRUE
MinFilter = TRUE
MagFilter = TRUE
TexGen = POSITION
TexMat0 = ROTATE,90,0,0
TexMat1 = SCALE,0.125,0.125,0
;0.25,0.25,0.0
[ This Message was edited by: CB.. on 2002-06-11 06:05 ]
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-11 10:47  
more shinanigins with the water.mdf's;;;;;
there are three water.mdf's
water.mdf
water2.mdf
water3.mdf
allso three water.tga's
water.tga
water2.tga
water3.tga
there's a point in the water.mdf
that tells the sim to run water2.mdf/tga
as an extra water surface texture
[LEVEL5]
Diffuse = 5,22,30,255
;Diffuse = 15,50,70,255
Ambient = 5,22,25,255
Fog = TRUE
Gouraud = TRUE
ZBuffer = TRUE
Lighting = FALSE
NextPass = Water2
(nextPass = water2)
and again in the water2.mdf
[LEVEL4]
Diffuse = 255,255,255,255
Ambient = 255,255,255,255
Fog = FALSE
Gouraud = TRUE
ZBuffer = TRUE
Lighting = TRUE
NextPass = Water3
(nextPass= water3)
so scratching head and going of the read me in the mdf's
i did this
created a water4.mdf (just a copy of water2.mdf with the nextpass =water3 removed)
and used a copy of water.tga renamed to water4.tga
and added this to water3.mdf
[LEVEL4]
Diffuse = 208,224,240,255
Ambient = 255,255,255,255
Fog = TRUE
Gouraud = TRUE
ZBuffer = TRUE
Lighting = FALSE
NextPass = Water4
and
[LEVEL2]
Diffuse = 255,255,255,250
Ambient = 255,255,255,255
Fog = TRUE
Gouraud = TRUE
ZBuffer = TRUE
Lighting = FALSE
NextPass = Water4
(just to be sure!!)
and this adds a completely new layer of texture and complexity to the water as displayed in game...
no doubt water5, 6, 7, 8, 9, and 10 could be tried allso...
allso altering the diffuse and ambient settings gives different colourings and lighting effects to the water..
[ This Message was edited by: CB.. on 2002-06-11 10:54 ]
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-11 19:10  
any one interested in me making a mod out of these ideas and posting it for download some-where...? they do work
would be a bit of a beta test (if thats not to grand a term)
 
|
Zak
Joined: May 20, 2002 Posts: 11 | Posted: 2002-06-12 05:29  
i would be very interested in seeing this as a mod,i tried your suggestions but i did'nt notice a great difference,probably not doing it correctly. I also hope that col7777 has luck with the bridge thing as the current one is crap
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-12 12:50  
okay ;
i've created a page to put the mod on;
just click on the picture;
very much a beta...but it seems pretty stabel and reliable on my voodoo card...
msust say tho that i don't know how other cards will deal with it..especailly as the voodoo doesn't show the reflections so i cannot say how they will be affected by this...if they are...try judt using the water4.mdf and editing your water3.mdf to point at water4
nextpass = water4
allso if the texure file causes trubble ;
it's actually allready in the texture folder (it's a stock texture)
if you get errors ..then point the texture = entry at
texture = water3d
instead of
texture = water4
heres the link
http://flightsimmers.net/airport/bortdafarm/silhtwo/shii.html
you'll need to extract it to some-where then drop them in by hand.. (i got the read me wrong !! i'll up-date it on the next version)
[ This Message was edited by: CB.. on 2002-06-12 12:59 ]
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-12 16:06  
ok now up-dated with stock plus the extra layer version for non voodoo cards and fancy version for voodoo's (matter of choice really..)
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-12 22:27  
beginning to understand how the mdf's work..slowly!
_________________ <a href="http://www.ebort.com/index.html"target = blank>CB-site</a>
 
|
CB..
Joined: Jun 03, 2002 Posts: 292 From: UK
| Posted: 2002-06-18 06:05  
well?
_________________ <a href="http://www.ebort.com/index.html"target = blank>CB-site</a>
 
|
AdamWarren
Joined: May 23, 2002 Posts: 1329 From: squinting at the monitor TN, USA
| Posted: 2002-06-19 14:03  
Looks good CB!! Good work!!
_________________ Fair winds and following seas.
GO NEAL!
© 1988-2003
 
|
|