Discussions for Scenes for Version 1.2.X Fullscreen Mode here

  Forum / Everything about iStripper

DrDoom9
Joined in Dec 2008

224 post(s)
January 8
Opacity in shader

@Wyldanimal

Can you enlighten me a little as to the code in a (fairly simple) shader?

I have downloaded @Calgon Carousel_1_12, and tried to understand the shader holdname3a.fsh.
It would simplify a lot of my permanent name code which I adopted from @TheEmu many moons ago.
However, it does not appear possible for me to increase the opacity of the permanent names developed by use of the shader.

Would a different holdname shader be more amenable?
Calgon
Joined in May 2022

296 post(s)
January 8 (edited)
Hi

@DrDoom9

The shader holdname3a.fsh was quite possibly derived from some code from @TheEmu originally and then hacked about by me in my usual messy way.

If you want to "increase the opacity" - I assume you mean "decrease the alpha" so that the name is more transparent you could try adding the line...

gl_FragColor.a *= 0.5;

...just before the final closing bracket in the code. This will halve the alpha level of whatever is output. You could hack this "0.5" about to get the level of opacity you want from 0... completely invisible to 1... unchanged.
Calgon
Joined in May 2022

296 post(s)
January 8
Correction...

The original code was from @WA adapted from "goldname.fsh" :

uniform sampler2D texture0;
uniform sampler2D texture1;
uniform float u_Elapsed;
varying vec4 gl_TexCoord[];
float weight=0.14767;
// changes and additions by WyldAnimal of the totem occluding.fsh shader used
// here to make a static color clip name.

void main(void)

{
vec4 vTexCoord = gl_TexCoord[0];

vec4 occluding = texture2D(texture0, vec2(vTexCoord.x , vTexCoord.y )) ;
gl_FragColor = vec4(0.432,0.449,0.091,occluding.a);
}

DrDoom9
Joined in Dec 2008

224 post(s)
January 8
@Calgon
Thanks for the line of code. It works.
But I am afraid that most shader code is way beyond me!
Calgon
Joined in May 2022

296 post(s)
January 8
@DrDoom9

I think a lot of my mods to that code are redundant and in need of a tidy up.
Calgon
Joined in May 2022

296 post(s)
January 9
@DrDoom9

Here's a cleaner simpler version of holdname that I will add into future releases:

In the scene file define 4 variables for the colour and alpha level of the clipnamesprite :


clipNameSprite {
source: ClipA, 0
pos: 1230, -860, 0
scale: 0.75, 0.75
hotspot: 0.5, 0
uniform: set_r, float, 0.7
uniform: set_g, float, 1.0
uniform: set_b, float, 0.7
uniform: set_a, float, 0.1
shader: fragment, Shaders/Calgon/holdname4.fsh
}

..and the new holdname4.fsh

#version 130
uniform sampler2D texture0;
varying vec4 gl_TexCoord[];

// Bring in some uniform constants from the scene:
uniform float set_r; // Red
uniform float set_g; // Green
uniform float set_b; // Blue
uniform float set_a; // Alpha factor

void main(void)
{
vec4 vTexCoord = gl_TexCoord[0]; // Fixed function texture coordinates
gl_FragColor = texture2D(texture0, vec2(vTexCoord.x , vTexCoord.y )) ;
gl_FragColor.rgb = vec3(set_r,set_g,set_b);
gl_FragColor.a *= set_a;
}

17 lines down from 96 !
Wyldanimal
MODERATOR
Joined in Mar 2008

3760 post(s)
25 days ago (edited)
With the assistance of the Team and some of the Members
we have conducted a fairly extensive search.

Even though we do not have conclusive results
I feel there is no other conclusion that can be made.

We have lost one of our Scene contributors.
It is with a sad heart that I say goodbye to @TheEmu

Your contributions to the Scene Community will long carry on.
Socialhazard
Joined in Nov 2020

1134 post(s)
25 days ago
I'm sorry to hear that, he was a part of this for a long time as a scene contributor and sometimes commenter as well as not afraid to mix it up on the forum at times. Certainly will by remembered by me though I knew him only a little.
ComteDracula
Joined in Aug 2017

1229 post(s)
25 days ago (edited)
With the assistance of the Team and some of the Members
we have conducted a fairly extensive search.

