mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
DEFEATURE: remove alpha-field support (partly broken) from gltf output
- when used with *any* alphaField and normalised (the usual case) would largely give a 0-1 corresponding to the min/max of the first component, but could also yield negative values. - if the alpha field corresponds identically to colour field, it is readily possible to combine as into RGBA sequences. However, if the fields are different it potentially means referencing an opacity field that has not yet been sampled. This impedes using the format for a streaming sampler without additional overhead and/or rewriting the alpha channel later.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2112 |
|
||||
| \\ / O peration | Version: v2206 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -35,13 +35,7 @@ formatOptions
|
||||
colourField d;
|
||||
//min 0;
|
||||
//max 0.002;
|
||||
|
||||
//alpha uniform;
|
||||
//alphaValue 1;
|
||||
|
||||
alpha field;
|
||||
alphaField d;
|
||||
normalise yes;
|
||||
//alpha 1.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2112 |
|
||||
| \\ / O peration | Version: v2206 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -35,13 +35,7 @@ formatOptions
|
||||
colourField d;
|
||||
//min 0;
|
||||
//max 0.002;
|
||||
|
||||
//alpha uniform;
|
||||
//alphaValue 1;
|
||||
|
||||
alpha field;
|
||||
alphaField d;
|
||||
normalise yes;
|
||||
//alpha 1.0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*--------------------------------*- C++ -*----------------------------------*\
|
||||
| ========= | |
|
||||
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
|
||||
| \\ / O peration | Version: v2112 |
|
||||
| \\ / O peration | Version: v2206 |
|
||||
| \\ / A nd | Website: www.openfoam.com |
|
||||
| \\/ M anipulation | |
|
||||
\*---------------------------------------------------------------------------*/
|
||||
@ -33,14 +33,10 @@ formatOptions
|
||||
{
|
||||
d
|
||||
{
|
||||
colourMap rainbow;
|
||||
min 0;
|
||||
max 0.001;
|
||||
|
||||
alpha field; // uniform | field;
|
||||
//alphaValue 0.1; // uniform alpha value
|
||||
alphaField d;
|
||||
normalise yes;
|
||||
colourMap rainbow;
|
||||
min 0;
|
||||
max 0.001;
|
||||
//alpha 1.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -18,12 +18,8 @@ sample1
|
||||
{
|
||||
T
|
||||
{
|
||||
colourMap fire;
|
||||
|
||||
alpha field; // uniform | field;
|
||||
//alphaValue 0.1; // uniform alpha value
|
||||
alphaField T;
|
||||
normalise yes;
|
||||
colourMap fire;
|
||||
//alpha 1.0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user