Discussions for Scenes for Version 1.2.X Fullscreen Mode here

  Forum / Tout sur iStripper

DrDoom9
Inscrit en Dec 2008

224 message(s)
8 January
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
Inscrit en May 2022

299 message(s)
8 January (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
Inscrit en May 2022

299 message(s)
8 January
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
Inscrit en Dec 2008

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

299 message(s)
8 January
@DrDoom9

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

299 message(s)
9 January
@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
MODÉRATEUR
Inscrit en Mar 2008

3767 message(s)
3 April (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
Inscrit en Nov 2020

1135 message(s)
3 April
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
Inscrit en Aug 2017

1230 message(s)
3 April (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
Inscrit en May 2022

299 message(s)
3 April
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
Inscrit en Jul 2020

1076 message(s)
3 April
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
Inscrit en Dec 2007

441 message(s)
4 April
It is with a sad heart that I say goodbye to @TheEmu

This is very sad news. RIP @TheEmu
willyweekly
Inscrit en Jul 2015

346 message(s)
4 April
Sad news. I hope he is at peace.
peterbanker
Inscrit en Jan 2009

214 message(s)
4 April
Sad news. I hope he is at peace.

Totally agree with @willyweekly
Alkasyn
Inscrit en Apr 2008

707 message(s)
4 April (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
Inscrit en Oct 2009

2432 message(s)
Il y a 9 jours (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
Inscrit en Feb 2019

1559 message(s)
Il y a 9 jours
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 😊
EverthangForever
Inscrit en Oct 2009

2432 message(s)
Il y a 7 jours (edited)
Did anyone archive or get a copy of his website ? http://www.theemusnest.eu/
I notice it has been taken down since about two days ago 😢
Wyldanimal
MODÉRATEUR
Inscrit en Mar 2008

3767 message(s)
Il y a 7 jours
I made a copy of what I think was everything.
Except for the Html web pages.
so it's just the files.

https://virtuastripper.net/TheEmu/
EverthangForever
Inscrit en Oct 2009

2432 message(s)
Il y a 7 jours (edited)
Great, thanks a lot @WA. Its the comments in his code that are most helpful.
The html pages content is still available (in a roundabout sorta way) on the wayback machine
circa 2020 , if peeps want to find that 👍😉

Vous n'êtes pas encore autorisé à participer

En tant qu'utilisateur gratuit de iStripper, vous n'êtes pas autorisé à répondre sur le forum ou à créer de nouveau sujet.
Vous pouvez cependant consulter les catégories de bases et commencer à découvrir notre communauté !