Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: 3D modeling NULL material tutorial.  (Read 5763 times)

0 Members and 1 Guest are viewing this topic.

SAS~Loku

  • SAS Team
  • member
  • Offline Offline
  • Posts: 662
3D modeling NULL material tutorial.
« on: December 22, 2009, 03:58:55 PM »

I hope this one will be usefull for creators of 3D models for game,quick explanation what are NULLs for those who dont knew what they are:NULLs are used to keep smoothing between two separate meshes so model dont look ugly ie: wings,they are build from 2 separate parts but we cant see those parts as separate only as one object, NULLs are needed only for 3D model,game dont use them,thats why we need remove them from our exported model.

This tutorial explain how to build meshes with NULL parts,for main meshes D0,D1,D2,D3 ,LODs dont need them.
As example i use WingLIn,its complete left wing not cut in half,it has only one material applied Gloss1D0o (ID1).

Change number of materials via material editor to 2 or more if need(multimaterial mesh)and name it NULL or delete,whatever.


Select faces from the part  of mesh they will be NULL  material and change their ID to 2 or ID X of last material u set  with material editor.Its important .



Now we export our mesh with Fatduck exporter,we can see two materials Gloss1D0o and NULL(delete)

Now the funny part :D  removing  NULL part of mesh,idea is to delete all vertices,mapping coordinattes and faces for this material,sounds scarry, dont worry its easy using Notepad2 or any other  text editor wich show you numbers of lines in text, and with little help of windows calculator is even easier,its simple math to do.Just count number of lines they need to be deleted for each  group of numbers,ie: in this case its 65 lines for verts and mapping coordinates and 70 lines for faces.







[Materials]
Gloss1D0o
NULL      this can be removed

[FaceGroups]
257 245
0 0 192 0 175
1 192 65 175 70      we need to remove 65 verts,65 mapping coordinates and 70 faces  for the last material

after we do this we  can delete  from [FaceGroups] this  1 192 65 175 70  and correct   main vertices faces numbers  from  257 245  to  192  175 
and at the end we have something like this

[Materials]
Gloss1D0o

[FaceGroups]
192 175
0 0 192 0 175



For meshes with more than one material,mostly fuselage,tail,keel,wing with Ovelay materials do it same way,only when calculate new main verts/faces  numbers  use values from the last  material.Here is proof  it works in game ,same wings prevoiusly without NULLs and after i added them.

Logged
P7a/P11c/f/g P24a/b/e/f/g PZL23/42 PWS-10/26 R-XIII RWD-10/14 GeeBeeR1/R2/Granville P-45 , WhippetMkI, Sdkfz-234/1/2, Kurogane, TKS, Wz.29/34 and some other shit XD

max_thehitman

  • SAS~Area51
  • Modder
  • member
  • Offline Offline
  • Posts: 8976
  • Beer...Girls...IL2+Mods!
Re: 3D modeling NULL material tutorial.
« Reply #1 on: June 09, 2010, 03:51:40 PM »



Great tutorial.
Thanks Loku!  8)


Logged
Everything I like is either illegal, immoral or fattening ! Welcome to SAS1946

PA_Jeronimo

  • SAS Honourable Member
  • member
  • Offline Offline
  • Posts: 1076
  • I like curves
Re: 3D modeling NULL material tutorial.
« Reply #2 on: July 26, 2012, 10:36:42 AM »

Hi Loku, I've been trying to add Null Material in the mesh that I modified and i did not succeed.  :-[

At first because I did not know assign materials through the 3ds, and now because I have very clear if I can assign multiple materials to one face. ::)

If can assign multiple materials to one face ... how do that?

Or as add next?

Thanks in advance, Jero.
Logged

C6_Claymore

  • Modder
  • member
  • Offline Offline
  • Posts: 932
Re: 3D modeling NULL material tutorial.
« Reply #3 on: October 30, 2014, 05:03:09 PM »

Any chance to have the pictures back ?

Thx to imageshack  >:(
Logged
Cooler Master Cosmos 2 SE, Intel core i7 950 3.1, Asus Z87-A, Nvidia Geforce GTX 580, 8 Go DDR3, Corsair 750W, Samsung Syncmaster 2232BW 22" & 2032BW 20", W7, Sa

Koty

  • Mr. MiG
  • Modder
  • member
  • Offline Offline
  • Posts: 2274
  • It's a MiG!
Re: 3D modeling NULL material tutorial.
« Reply #4 on: December 29, 2017, 07:12:16 PM »

oooh, glad to have found this!

Thank you spirits of the IL-2 past... ^^;

took me a bit of thinking, but I think I know how it works now...
Logged
If I don't have to do it, I won't. If I have to do it, I'll make it quick.

SAS~Storebror

  • Editor
  • member
  • Offline Offline
  • Posts: 23882
  • Taking a timeout
    • STFU
Re: 3D modeling NULL material tutorial.
« Reply #5 on: December 30, 2017, 12:26:48 AM »

--> https://www.sas1946.com/main/index.php/topic,357.msg2943.html
When you scroll down, you will see what the idea of NULL material is: It's the material for adjacent surfaces to define surface normals on "open" edges of a mesh, so that it smoothly connects to the open edges of adjacent meshes.

The latest BETA version of Maraz Exporter can deal with NULL materials on it's own.

Cheers!
Mike
Logged
Don't split your mentality without thinking twice.
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 24 queries.