Gel...From Scratch!

Avatar
radelite
121 Posts
Posted Aug 16, 2013
Replied 1 hour later
I have no comment I am dumbfounded at how awesome this is

HOW you do that

Advertisement
Registered users don’t see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Aug 16, 2013
Replied 33 minutes later
Thanks! :smile:

It's mostly clever (ab)use of Particle System operators. For example, I used Velocity Repulse from World with a negative value and Collision Via Traces to make the blobs stick to the ground.

Avatar
radelite
121 Posts
Posted Aug 17, 2013
Replied 11 hours later
Maybe you can help me a little with it I would love to have those kind of textures for my paint gun
Avatar
FelixGriffin
2,680 Posts
Posted Aug 17, 2013
Replied 1 hour later
Unfortunately I've had to change my approach a little bit. The gel on the ground looks awesome this way (as well as on walls and ceilings and the like), but it's REALLY expensive. If you have more than 16 or so splatters on the screen at once the game crashes (apparently the Blobulator doesn't understand when the simulation is frozen).

If you look at my Ice Gel in the Hammer Notepad thread, that's my newest attempt at making a cheap ground particle.

Avatar
Flo2912
80 Posts
Posted Aug 17, 2013
Replied 26 minutes later
I don't really like the texture of your Icey and gravitation Gel. It looks too less Gel-Like for my taste :sad:
But if ypou don't get it otherwhise, without game-chrashes, there is no other optio, I think :sad:

But Can't you try to make it look similar to info paint sprayer Gels?

And whats now with the cleansinggel? since they dont affect each other., you woukd need to make an own cleansing Gel for your Gels, right?

Avatar
FelixGriffin
2,680 Posts
Posted Aug 17, 2013
Replied 37 minutes later
Yes. The Cleansing Gel for mine also clears away normal gels, since it's just a standard blob of water with a script stuck on it. But the others aren't normal gel blobs, so they don't clear anything away.
Avatar
TeamSpen210
608 Posts
Posted Aug 17, 2013
Replied 44 minutes later
Just an idea - couldn't you just parent a cleansing gel sprayer or paint_sphere to your gels to make them remove others? Sprayers have a property to suppress the particles and sound.
Avatar
FelixGriffin
2,680 Posts
Posted Aug 17, 2013
Replied 32 minutes later
The sprayer gel reacts to physics slightly differently, so it would get out of sync. And if I used a prop_paint_bomb like with the Cleansing Gel the particles would get overlaid.

Just saw the other question above...I'd love to make the effect look like a normal gel, but the only way to place overlays or decals at runtime (without C++ code) is to lay them out over the whole map and then enable them when the gel gets near, which is what I was trying to avoid with this.

Avatar
flarn2006
39 Posts
Posted Aug 18, 2013
Replied 15 hours later
Would it be possible to make it look more like the vanilla gels, as in appearing as a decal on the floor rather than a 3D puddle?
Avatar
Flo2912
80 Posts
Posted Aug 18, 2013
Replied 4 hours later
Wait... did you mean the gelsplatter of the icygel, or the frozen water?
The Icy-Gel splatter looks even more like Gel than these stranges strings^^
But what is with the version the old video of the green and purple Gel use? why din't you use this?

For the Cleansinggel you may should make the cleansinggel for your Gels like one of you other Gels, that it just celans you Gels. than Mapmaker coould merge paintsprayergels with your cleansing, and your gels with paintsprayer cleansinggel and the Gels where able to overlape. if cleansinggel is neede just merge both celansinggel versions^^

Avatar
FelixGriffin
2,680 Posts
Posted Aug 18, 2013
Replied 3 hours later

flarn2006 wrote:
Would it be possible to make it look more like the vanilla gels, as in appearing as a decal on the floor rather than a 3D puddle?

FelixGriffin wrote:
Unfortunately I've had to change my approach a little bit. The gel on the ground looks awesome this way (as well as on walls and ceilings and the like), but it's REALLY expensive. If you have more than 16 or so splatters on the screen at once the game crashes (apparently the Blobulator doesn't understand when the simulation is frozen).

If you look at my Ice Gel in the Hammer Notepad thread, that's my newest attempt at making a cheap ground particle.

flarn2006 wrote:
Would it be possible to make it look more like the vanilla gels, as in appearing as a decal on the floor rather than a 3D puddle?

FelixGriffin wrote:
I'd love to make the effect look like a normal gel, but the only way to place overlays or decals at runtime (without C++ code) is to lay them out over the whole map and then enable them when the gel gets near, which is what I was trying to avoid with this.

Avatar
flarn2006
39 Posts
Posted Aug 18, 2013
Replied 3 hours later
Oh okay then. Thanks.
It's a shame Valve didn't release the C++ code for Portal 2 like (I believe) they did with the first Portal. Anyone know why?
Avatar
TeamSpen210
608 Posts
Posted Aug 18, 2013
Replied 35 minutes later
I don't think they released the code for the first either.
Avatar
FelixGriffin
2,680 Posts
Posted Aug 18, 2013
Replied 28 minutes later
Open-source software has to be free, since anyone with the code could get around DRM you put in. Portal and Portal 2 are not.

But it would be nice if they did something like they did with HL2, where they released the code for free but not the resources required to run the game.

Avatar
flarn2006
39 Posts
Posted Aug 18, 2013
Replied 11 minutes later

FelixGriffin wrote:
Open-source software has to be free, since anyone with the code could get around DRM you put in. Portal and Portal 2 are not.

But it would be nice if they did something like they did with HL2, where they released the code for free but not the resources required to run the game.

Well then by that logic, games without DRM (mostly indie games) have to be free as well. And what they did with HL2 is what I was referring to.

Avatar
metroid101
79 Posts
Posted Aug 18, 2013
Replied 4 hours later
I think it would be neater if they sold blueprints like add-on's to Hammer's source code.
For example blue prints/templates(with well written tutorials on how to use them) to make new gels the same way they did: $5.00
I mean, it wouldn't be free, but you get the idea, this way they're not selling the code itself but the basic idea of it. (So you don't have to spend months developing your own method xD)
Avatar
SpAM_CAN
103 Posts
Posted Aug 21, 2013
Replied 2 days later
The Portal source code leaked, if you wanted to dig it up somewhere and look at it - but Portal 2 has no public source code whatsoever.

I was considering moving my mod over to the Portal Leaked Source Code and fixing some things... but I'd rather not get sued big time by Valve.

Avatar
Flo2912
80 Posts
Posted Aug 28, 2013
Replied 6 days later
Short question: why can't you just take the Code for adhedsiongel, omnicoder made ( mapping-help/sticky-gel-test-t3487.html ) and convert this to one of the Gel you've made?

and in the Video of your anty gravity Gel, it looks like player and cubes are pushed up from the Gel? Can you may switch this to the opposite, so hat you are pulled down to the gel? on this way you might be able to climb along the chambertop^^

Avatar
FelixGriffin
2,680 Posts
Posted Aug 28, 2013
Replied 6 hours later
Omni never released that code, but I know how he made it. The surfaces of the room are covered with what I call the "adhesion grid," which detects when gel hits it and enables a room-rotating trigger.

But with my gels, the whole point of coding it with the script and particles is so that the mapper doesn't need to do anything special. He or she can just add an instance and be done with it. That's also why I'm working on the particle splatter rather than making a decal appear: a decal would require something like the adhesion grid.

I'll see if I can whip up a copy of Omni's gel so you can see how it works. But I haven't been able to find a way to make it work without the grid, and I don't want to force mappers to cover their whole map in a network of carefully-aligned triggers.

A possible solution would be special panels which prevent Adhesion Gel from instantly solidifying. That I could probably do. Would that work?

Advertisement
Registered users don’t see ads! Register now!
Avatar
Flo2912
80 Posts
Posted Aug 29, 2013
Replied 19 hours later
you mean a special Panel, that enables the adhedsion-function like the one we saw in omnicodes Video? would be great, do that :smile:

Can you still may release an optional version, containing the these grids for the Adhedsion function and the Gel looking like paintsparyer gels, for those like me who probably wouldn't have a problem to cover their whole mat with such Grids?