Question for RubyCarbuncle

Avatar
FelixGriffin
2,680 Posts
Posted Jun 12, 2012

Sprowl and I are continuing to develop levels involving Reflection Gel, and the big problem at the moment is that the gel looks like Conversion Gel when on the ground, even though the paint blobs and particles are different. We've been looking for a way around it, but it doesn't seem to load any texture for the colors (except lightmaps?). It must be some sort of script or hard code.

When I was looking through some screenshots of Portal 2 I saw this one, with the yellow Conversion Gel, and I wanted to know if you would mind telling us how you accomplished this.

http://steamcommunity.com/id/RubyCarbun ... 3373767635

Thanks!

Advertisement
Registered users don’t see ads! Register now!
Avatar
spongylover123
944 Posts
Posted Jun 12, 2012
Replied 57 minutes later
It's a secret kept inside rhetorical.
I doubt he would give that information away without omnicoder's permission.
Avatar
Lpfreaky90
2,842 Posts
Posted Jun 12, 2012
Replied 4 minutes later
Oh and if you want to poke a specific person generally it's more effective to poke them on:
* IRC,
* Steam
Or just sent them a pm :smile:

Making a thread for a specific person isn't really a good idea :wink:

Avatar
portal2tenacious
393 Posts
Posted Jun 12, 2012
Replied 18 minutes later
I remember there was a console command the changes gel color and you replace the red, yellow, and blue.
Try putting in speed or bounce to find it.
Avatar
FelixGriffin
2,680 Posts
Posted Jun 12, 2012
Replied 21 minutes later
The ConVars only affect it when it hits the player, according to my experiments.

Sorry about this. I'll send him a PM.

Avatar
RubyCarbuncIe
303 Posts
Posted Jun 12, 2012
Replied 1 hour later
What I did was specific for each gel. Each of the main three gels has a console command that allows the color to change once the map is reloaded.

Here are the commands:
speed_paint_color 255 106 0 255
bounce_paint_color 0 165 255 255
portal_paint_color 128 128 128 255

