IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules Attention:

This is for the discussion and releasing of tutorials for modifying GTA. Anything that isn't a tutorial will be deleted without notification.

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 [TUT]Import NVC into 3Ds Max

 + Using NVC in GTAIV
 
Blaster_nl  
Posted: Wednesday, May 18 2011, 20:14
Quote Post


GTAV
Group Icon
Group: Members
Joined: Oct 16, 2005

nl.gif

Member Award




Night Vertex Colors

This tutorial consists of 2 parts:


a) Import NVC (Night Vertex Colors) into 3Ds Max
b) Using NVC in GTAIV


Introduction.
As some of you may know, SA, and I think GTAIII and VC as well, have a day and night system. It’s static lighting made within 3Ds Max, Day Vertex and Night Vertex. As of today DFF Import tools only import day vertex and cannot import night vertex. However, there is a way to replace the day vertex by night vertex, so the DFF Import thinks he imports day vertex but it is actually night vertex.


Programs you will need:
3Ds Max that supports DFF IO
RW Analyze
A Hex editor like XVI32


When you got all programs up and running you can start modding. First you will need a DFF file that you want to import in 3Ds Max with NVC.
For this tutorial I will use VgsN_nitree_r01.dff. It's a palm tree in Las Venturas which has a yellow\orange light effect on the tree itself.


Analyzing DFF
Open your DFF file with RW Analyze, you see a bunch of green and blue dots, look for 'Struct' under 'Geometry'. At the right side you say a bunch of data, 3 things are important: GeometryTextured, GeometryNormals and GeometryModulate. Take note which are YES and which are NO. In my case only GeometryTextured is YES (there are actually 2 GeometryTextured, only the first one matters).
Also note the value from [Flags], in my case '/' which stands for 0x2F.
user posted image

Exporting NVC data
We are still in RW Analyze, scroll down the list. Somewhere at the bottom you see Extension (blue dot), underneath it you see Bin Mesh PLG, followed by UNKNOWN and another UNKOWN. Now, the last UNKNOWN is the NVC data. Make sure a Hex editor is applied in the options. Now double click on this UNKNOWN, so it will be opened in a Hex Editor.
user posted image

Remove the first 4 bytes and keep the rest. Now save this file and call it NVC data or something.
user posted image

Resaving DFF file without Vertex Colors
Import the DFF file with DFF IO in 3Ds Max. Now rollout Export DFF, make sure your object is selected, SA is selected (green) and 'Skip COL'.
Now you see 4 buttons: MMC - UV - Nor - VCol.
Now remember the YES and NO from RW Analyze
MMS = GeometryModulate
UV = GeometryTextured
Nor = GeometryNormals
VCol must NOT be selected no matter RW analyze sais yes or no.
So my palm tree only has GeometryTextures selected YES so I only click on UV, the rest is grey.
Now export DFF.
user posted image

Importing NVC into resaved DFF file
Open your new resaved DFF file with RW Analyze
Again go to 'Struct' underneath 'Geometry' and open it in a Hex Editor.
Change the the first byte to '/' (in my case at least) ('26' becomes '2F')
Click with your mouse on the 17th block (resize the window so that 8 blocks are on one line, then the first block in the 3rd row is the 17th)
Now go to File > Insert and open the file you just saved with the NVC data.
Save this file
Go back to RW Analyze, and again to 'Struct', right mouse button and select 'Import Section Data...' and open the file you just saved with Hex Editor.
Save this file to a new DFF file.
user posted image

NVC in 3Ds Max
Again open DFF IO and import your new DFF file.
Go to modifier list and scroll down to VertexPaint, and click on Vertex color display - unshaded

Result:

user posted image

This post has been edited by Blaster_nl on Wednesday, May 18 2011, 20:23
Users WebsitePMMSNXbox LivePlayStation Network
  Top
 

 
Blaster_nl  
Posted: Wednesday, May 18 2011, 20:20
Quote Post


GTAV
Group Icon
Group: Members
Joined: Oct 16, 2005

nl.gif

Member Award




Using NVC in GTAIV

2nd part coming in a few days.


Here is already the result:

Noon:
user posted image

Afternoon:
user posted image

Evening-night:
user posted image

This post has been edited by Blaster_nl on Wednesday, May 18 2011, 20:47
Users WebsitePMMSNXbox LivePlayStation Network
  Top
 

 
goin-god  
Posted: Wednesday, May 18 2011, 21:44
Quote Post


High Roller
Group Icon
Group: $outh $ide Hoodz
Joined: Mar 18, 2007

ar.gif

Member Award




Nice tutorial man. Im interested to see the IV one.
Users WebsitePMMSNPlayStation Network
  Top
 

 
hristobg  
Posted: Sunday, Jun 19 2011, 13:29
Quote Post


IV Map Modder, Scholarship Edition Project Leader
Group Icon
Group: Members
Joined: Aug 1, 2009

bu.gif

XXXXX



QUOTE (Blaster_nl @ Wednesday, May 18 2011, 20:20)
Using NVC in GTAIV

2nd part coming in a few days.


Here is already the result:

Noon:
---

Afternoon:
---

Evening-night:
---

And the tutorial..?! biggrin.gif

smile.gif
Users WebsitePMMSN
  Top
 

 
Blaster_nl  
Posted: Sunday, Jun 19 2011, 14:40
Quote Post


GTAV
Group Icon
Group: Members
Joined: Oct 16, 2005

nl.gif

Member Award




Waiting for ODR.

Right now it only works with zmodeler, and that sucks; deforms, disappearings, no shadows\reflections.

just add emissivenight shader if you want to do it now with zmod.

Btw, the whole 1st part of the tutorial is useless if flitskikker will release his tool, not sure if he will.
Users WebsitePMMSNXbox LivePlayStation Network
  Top
 

 
ares_22  
Posted: Wednesday, Jul 13 2011, 12:22
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Sep 3, 2007

pl.gif

XXXXX



OK, that works for me, but how do I export imported NVC? I would like to have this colours on Vertex Illum channel instead of Vertex Color to export it with Deniska's script, but I dond't know how do do it. sad.gif
PM
  Top
 

 
Blaster_nl  
Posted: Wednesday, Jul 13 2011, 13:57
Quote Post


GTAV
Group Icon
Group: Members
Joined: Oct 16, 2005

nl.gif

Member Award




This tutorial is completely useless with Flitskikkers NVC Tool, I'm not sure if he's willing to release it.

To be honest, I don't support SA modding anymore, it's time to move on to rage, well that's just my opinion.

This tutorial was made to convert NVC to GTA4.

I think this will help you:
http://hotmist.ddo.jp/tool/nvcm/index.html
Users WebsitePMMSNXbox LivePlayStation Network
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG