News:

Welcome to World of Banished!

Main Menu

Pink Water

Started by Paeng, May 16, 2017, 05:46:55 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RedKetchup

can you test this please @calli74 ?
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

calli74


Bartender

I really admire your dedication to solving this @RedKetchup !

I hope you're finding a workable solution. I haven't forgotten about my attempts either, I just need to find a few spare days to dedicate to digging into the code for it.. unfortunately, those are scarce at the moment :-\.

RedKetchup

#78
Quote from: Bartender on June 05, 2017, 02:39:05 PM
I really admire your dedication to solving this @RedKetchup !

I hope you're finding a workable solution. I haven't forgotten about my attempts either, I just need to find a few spare days to dedicate to digging into the code for it.. unfortunately, those are scarce at the moment :-\.

trying to play with some true/false or keep/nonkeep

i cannot test anything myself, thats the worst part

another test @calli74  :)
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Discrepancy

Quote from: RedKetchup on June 05, 2017, 03:17:58 PM
trying to play with some true/false or keep/nonkeep

i cannot test anything myself, thats the worst part

another test @calli74  :)

I decided to test this one,

unfortunately still pink:


RedKetchup

booooo. i think i ll send a email to Luke even if i doubt to have an answer.... didnt got news of the last one.
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Discrepancy

@RedKetchup & @Bartender

I can not work out why this would be happening.

I have utilized your code Bartender in my Water Pump, yet it does not show up pink.

RedKetchup, what material code are you using for the water plane?
my water pump code looks like this:
MaterialInstance resource
{
Material _material = "Material\Bartender\RiverMaterial.rsc";
Texture _textures
[
{
String _name = "water";
ImageBuffer _texture = "Terrain\RiverWaterTexture.rsc";
}
{
String _name = "frame";
ImageBuffer _texture = "Terrain\RiverFrameCopyTexture.rsc";
}
{
String _name = "reflection";
ImageBuffer _texture = "Terrain\RiverReflect2Texture.rsc";
}
{
String _name = "highlight";
ImageBuffer _texture = "Terrain\RiverReflectTexture.rsc";
}

]
}


Also, do you have a plane at the base of the canal? (deep under the water so it is an open-box shape)

Discrepancy

here is the picture of my water pump next to the canals:


RedKetchup

Quote from: Discrepancy on June 06, 2017, 12:34:59 AM
Also, do you have a plane at the base of the canal? (deep under the water so it is an open-box shape)

mine it is that :

MaterialInstance resource
{
Material _material = "Material\Redketchup\RiverMaterial.rsc";
Texture _textures
[
{
String _name = "water";
ImageBuffer _texture = "Terrain\RiverWaterTexture.rsc";
}
{
String _name = "frame";
ImageBuffer _texture = "Terrain\RiverFrameCopyTexture.rsc";
}
{
String _name = "reflection";
ImageBuffer _texture = "Terrain\RiverReflect2Texture.rsc";
}
{
String _name = "highlight";
ImageBuffer _texture = "Terrain\RiverReflectTexture.rsc";
}

]
}


and my riverMaterial is :

Material resource
{
MaterialType _type = Blended;
VideoProgram _passes
[
"normal"
]
}

VideoProgram normal
{
VertexLayout _vertexLayout = "MeshLayout\TerrainLayout.rsc";
VertexProgram _vertexProgram = "WaterMaterial.srsl:Normal_vs";
PixelProgram _pixelProgram = "WaterMaterial.srsl:Normal_ps";
RenderState _renderState = "rs";
}

RenderState rs
{
AlphaBlend _alphaBlend
{
bool _enable = true;
Blend _source = SourceAlpha;
Blend _dest = InverseSourceAlpha;
BlendOp _op = Add;
ColorWrite _writeMask = Red | Green | Blue | Alpha;
}
Depth _depth
{
bool _enable = true;
bool _write = true;
Compare _compare = LessEqual;
float _bias = 0.000000;
float _slopeBias = 0.000000;
}
Stencil _stencil
{
bool _enable = false;
bool _twosided = false;
Compare _compare = Greater;
uchar _ref = 0;
StencilOp _fail = Keep;
StencilOp _zFail = Keep;
StencilOp _pass = Keep;
StencilOp _tsFail = Keep;
StencilOp _tsZFail = Keep;
StencilOp _tsPass = Keep;
}
CullMode _cullMode = None;
CullMode _fillMode = Solid;
}


no in the 2 test of today there wasnt a plane under. we tried many attampts with planes under, ontop (inversed) and you were still getting pinks in extremities :
Reply #48 : http://worldofbanished.com/index.php?topic=1725.msg34063#msg34063 was our best attempts


in attachments, i am joining a test with a copy of what i intended lately as final Radeon version with a blue texture at -0,10z below under the water
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Discrepancy

#84
It is still pink though :(



My code is the same...
If it is not the material, then perhaps it might be the model. I cannot see why it is effecting yours and not mine... unless because it is under natural ground level... I'm not sure.

@RedKetchup , I made a quick picture attached. Is this how your canal is designed?

if Black is the canal, does it have a floor/base attached to the same mesh? and orange being a quarry floor, and blue the water plane?
If not, I'm wondering if it is because light is coming in from below...

Another thought/question... is your water plane a single plane or is it a box?

RedKetchup

no canal walls doesnt have a "bottom" , the ground itself is the bottom, like a creek (brown color)
the canal wall are in black representing stone bricks,
the blue line is the water. just below it there is another opaque blue color at 0,1 of the liquid water.
the green lines represent the ground level made from grass
the brown one is the bottom of the hole representing the dark brown underground that has been digged(dig?).
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Discrepancy

Quote from: RedKetchup on June 06, 2017, 03:53:56 AM
no canal walls doesnt have a "bottom" , the ground itself is the bottom, like a creek (brown color)
the canal wall are in black representing stone bricks,
the blue line is the water. just below it there is another opaque blue color at 0,1 of the liquid water.
the green lines represent the ground level made from grass
the brown one is the bottom of the hole representing the dark brown underground that has been digged(dig?).
dug
... the English language is strange.

Have you tried making a flat bottom to the canal?

Also, your water? is the mesh a plane or a box? I would try a single sided plane.

RedKetchup

water = plane. no i didnt made a full box because we see the bricks at bottom. sending you a zip of the test .
> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .

Abandoned

@RedKetchup my laptop has intel, I don't know how I would be at testing canal and I don't use that debug but I would be happy to put a few canal pieces on a map.  My game is still 106, is that last zip the one to download?

RedKetchup

> > > Support Mods Creation developments with Donations by Paypal  < < <
Click here to Donate by PayPal .