Model Customization Pt.01 (FP Shader and Node Separation)

This if for tutorials and information for the community to use for great works.
Keep them organized now!..
User avatar
DemonicSandwich
Trollwich
Posts: 1620
Joined: Sat Dec 08, 2007 9:47 pm
Location: I...huh...I don't really know. x.x

Model Customization Pt.01 (FP Shader and Node Separation)

Post by DemonicSandwich »

Model Customization Pt.01
(First Person Shader and Node Separation)

I made a video explaining how to separate your model to have separate shaders as well as have correctly assigned nodes for those of you who want your magazines and various other parts to animate. :wink:

Video:
Mirror 1 (careful, it's 100+MB)

Map Used:
foundation+berretta.serenity
(182.39 KiB) Downloaded 421 times
Credits:
  • JacksonCougar:
    Coded the aPMI. Somewhat responsible for me looking for node information.
  • Iron_Forge/Grimdoomer:
    Found out how to asign nodes after reading their white papers on the structure of model raw.
Model Customization Pt.01|Model Customization Pt.02|Bipd Attachments|True Marker Rotations
"I'm the h4x man! Skibby Dibby Dib YoDahDubDub, YoDahDubDub"
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by Click16 »

:D Nice!
Image
activebomber

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by activebomber »

Well I watched this, its really great, and I cant wait to try this. OOOOOODELS of information!
User avatar
Click16
Posts: 1941
Joined: Mon Dec 31, 2007 4:36 am
Location: United States

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by Click16 »

activebomber wrote:Well I watched this, its really great, and I cant wait to try this. OOOOOODELS of information!
Nodes... for so long i wanted to assign nodes. THANK YOU SO MUCH DEMONIC!
Image
User avatar
NotZachary82
Posts: 1846
Joined: Thu Dec 20, 2007 8:39 pm

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by NotZachary82 »

What could possibly be covered in Pt.02? :|
xxpenguinxx
Posts: 1974
Joined: Sun Jan 27, 2008 4:50 am

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by xxpenguinxx »

NotZachary82 wrote:What could possibly be covered in Pt.02? :|
3rd player models I would assume.

I thought you were working on a tutorial. Dam, I remember when some people thought this would never happen.
DemonicSandwich wrote:See that? You see that how it is highlighted down here but it's not highlighted right there? Ah, I guess that's what I get for pirating it.
In Soviet Russia, DS touches you. Say it again and I'll do more than touch. ~DS -Oh baby
A cat was licking itself to the sound of potato chips.
User avatar
DemonicSandwich
Trollwich
Posts: 1620
Joined: Sat Dec 08, 2007 9:47 pm
Location: I...huh...I don't really know. x.x

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by DemonicSandwich »

xxpenguinxx wrote:I thought you were working on a tutorial. Dam, I remember when some people thought this would never happen.
Ya, I was surprised about how simple the shit was. I kept bugging Cougar to code in a Node asigning option into the current beta PMI, but I got impatient so I read through I_F's and Grims white papers regarding model raw.

I already knew that each vert had node indexes that there was no way in hell I was going to edit those. (there were thoughsands to edit, *shudder*)
Grims white paper described a Node Map at the end of the model raw. Which is just an array of bytes, one byte for each submesh, each byte pointing to a node in the meta.
xxpenguinxx wrote:
NotZachary82 wrote:What could possibly be covered in Pt.02? :|
3rd player models I would assume.
Ya, I was thinking possible a custom machine or custom vehicle.

I was a little tired when I uploaded this so I forgot to upload the map I used and add the Credits...
Model Customization Pt.01|Model Customization Pt.02|Bipd Attachments|True Marker Rotations
"I'm the h4x man! Skibby Dibby Dib YoDahDubDub, YoDahDubDub"
User avatar
NotZachary82
Posts: 1846
Joined: Thu Dec 20, 2007 8:39 pm

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by NotZachary82 »

You can clone shader chunks (mode tag), correct? I'd rather not attempt to kill this delicate map I have here.
User avatar
Zieon Eslador
Posts: 731
Joined: Wed Apr 30, 2008 1:16 am
Location: Virginia Awesome?: Yes

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by Zieon Eslador »

NotZachary82 wrote:You can clone shader chunks (mode tag), correct? I'd rather not attempt to kill this delicate map I have here.
...make a backup?
Zieon Eslador (1:23:09 AM): I haven't seen Watchmen, but I plan to eventually...
NotZachary (1:23:15 AM): it has nukes, random things happening, and retards screaming
NotZachary (1:23:19 AM): kinda like MW2
User avatar
NotZachary82
Posts: 1846
Joined: Thu Dec 20, 2007 8:39 pm

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by NotZachary82 »

nooooooooo.
...
And because I can't test it for a long time.
User avatar
DemonicSandwich
Trollwich
Posts: 1620
Joined: Sat Dec 08, 2007 9:47 pm
Location: I...huh...I don't really know. x.x

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by DemonicSandwich »

Yes, you can add additional shader chunks. But I strongly recommend you "add" them the same way you are adding additional LOD and Part/Section chunks.

Also, if you are worried about breaking the map, you should be making the weapon in a separate map if possible.
Or at least just for the model injection.
Model Customization Pt.01|Model Customization Pt.02|Bipd Attachments|True Marker Rotations
"I'm the h4x man! Skibby Dibby Dib YoDahDubDub, YoDahDubDub"
xxpenguinxx
Posts: 1974
Joined: Sun Jan 27, 2008 4:50 am

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by xxpenguinxx »

Is there a way to maybe link vertices to a joint in hex workshop or can that only be done by injecting the model with the joints in it?
DemonicSandwich wrote:See that? You see that how it is highlighted down here but it's not highlighted right there? Ah, I guess that's what I get for pirating it.
In Soviet Russia, DS touches you. Say it again and I'll do more than touch. ~DS -Oh baby
A cat was licking itself to the sound of potato chips.
User avatar
JacksonCougar
Huurcat
Posts: 2460
Joined: Thu Dec 06, 2007 11:30 pm
Location: Somewhere in Canada

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by JacksonCougar »

It's just a bone, but a special type that no current injectors will inject as. So no.
User avatar
rentreg
Posts: 327
Joined: Sun Jul 26, 2009 3:11 am

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by rentreg »

aint working :| . ive been able to dupe my model parts and LODs and re-reference them but when it comes to exporting the visual mesh entity's being a bitch. im following the tutorial but doing it with the sniper so that mite be why its not working. if someone could see where i went wrong then that would be a big help. i doubt its anything to do with the tutorial because it was done really well. good job demonic :)
Most users ever online was 152 on March 16th, 2012, 7:02 am
what happened on March 16th, 2012 at 7:02 am? 0_o
User avatar
NotZachary82
Posts: 1846
Joined: Thu Dec 20, 2007 8:39 pm

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by NotZachary82 »

Are you using an original model?
User avatar
DemonicSandwich
Trollwich
Posts: 1620
Joined: Sat Dec 08, 2007 9:47 pm
Location: I...huh...I don't really know. x.x

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by DemonicSandwich »

rentreg wrote:aint working :| . ive been able to dupe my model parts and LODs and re-reference them but when it comes to exporting the visual mesh entity's being a bitch. im following the tutorial but doing it with the sniper so that mite be why its not working. if someone could see where i went wrong then that would be a big help. i doubt its anything to do with the tutorial because it was done really well. good job demonic :)
What's the error being thrown if any?
Map?
# of Parts/Sections?
# of LOD/Permutations?

Perhaps a description/screen shot of the model you're attempting to inject?
Model Customization Pt.01|Model Customization Pt.02|Bipd Attachments|True Marker Rotations
"I'm the h4x man! Skibby Dibby Dib YoDahDubDub, YoDahDubDub"
User avatar
rentreg
Posts: 327
Joined: Sun Jul 26, 2009 3:11 am

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by rentreg »

error: Unable to read beyond the end of the stream.
map: tried in my modded ascension but kept braking map. so tried again in zanzi.
5 parts
5 LODs

model was extracted from urban terror 4.1 as a .md3 file and converted to a .obj
Attachments
sniper model.rar
the model. if anyone wants a good look at it or just wants it or something..
(78.21 KiB) Downloaded 445 times
Most users ever online was 152 on March 16th, 2012, 7:02 am
what happened on March 16th, 2012 at 7:02 am? 0_o
User avatar
DemonicSandwich
Trollwich
Posts: 1620
Joined: Sat Dec 08, 2007 9:47 pm
Location: I...huh...I don't really know. x.x

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by DemonicSandwich »

It's not advised to do this in your main modded map as you may have quite a bit of unused/corrupt stuff left behind.

Did you clone the chunk or copy/paste them from another tag?
Take a look at your new chunks in the meta editor, they should look the same as the other chunks. If anything only the offsets should be different.

When I was making this video, I found that cloning chunks here would corrupt both the LOD/Perms and Parts/Sections reflexives.

I had the LOD values in the thousands, and the sections reflexives were just way to fuckered to get anything from them.
Same thing happened when I copied once and pasted several times. The only time it worked it when I copy/pasted a single chunk at a time or the entire reflexive.
Although I never attempted to extract the model from it because I knew it would fail anyway.

Edit: Yes, it can be done with the sniper. I did it exactly as follows:
  • Duplicated the first person model tag for the sniper rifle.
  • Copied and Pasted each chunk, one by one, until I had 5 chunks each.
  • Extracted the model to a folder.
Model Customization Pt.01|Model Customization Pt.02|Bipd Attachments|True Marker Rotations
"I'm the h4x man! Skibby Dibby Dib YoDahDubDub, YoDahDubDub"
User avatar
rentreg
Posts: 327
Joined: Sun Jul 26, 2009 3:11 am

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by rentreg »

ohk i see where i went wrong. rather than doing ''copy to clipboard" in chunk cloner for each chunk i just kept putting in the same part or LOD chunk and adding meta to map. so when i was done and i looked at the meta of the new sniper rifle model under 'permutations' in the LOD section there were still values in there when they should have all been 0.
Most users ever online was 152 on March 16th, 2012, 7:02 am
what happened on March 16th, 2012 at 7:02 am? 0_o
User avatar
DemonicSandwich
Trollwich
Posts: 1620
Joined: Sat Dec 08, 2007 9:47 pm
Location: I...huh...I don't really know. x.x

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by DemonicSandwich »

rentreg wrote:ohk i see where i went wrong. rather than doing ''copy to clipboard" in chunk cloner for each chunk i just kept putting in the same part or LOD chunk and adding meta to map. so when i was done and i looked at the meta of the new sniper rifle model under 'permutations' in the LOD section there were still values in there when they should have all been 0.
I tried many methods before actually recording the video, that method in particular resulted in corrupted data for all the new chunks.
The video shows the successful methods I found.
Model Customization Pt.01|Model Customization Pt.02|Bipd Attachments|True Marker Rotations
"I'm the h4x man! Skibby Dibby Dib YoDahDubDub, YoDahDubDub"
User avatar
rentreg
Posts: 327
Joined: Sun Jul 26, 2009 3:11 am

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by rentreg »

Thanks demonic :) . Heres a few pics of what ive been able to do so far:
Image

