An E=mc² clan spray?
An E=mc² clan spray?
I think it will be nice if all members have the same spray tag. Now Fougere post the way to activate it... We have to create one... a good... in order to federate the team.
Waiting for proposition ...
post TGA image here ... and all members will choose the best. I will try to do one this week end.
Waiting for proposition ...
post TGA image here ... and all members will choose the best. I will try to do one this week end.
- FougereDeGuerre
- Posts: 190
- Joined: Fri Oct 06, 2006 7:40 pm
- Location: Belgium, Rebecq
- FougereDeGuerre
- Posts: 190
- Joined: Fri Oct 06, 2006 7:40 pm
- Location: Belgium, Rebecq
The cloud effect isn't here for doing a white and blue texture (like the one i give to you for an intro image), it's for the transparency, and thus to make a tag seeming to be old The image is a simple blue logo, and the cloudy effect is applicated on the alpha channel.
Noob effect, yeah, I'm a noob, I used it for the first time for doing a magma texture 4 weeks ago.
Noob effect, yeah, I'm a noob, I used it for the first time for doing a magma texture 4 weeks ago.
La misere des amis n'est pas plus amusante qu'un jardin dont la flore est mourante.
so next time don't export alpha channel if we don't see it in game ... I'm curious about how image are proceding in HL.FougereDeGuerre wrote:The cloud effect isn't here for doing a white and blue texture (like the one i give to you for an intro image), it's for the transparency, and thus to make a tag seeming to be old The image is a simple blue logo, and the cloudy effect is applicated on the alpha channel.
- FougereDeGuerre
- Posts: 190
- Joined: Fri Oct 06, 2006 7:40 pm
- Location: Belgium, Rebecq
How to present the transparency of our spray without using the alpha layer
I agree, the result on a white background isn't very revelant.
How does HL2 proceed. I don't know exactly, but I have made a stage in Mulhouse and the subject was a real time tracking with a standard webcam, so I know some basics in the colour image processing. Using an alpha layer for transparency permits a specific transparency for each pixel in the Spray.
I assume that the when you spray, your computer (maybe the server, but that involve that the server take a copy of each of the players decals) take the wallbackground on wich you want to spray. Then, a simple mathematical operation can give you the final decal that should be transmitted to all the other computers.
I think that the code he use looks like this one in the case of the traslucent flag is one in the vmt file. I think that everybody who has already programmed can understand my post, sorry for the others.
Cynyx, I hope it is a good answer to your question.
I agree, the result on a white background isn't very revelant.
How does HL2 proceed. I don't know exactly, but I have made a stage in Mulhouse and the subject was a real time tracking with a standard webcam, so I know some basics in the colour image processing. Using an alpha layer for transparency permits a specific transparency for each pixel in the Spray.
I assume that the when you spray, your computer (maybe the server, but that involve that the server take a copy of each of the players decals) take the wallbackground on wich you want to spray. Then, a simple mathematical operation can give you the final decal that should be transmitted to all the other computers.
Code: Select all
//Assume we have a squared picture with a width of k pixel
//we use S for the Spray, D for Decal(Spray mixed with the background wall) and W for the background wall
//we use r for the red layer, g for green, b for blue, and a for the alpha one.
//An example: S(i,j,a)= the value of the alpha layer at the (i,j) pixel.
for i= 1 to k {//we have to transform all the rows
for j= 1 to k {//we have to transform all the columns
transparency = S(i,j,a) / maxV //maxV is the white value, if we use
//8 bits for the alpha layer, then its 256,
//if we use 4 bits (DXT5 compression)
//then its 16, ...
D(i,j,r) = S(i,j,r)*transparency + W(i,j,r)*(1-transparency)
D(i,j,g) = S(i,j,g)*transparency + W(i,j,g)*(1-transparency)
D(i,j,b) = S(i,j,b)*transparency + W(i,j,b)*(1-transparency)
}
}
Cynyx, I hope it is a good answer to your question.
La misere des amis n'est pas plus amusante qu'un jardin dont la flore est mourante.
Nice idea... but the "Hl2" logo style is not very original, I think... i might be wrong.. i have an idea of my own, but no time to make it:).. ill do it on friday.. it will represent the policies of the clan:).. but not sure whether it will look good really small.. so i ll try and make it.. BUT... I am not really confident with that transparency stuff... so if im making it in Photoshop, even.. or Corel Photopaint 12, how do i do it so it works with transparency properly, can u explain it, please...
QOTD: O2 Broadband Usage policy:"...you can download as much as you like, but not more than 100GB per month..."
- FougereDeGuerre
- Posts: 190
- Joined: Fri Oct 06, 2006 7:40 pm
- Location: Belgium, Rebecq
Under photoshop, you have a window showing you the calcs you use for your image. There is another tab you can choose in the top of this window. This one bring you the colours layers. In bottom of this tab, there is a button to add a layer. Just add a layer, which is the alpha layer used to determine the transparency.
Here are some screens, maybe more usefull than text:
On this alpha layer, a white pixels mean that this pixels on the RGB layers would be used without using transparency. A black pixel mean that the rgb value of this pixel has no importance, it wouldn't be used. A grey value give a partial transparency to the rgb value of this pixel, according to gry level (more white => less transparent, more black => more transparent).
When you save your file, save it as a TGA with 32 bits (24 for the RGB layer, and 8 for the alpha layer you just add).
Here are some screens, maybe more usefull than text:
On this alpha layer, a white pixels mean that this pixels on the RGB layers would be used without using transparency. A black pixel mean that the rgb value of this pixel has no importance, it wouldn't be used. A grey value give a partial transparency to the rgb value of this pixel, according to gry level (more white => less transparent, more black => more transparent).
When you save your file, save it as a TGA with 32 bits (24 for the RGB layer, and 8 for the alpha layer you just add).
La misere des amis n'est pas plus amusante qu'un jardin dont la flore est mourante.
I made the logo... here is it
BUT... Fougere, i added the transparency layer, like u said and it is supposed to give a texture to the image - graffity-style old spray... but it doesnt show anywhere... yes, i converted it to jpg for imageshack... but, when u converted it - the transparency appeared and it doesnt on mine... any suggestions anyone?:)..
BUT... Fougere, i added the transparency layer, like u said and it is supposed to give a texture to the image - graffity-style old spray... but it doesnt show anywhere... yes, i converted it to jpg for imageshack... but, when u converted it - the transparency appeared and it doesnt on mine... any suggestions anyone?:)..
QOTD: O2 Broadband Usage policy:"...you can download as much as you like, but not more than 100GB per month..."
- FougereDeGuerre
- Posts: 190
- Joined: Fri Oct 06, 2006 7:40 pm
- Location: Belgium, Rebecq
The transparency doesn't appear, on mine it doesn't appear too. I cheat to show you this result, because I don't know how to export this transparency to another format. So, I created a new calc having for RGB layer exactly the alpha layer of my image calc. So, just copy the whole alpha layer and the past it. Then choose the Supperposition oppion for the fusion mode. For me it worked, but I don't guaranted it's exactly the same as a transparency.
For a real result, just use it als spray on a HL2 wall, and take a shot.
I'm not disappointed at all, KIO, nice work. I love it. Especially the E=mc2 word, the effect on and arround it is very nice. Is it a special font or do you made it yourself? It does not matter, very nice ....
For a real result, just use it als spray on a HL2 wall, and take a shot.
I'm not disappointed at all, KIO, nice work. I love it. Especially the E=mc2 word, the effect on and arround it is very nice. Is it a special font or do you made it yourself? It does not matter, very nice ....
La misere des amis n'est pas plus amusante qu'un jardin dont la flore est mourante.
Thanks, Fougere...
Thats a font...I can give u the link to it:).. the problem is it has to be E=mc², but on mine its E= MC, as font only has capital letters.. which is not completely right:).. Cynyx suggested another font, so I am doing it now... other changes are: a thicker cross on the SMG and a grenade instead of happy combine face:).. the font I am using now is totally of different style, so I am not sure whether it will look good.. I am thinking of an anoher font with similar style now..
Yeah, I managed to get the transparency appear, I just thought it should have been as on your picture... So ill have another version or two today.. with transparency..
People, make more versions - so there would be more to choose from:)..
Thats a font...I can give u the link to it:).. the problem is it has to be E=mc², but on mine its E= MC, as font only has capital letters.. which is not completely right:).. Cynyx suggested another font, so I am doing it now... other changes are: a thicker cross on the SMG and a grenade instead of happy combine face:).. the font I am using now is totally of different style, so I am not sure whether it will look good.. I am thinking of an anoher font with similar style now..
Yeah, I managed to get the transparency appear, I just thought it should have been as on your picture... So ill have another version or two today.. with transparency..
People, make more versions - so there would be more to choose from:)..
QOTD: O2 Broadband Usage policy:"...you can download as much as you like, but not more than 100GB per month..."
- FougereDeGuerre
- Posts: 190
- Joined: Fri Oct 06, 2006 7:40 pm
- Location: Belgium, Rebecq
KYO, while i was searching to improve the image I posted on the other topic, I founded another solution to export your transparency in a jpg file. In fact don't add a calc like I said, but add a fusion mask, select it and paste your alpha layer in it. Maybe it's the same, but you don't increase the number of line in your mask property.
I'm still a noob with that wonderfull software, I learn everyday...
I'm still a noob with that wonderfull software, I learn everyday...
La misere des amis n'est pas plus amusante qu'un jardin dont la flore est mourante.
Ha-ha.. I made it:)... here it is... I m going to make a game screenshot of it as well... a bit later...
[img=http://img187.imageshack.us/img187/9046/gamelogojpgzm4.th.jpg]
[img=http://img187.imageshack.us/img187/9046/gamelogojpgzm4.th.jpg]
QOTD: O2 Broadband Usage policy:"...you can download as much as you like, but not more than 100GB per month..."
Screenshot...
http://img521.imageshack.us/my.php?imag ... 001fo8.jpg
http://img521.imageshack.us/my.php?imag ... 001fo8.jpg
QOTD: O2 Broadband Usage policy:"...you can download as much as you like, but not more than 100GB per month..."
-
- E=mc² member
- Posts: 732
- Joined: Fri Oct 06, 2006 8:05 pm
- Location: Belgium
Thank you Cynyx and anti-fougere...
Thanks, DHR_000x... Could have left the "play with style.." sentense on it:).. U edited it as jpg, didnt u?.. it will not be transparent:).. the box will be white...
Thanks, DHR_000x... Could have left the "play with style.." sentense on it:).. U edited it as jpg, didnt u?.. it will not be transparent:).. the box will be white...
QOTD: O2 Broadband Usage policy:"...you can download as much as you like, but not more than 100GB per month..."
- DHR_000x
- E=mc² member
- Posts: 1393
- Joined: Fri Oct 13, 2006 8:40 pm
- Location: Zürich. Switzerland
- Contact:
Yeah, if i use the .JPG file the box will be white, but for easy transparency works i've got an easy solution (i'll try to explain me):
-Take pic on photoshop and select the white areas pressing "w" and then "del".
-Save it as .TGA file and you got an usable spray with no background.
Just an easy way
-Take pic on photoshop and select the white areas pressing "w" and then "del".
-Save it as .TGA file and you got an usable spray with no background.
Just an easy way
Yes, but it wont be truly transparent:).. because the grey boxes are semi-transparent as well and the text is. It doesnt make much difference, though:). I know. But if u want I can send you the real tga I made, or the photoshop project to play with.DHR_000x wrote:Yeah, if i use the .JPG file the box will be white, but for easy transparency works i've got an easy solution (i'll try to explain me):
-Take pic on photoshop and select the white areas pressing "w" and then "del".
-Save it as .TGA file and you got an usable spray with no background.
Just an easy way
And to others, as well:
1.Do we need a representative clan spray or not?
2.Do we agree to mine or are we still choosing?
3.If we agree to mine, does anybody want me to send them the tga, or the spray itself? Or does anybody want their name on it?
4.If we are still choosing - I am always happy to help, or to look at others':).
QOTD: O2 Broadband Usage policy:"...you can download as much as you like, but not more than 100GB per month..."
- [PCM] BackAgain
- Posts: 3
- Joined: Thu Oct 12, 2006 6:16 am