I've looked around the commands and I've yet to find anything labeled "Stick_paint_color" (SInce it registers as Stick Gel") and even something that has to do with reflection gel.

Sorry for the late reply, I woke up like 15 minutes ago. :razz: All in all this probably should have been a PM.

Also these commands don't change blob color. just what hits a surface.

EDIT: Oh and painted cube is a texture that I edited the texture for.

EDIT EDIT: It also changes the color for when the player is hit by it.

EDIT EDIT EDIT: > spongylover123 wrote:

It's a secret kept inside rhetorical.
I doubt he would give that information away without omnicoder's permission.

It's not a rhetorical secret, I was just browsing commands. I've never even gotten to use the Adhesion Gel before. :/

Avatar
spongylover123
944 Posts
Posted Jun 12, 2012
Replied 34 minutes later

RubyCarbuncle wrote:

It's not a rhetorical secret, I was just browsing commands. I've never even gotten to use the Adhesion Gel before. :/

Yeah, I got a feeling Omnicoder told you when I first saw that picture.
And isn't Adhesion Gel a vscript thing?

Avatar
RubyCarbuncIe
303 Posts
Posted Jun 12, 2012
Replied 4 minutes later

spongylover123 wrote:
RubyCarbuncle wrote:

It's not a rhetorical secret, I was just browsing commands. I've never even gotten to use the Adhesion Gel before. :/

Yeah, I got a feeling Omnicoder told you when I first saw that picture.
And isn't Adhesion Gel a vscript thing?

I believe so, however I think it broke after the latest DLC. Seeing as how the Reflect Gel is registering as Stick Gel. I'm not entirely sure on that though.

Avatar
spongylover123
944 Posts
Posted Jun 12, 2012
Replied 39 minutes later
I found out stick gel, uses the same color as conversion gel, that means that if you say portal_paint_color 255 0 0 255. both portal and stick gel will be red.
Avatar
FelixGriffin
2,680 Posts
Posted Jun 12, 2012
Replied 5 minutes later
Wow, I can't believe it. I just needed to reload my map after changing the variables. Is there a way to make it change within a map, before reloading, and have it work?

The sticky gel did become reflection gel, but it's still a bit sticky. An orange cube can't slide on it, and a (purple?) cube can't slide on orange.

Adhesion Gel involved a vscript, which, AFAICT, involved tons of triggers to find where the paint hit.

Thanks so much for answering! :smile:

Avatar
RubyCarbuncIe
303 Posts
Posted Jun 12, 2012
Replied 10 minutes later
@spongylover I kind of figured that. It's too bad though, I just wish they'd given something more than the Conversion Gel's textures as placeholders.

You could always just not put Conversion Gel and Reflection Gel in the same map. Then all they'd have to do is read the description to figure out it's Reflection Gel and not Conversion Gel.

@FelixGriffin No problem, and yeah those left over properties could be used in a few unique ways. From what I can tell there is no way to make the command register before the map is loaded, something you could do though is make a small map to activate the command and then have it transition to the main map which uses the gel. This would mean it can't be posted on the Workshop though. If it is possible to activate it before the map loads than I don't know it. I'm not very good with all that I/O stuff.

Also another question to those who can answer. Does anyone know how to change the blob textures of the main three gels? I would love to have Red Repulsion Gel and Black Propulsion Gel blobs.

Avatar
Sprowl
97 Posts
Posted Jun 12, 2012
Replied 17 minutes later

RubyCarbuncIe wrote:
Also another question to those who can answer. Does anyone know how to change the blob textures of the main three gels? I would love to have Red Repulsion Gel and Black Propulsion Gel blobs.

It's indeed a texture, so you can't change it trough a command. You can find the materials in materials/paintblobs. Important are
- blob_surface_speed- blob_surface_bounce- blob_surface_portal- blob_surface_stickIt's just a square, filled with one color. So it's easy to change.

Avatar
FelixGriffin
2,680 Posts
Posted Jun 12, 2012
Replied 5 minutes later
You can also change their VMT's to make them look even more different. There seems to be some sort of internal reflection in there, which is hidden by the solid-colored blobs. And the reflection (stick) one looks very cool with full cubemaps.
Avatar
RubyCarbuncIe
303 Posts
Posted Jun 12, 2012
Replied 11 minutes later

Sprowl wrote:
RubyCarbuncIe wrote:

Also another question to those who can answer. Does anyone know how to change the blob textures of the main three gels? I would love to have Red Repulsion Gel and Black Propulsion Gel blobs.

It's indeed a texture, so you can't change it trough a command. You can find the materials in materials/paintblobs. Important are
- blob_surface_speed- blob_surface_bounce- blob_surface_portal- blob_surface_stickIt's just a square, filled with one color. So it's easy to change.

I can't believe it's that simple ._. I always thought there was some advanced scripting involved. I've seen those textures before but I never got them to work properly. All I ever got was a glowing white blob. Come to think of it though I came across the same problem when I was making the Hard Light Bridge yellow and I managed to fix that as well.

RED AND BLACK GEL HERE I COME!

Thank you btw.

FelixGriffin wrote:
You can also change their VMT's to make them look even more different. There seems to be some sort of internal reflection in there, which is hidden by the solid-colored blobs. And the reflection (stick) one looks very cool with full cubemaps.

I'll have to look into that.

Avatar
spongylover123
944 Posts
Posted Jun 12, 2012
Replied 9 minutes later

RubyCarbuncIe wrote:

FelixGriffin wrote:

You can also change their VMT's to make them look even more different. There seems to be some sort of internal reflection in there, which is hidden by the solid-colored blobs. And the reflection (stick) one looks very cool with full cubemaps.

I'll have to look into that.

if anyone want cubemap reflections for gel use this vmt

paintblob
{

$uvscale "0.006" 

$baseTexture "paintblobs\blob_surface_*"

$normalMap "paintblobs\blob_surface_normal"
$bumpstrength "0.2"

$diffuseScale "1.0"

$phongexponent 40 
$phongboost 2 
$phongexponent2 400 
$phongboost2 7 

$rimlightexponent 8
$rimlightboost 300

$envMap env_cubemap

$fresnelBumpStrength 0
$fresnelWarpTexture "Models/blob/blob_fresnel_warp"

$interior 1 
$interiorFogStrength "0.4" 
$interiorFogLimit "0.4" 
$interiorFogNormalBoost 8 
$interiorBackgroundBoost 0 
$interiorAmbientScale "0.1" 
$interiorBacklightScale "0.1" 
$interiorRefractStrength "0.1" 



$nocull 1
}

Avatar
RubyCarbuncIe
303 Posts
Posted Jun 12, 2012
Replied 11 minutes later
@spongylover Thanks for this, I;ll test it out soon.

I have one final question concerning Gel though. How would I be able to reskin the particles that appear when a surface is hit? I got the gel blobs reskined but the particles are still wrong.

img

See the particles are still orange.

Avatar
spongylover123
944 Posts
Posted Jun 12, 2012
Replied 2 minutes later

RubyCarbuncIe wrote:
@spongylover Thanks for this, I;ll test it out soon.

I have one final question concerning Gel though. How would I be able to reskin the particles that appear when a surface is hit? I got the gel blobs reskined but the particles are still wrong.

img

See the particles are still orange.

edit the particles in alien swarm.

you need to change the color in the particle properties. or use the particle initializer, "color random".

Avatar
RubyCarbuncIe
303 Posts
Posted Jun 12, 2012
Replied 8 minutes later
At times like this I wish I still had it installed. Well when it's all done I'll get to posting some info on the progress. Thanks for all your help you guys! :biggrin:

EDIT: Okay so, I edited the particles, however how exactly do I replace them in game? I tried doing what I would normally do to change textures in the pak01_dir.vpk but that only made an error which made the whole room get filled with a ton of X patricles.

Similar to this.
img

Any idea why this is happening, and how I can fix it?

Avatar
FelixGriffin
2,680 Posts
Posted Jun 12, 2012
Replied 2 hours later
The particle files ARE in the VPK...but their manifest isn't! :biggrin:

If you copy the relevant PCF's (paint_splat_fx, etc.) and rename them, then edit THOSE, you can change the manifest slightly by commenting out the old lines and adding the new. You also need a bang in front of the filename to have it load the sticky ones, which the game doesn't precache. (I recently posted a small file with new PCF's for the sticky paint, which can be edited unlike the normal ones.)

Advertisement
Registered users don’t see ads! Register now!
Avatar
ChickenMobile
2,460 Posts
Posted Jun 12, 2012
Replied 1 hour later
I'm wondering if it is possible to create a new preset for a gel, however they have no behaviors (just like a paint).

I recently created a new element that affects gels in really cool ways and was wondering if I could make rainbows :smile:.