is there a way to target MD3 vertex groups with a shader?

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
KillPixel
Posts: 49
Joined: Sun Jun 22, 2014 7:35 pm

is there a way to target MD3 vertex groups with a shader?

Post by KillPixel »

What I have: an MD3 comprised of two meshes (body & boils), one mesh has a deform vertex shader (the boils).

video: https://youtu.be/kx1d94uKFLw

What I want: i'd like the two meshes to be connected, as in the parameter vertices of the boils are part of the body mesh, but only the boils receive the shader. what is the best way to do this, if any?
[url=https://www.youtube.com/user/KillPixel]KillPixel@YouTube[/url]
User avatar
Bacon
Posts: 1476
Joined: Sat Jul 31, 2004 7:00 am

Re: is there a way to target MD3 vertex groups with a shader?

Post by Bacon »

What do you mean by the parameter verticies of the boils? Looking at that video you already have the desired effect (boils move and the body doesn't) Do you mean you want the verts on the boils that are touching the body to not clip into the body itself?
[b]CAPSLOCK IS ON[/b]
KillPixel
Posts: 49
Joined: Sun Jun 22, 2014 7:35 pm

Re: is there a way to target MD3 vertex groups with a shader?

Post by KillPixel »

I'm sorry, I meant perimeter of the boils, not parameter :P

In other words, I'd like the outer verts of the boils to be attached to the body mesh by their vertices. Another way to think about this is having a single mesh but with specific vertices affected by the shader, in this case, only the vertices that make up the boils would be affected.

I hope this is more clear?
[url=https://www.youtube.com/user/KillPixel]KillPixel@YouTube[/url]
User avatar
Bacon
Posts: 1476
Joined: Sat Jul 31, 2004 7:00 am

Re: is there a way to target MD3 vertex groups with a shader?

Post by Bacon »

Sort of. Is this a player model? The video you show, the body doesn't move but the boils move, which is what you want apparently... Are those 2 seperate md3 models you're showing, and theyre just overlapping? Or do you want the vertexes of the boils that are connected to the body to not deform? If the latter, that's probably not possible.
[b]CAPSLOCK IS ON[/b]
KillPixel
Posts: 49
Joined: Sun Jun 22, 2014 7:35 pm

Re: is there a way to target MD3 vertex groups with a shader?

Post by KillPixel »

not a player model. It's a single md3 comprised of 2 objects (so I could assign 2 separate materials, 1 for the body and one for the boils with deformvertexes).
you want the vertexes of the boils that are connected to the body to not deform?
correct.
that's probably not possible.
I was afraid of that :/
[url=https://www.youtube.com/user/KillPixel]KillPixel@YouTube[/url]
Post Reply