Author Topic: Water Material Files Needed  (Read 1193 times)

Offline SHlBE

  • Forum Newcomer
  • *
  • Posts: 4
  • Floof-O-Meter: 0
  • Are you feeling it now, Mr. Krabs?
    • View Profile
Water Material Files Needed
« on: January 23, 2014, 04:24:22 am »
I was trying to make custom water for my map, and ever since I changed the water mat file I cannot get on FH. Like, when I  open up the program it sits for a few seconds then says  "Not Responding" and shuts off. I don't know if the water mat is the problem, but I want to see if it is. I wasn't very smart and didn't save a backup water material, so if you'd just copy yours that'd be wonderful c:''

AlphaEclipse

  • Guest
Re: Water Material Files Needed
« Reply #1 on: January 23, 2014, 04:36:27 am »
Is this what you're looking for? c: It's from feralheart >> media > materials.

Code: [Select]
vertex_program WaterVP cg
{
source water.cg
entry_point water_VP
profiles vs_1_1 arbvp1
}

fragment_program WaterFP cg
{
source water.cg
entry_point water_FP
profiles ps_2_0 arbfp1
}

fragment_program UnderWaterFP cg
{
source water.cg
entry_point underwater_FP
profiles ps_2_0 arbfp1
}

material WaterMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off

texture_unit
{
texture waterTex1.png
scale 0.4 0.4
scroll_anim -0.05 -0.05
}
texture_unit
{
texture waterTex2.png
scale 0.5 0.5
scroll_anim -0.08 0.1
}
}
}
}
material OceanMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off

texture_unit
{
texture waterTex1.png
scale 0.5 0.5
scroll_anim -0.03 -0.05
rotate 90
}
texture_unit
{
texture waterTex2.png
scale 0.4 0.4
scroll_anim -0.05 0.01
rotate 90
}
}
}
}
material WaterReflectMat
{
technique
{
pass
{
//depth_write off
scene_blend alpha_blend
vertex_program_ref WaterVP
{
param_named_auto worldViewProjMatrix worldviewproj_matrix
param_named_auto timeVal time 0.05
param_named scroll float 2
param_named scale float 1
param_named noise float 1
}
fragment_program_ref WaterFP
{
param_named colourTint float3 0.25 0.27 0.28
param_named noiseScale float 0.04
}
texture_unit
{
texture waves2.dds
filtering linear linear none
}
}

}
}
material UnderWaterMat
{
technique
{
pass
{
cull_hardware none
cull_software none
vertex_program_ref WaterVP
{
param_named_auto worldViewProjMatrix worldviewproj_matrix
param_named_auto timeVal time 0.05
param_named scroll float 2
param_named scale float 1
param_named noise float 1
}
fragment_program_ref UnderWaterFP
{
param_named colourTint float3 0.95 0.97 0.98
param_named noiseScale float 0.04
}
texture_unit
{
texture waves2.dds
filtering linear linear none
}
}

}
}

EDIT: Here's some other reasons it could be crashing/how you could fix it.

-Change your rendering system

-Go into C: >>> Feralheart >> media > particles and delete any ending in _0, _1, and so on
« Last Edit: January 23, 2014, 04:45:20 am by AlphaEclipse »

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Water Material Files Needed
« Reply #2 on: January 23, 2014, 05:49:35 am »
It's always best to create a new .material file for custom waters rather than changing the current files in case something goes wrong. Refer to this tutorial for making custom water: http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=8323.0

Hopefully AlphaEclipse has the code you're looking for to stop the crashing :)

Good luck!
Will be inactive due to work and exams.

Offline SHlBE

  • Forum Newcomer
  • *
  • Posts: 4
  • Floof-O-Meter: 0
  • Are you feeling it now, Mr. Krabs?
    • View Profile
Re: Water Material Files Needed
« Reply #3 on: January 23, 2014, 10:13:29 pm »
Thanks, I am able to get back on Feral Heart now. <3