Image
Most users ever online was 152 on March 16th, 2012, 7:02 am
what happened on March 16th, 2012 at 7:02 am? 0_o
User avatar
NotZachary82
Posts: 1846
Joined: Thu Dec 20, 2007 8:39 pm

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by NotZachary82 »

Is that with the PMI Entity?
User avatar
Dragonfire
Posts: 1328
Joined: Thu Feb 21, 2008 9:20 pm
Location: Michigan, USA
Contact:

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by Dragonfire »

wtf shader is that?
Image
User avatar
rentreg
Posts: 327
Joined: Sun Jul 26, 2009 3:11 am

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by rentreg »

Is that with the PMI Entity?
umm nah just entity 1.6. i am aware there are better versions but this is the version of entity that i like the most.
wtf shader is that?
for the main portion of the gun is using a camo shader i injected myself. the metal bits (barrel, scope, trigger, e.c.t) are using just a generic grey shader, the mag is using the frag shader since i thought it looked like it suited it and the lense of the scope is using a modification of the original sniper scope shader with a few changes so the mesh that isnt facing you is darkened.
Most users ever online was 152 on March 16th, 2012, 7:02 am
what happened on March 16th, 2012 at 7:02 am? 0_o
User avatar
DemonicSandwich
Trollwich
Posts: 1620
Joined: Sat Dec 08, 2007 9:47 pm
Location: I...huh...I don't really know. x.x

Re: Model Customization Pt.01 (FP Shader and Node Separation)

Post by DemonicSandwich »

rentreg wrote:
Is that with the PMI Entity?
umm nah just entity 1.6. i am aware there are better versions but this is the version of entity that i like the most.
Ya but it's not good fore model injection....at all.
Model Customization Pt.01|Model Customization Pt.02|Bipd Attachments|True Marker Rotations
"I'm the h4x man! Skibby Dibby Dib YoDahDubDub, YoDahDubDub"
Post Reply