Even though we do not have conclusive results
I feel there is no other conclusion that can be made.

We have lost one of our Scene contributors.
It is with a sad heart that I say goodbye to @TheEmu

Your contributions to the Scene Community will long carry on.

Triste nouvelle en effet.

@TheEmu a été un grand créateur et contributeur de scènes. Nous ne lui dirons jamais assez merci.

Si cela signifie son décès, je lui souahite de reposer en paix. Mes condoléances à sa famille.


Sad news indeed.

@TheEmu was a great scene creator and contributor. We can't thank him enough.

If this means his death, I wish him peace. My condolences to his family.
Calgon
Joined in May 2022

296 post(s)
24 days ago
With the assistance of the Team and some of the Members
we have conducted a fairly extensive search.

Even though we do not have conclusive results
I feel there is no other conclusion that can be made.

We have lost one of our Scene contributors.
It is with a sad heart that I say goodbye to @TheEmu

Your contributions to the Scene Community will long carry on.

@TheEmu helped so much with scene building and inspired me to build and learn, his code lives on 👍
wrightsayswow
Joined in Jul 2020

1076 post(s)
24 days ago
We have lost one of our Scene contributors.
It is with a sad heart that I say goodbye to @TheEmu
@Wyldanimal I ***** you're right. No posts since last September, having been a regular up to then.
No recent purchases of the shows either.

And as @Socialhazard said
not afraid to mix it up on the forum at times.
I was wondering what had happened to him just the other day.
RIP @TheEmu
dar2112v
Joined in Dec 2007

440 post(s)
24 days ago
It is with a sad heart that I say goodbye to @TheEmu

This is very sad news. RIP @TheEmu
willyweekly
Joined in Jul 2015

344 post(s)
24 days ago
Sad news. I hope he is at peace.
peterbanker
Joined in Jan 2009

214 post(s)
23 days ago
Sad news. I hope he is at peace.

Totally agree with @willyweekly
Alkasyn
Joined in Apr 2008

707 post(s)
23 days ago (edited)
I've often disagreed with the man, but it's a damn shame to see another one of the regulars go.

We're all bound to leave at some point, but it's always sad for the ones left behind.
EverthangForever
Joined in Oct 2009

2430 post(s)
1 day ago (edited)
Not sure what has happened to @EverthangForever he normally posts some a few times a month.

😕😧I hope he is well

He posted a comment on Rebecca Volpetti's card a couple of days ago so I assume he is OK but hasn't had time to do any new Full Screen Scenes

Hi All,
Like many others, I was deeply affected by the demise of @TheEmu who was mentor to us in so many ways. He had his good reasons for not joining Discord which I happen to agree with. The last straw for me was in February when Totem only accepted applications of Discord members as testers for new alpha ('experimental') versions of iStripper.

I understand anecdotely this policy may have since been reviewed, however I've not heard otherwise from Totem to say non Discord members are once again welcome as iStripper testers.
--
Bonjour à tous
Comme beaucoup d'autres, j'ai été profondément touché par la disparition de @TheEmu qui était notre mentor à bien des égards. Il avait ses bonnes raisons de ne pas rejoindre Discord, ce avec quoi je suis d'accord. La goutte d'eau qui a fait déborder le vase pour moi a été en février, lorsque Totem n'a accepté que les candidatures des membres de Discord en tant que testeurs pour les nouvelles versions alpha (« expérimentales ») d'iStripper.

Je comprends qu'anecdotement, cette politique a peut-être été revue depuis, mais je n'ai pas entendu le contraire de Totem dire que les non-membres de Discord sont à nouveau les bienvenus en tant que testeurs d'iStripper.
Philours
Joined in Feb 2019

1559 post(s)
1 day ago
Bonjour @EverthangForever,

Vous avez raison, nous avons perdu un grand contributeur a cette application en la personne de @TheEmu.😒
Je comprend votre désir d'éloignement, mais me réjouis d'avoir de vos nouvelles. Portez-vous bien, cher ami 😊

Hello @EverthangForever,

You are right, we lost a great contributor to this application in the person of @TheEmu.😒
I understand your desire for distance, but look forward to hearing from you. Be well, dear friend 😊

You are not allowed to participate yet

As a free user of iStripper, you are not allowed to answer a topic in the forum or to create a new topic.
But you can still access basics categories and get in touch with our community !