Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (84,975 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

Sign in to follow this  
Michno

Gims EVO, Terrain shader.

Recommended Posts

Michno

So i've been testing out the terrain shader religiously these past days. and i've come to a halt i've tried every single thing i could think off

Multiple UV maps
Vertex Colors
Different shader paramerteres.

And i simple cant get any other outcome than this.

http://prntscr.com/f5lm0b

Any help will be greatly appriciated.

Edit 4:

Got it working ^^ Thanks to Luca

http://prntscr.com/gbvw0l

Basicly each channel is controlled like this

Illumination - Shader controller BLACK - BLUE - GREEN - CYAN is a different texture
Color - Not sure but leave this as PINK Seems to control the illumination
Alpha just as normal Alpha it hides the mesh in places BLACK = Transparent Red = Visible


Also use the vertexpaint modifer. 3 of them is enough. one on each channel.

Edited by Michno

Share this post


Link to post
Share on other sites
3Doomer

It would be very nice too see different terrain shaders research and/or tutorial in a topic like this :lol::lol::lol:

#IfYouKnowWhatIMean

Share this post


Link to post
Share on other sites
Michno

I will update this thread if i find any news ^^

Share this post


Link to post
Share on other sites
Mr.Arrow

For what are you trying to achieve here? Can you be more explicit please.

Edited by Mr.Arrow

Share this post


Link to post
Share on other sites
Jestic

Can you post a part of the .MESH file? Can't do anything without it.

You're using a blend map ("lookup sampler") so it's crucial you actually exported any UV1 data, as well as VCOL1.

Share this post


Link to post
Share on other sites
Michno

I want blended textures. You know how the terrain uses several different textures blended ontop of each other. I would give an example but i'm at another pc currently.<

 

i'm working on converting maps from asetto corsa. and i want to shine those maps up. with blended textures. lights and so on.

The only thing left i need to figure out is the terrain shader. everything else seems to work.
well grass fur doesnt show up either actually.



I will see if i can use teamviewer to send it 2 min

Edited by Michno

Share this post


Link to post
Share on other sites
Michno

But in anycase Jestic. i've tried all of the shaders. and none of them seems to show anything besides the black thing.

And i've got 3 uv layers on this file.

The Vcol i expect to be vertex colors wich i also have.


https://ufile.io/9dpjmHere are the files. plus all of the other ones. sorry if it's too big

Share this post


Link to post
Share on other sites
Jestic

Which .odr\.mesh should I be looking at?

Edited by Jestic

Share this post


Link to post
Share on other sites
Michno

The asphalt one

Share this post


Link to post
Share on other sites
Michno

 

Version 43 31{    Type BoundComposite    AABBMin -47131.2187500 -47131.2187500 0.0000000    AABBMax 47131.2187500 47131.2187500 0.0000000    Radius 66653.6    Centroid 0.0000000 0.0000000 0.0000000    CG 0.0000000 0.0000000 2.7929466    VertexColors null    MaterialColors null    ChildTransforms 1    {
Version 165 31{    Locked false    Skinned false    BoneCount 0    Mask 255    Bounds    {        Aabb        {            Min -199.4165649 -199.4165649 0.0000000            Max 199.4165649 199.4165649 0.0000000        }    }    Geometries    {        Geometry        {            ShaderIndex 0            Flags -            VertexDeclaration N3ED26480            Indices 17496            {

 

These are the .bounds and .mesh

 

I see that vertex colors says none. but i did assign them in blender.

 

 

 

Edited by Michno

Share this post


Link to post
Share on other sites
Jestic

I suggest doing some more research on existing GTAV models that use the various terrain shaders, a lot of things are currrently missing\wrong. There's isn't any UV data, so that explans the look it has ingame. The red channel of the 2nd vertex color must be 0, currently it's 255, otherwise it'll be completely black.


.bound
.mesh

These are the .bounds and .mesh

I see that vertex colors says none. but i did assign them in blender.

Note that i'm only interested in the actual vertex data, not the header.

 

-44.3147888 -29.5431938 0.0000000 / 0.0000000 0.0000000 1.0000000 / 255 0 144 255 / 255 255 255 255 / 1.0000000 -1.0000000 1.0000000 -1.0000000 / 1.0000000 -1.0000000 / 1.0000000 0.0000000 0.0000000 1.0000000
110.7869797 147.7159729 0.0000000 / 0.0000000 0.0000000 1.0000000 / 255 0 250 255 / 255 255 255 255 / 0.0000000 0.0000000 0.0000000 0.0000000 / 0.0000000 0.0000000 / 1.0000000 0.0000000 0.0000000 1.0000000
59.0863876 125.5585709 0.0000000 / 0.0000000 0.0000000 1.0000000 / 255 0 250 255 / 255 255 255 255 / 1.0000000 -1.0000000 1.0000000 -1.0000000 / 1.0000000 -1.0000000 / 1.0000000 0.0000000 0.0000000 1.0000000
That tells me exactly how are your uv's and vertex colors are setup.

Share this post


Link to post
Share on other sites
Michno

How can there not be any UV data when i've got assigned textures that show ?

Just wondering :) ty for taking the time to answer


Also note that the mesh is just a test mesh for me to be able to test and export quickly



In anycase thanks for the help ^^ atleast this gives me some ideas of what to look for.




http://prntscr.com/f5oqm6

Just to show that it should have a UV map



Ahhh alright so the 0 in the mesh is basicly what the bottom texture will be applied to ?

Edited by Michno

Share this post


Link to post
Share on other sites
Jestic

How can there not be any UV data when i've got assigned textures that show ?

 

Just wondering :) ty for taking the time to answer

 

 

Also note that the mesh is just a test mesh for me to be able to test and export quickly

 

 

 

In anycase thanks for the help ^^ atleast this gives me some ideas of what to look for.

 

My mistake, I was looking at the bound mesh in 3ds max, which has no uvs, for obvious reasons.

 

So, you either need to use a LookupSampler and\or add some variation to your 2nd vertex color channel, start by changing the green channel so you can get 2 layers working at least.

 

The vertex alpha of the first vertex color channel is also crucial here, it controls wether to use the LookupSampler or the 2nd vertex color channel, 255 means it uses the vertex colors and 0 means it's using the LookupSampler (I suppose you could use 'grey' values, but I haven't tested it not have I seen it in any V mesh)

Share this post


Link to post
Share on other sites
Michno

Alright. thanks for the help, seems to be the same results so far tho.

Here are the new files if anyone is interested.

https://ufile.io/u0tne




Small update for anyone following this.


No changes so far i found out that blender has some issues with their vertex color so i tried using 3ds max for making the plane. it didint change anything sadly.
i am now trying to use a normal gta v model to use my own textures on. if i cant get that to work. i think it may have something to do with how i load the terrain in.

Edited by Michno

Share this post


Link to post
Share on other sites
Michno

Figured it out !

All that needed to be changed was the name of the UV channel ^^

it needs to be UVChannel_001



Seems i still need to change some stuff as this only fixed some of the issues ^^ but it's a step in the right direction

Edited by Michno

Share this post


Link to post
Share on other sites
nkjellman

Blended textures would be fantastic on custom maps. I hope you continue to make progress.

 

It will definitely make the maps look more natural, and less artificial.

Share this post


Link to post
Share on other sites
Michno

Still doing work. ^^ i got alot of it working. 3ds seems to be needed. and have 2 layers of vertex colors. one color and one illumination.

Share this post


Link to post
Share on other sites
Michno

Still trying to make progress. Not much is working tho. ripping my hair out here.

Any help will be greatly appricated.

Share this post


Link to post
Share on other sites
Michno

Got it working. Look in the top for more info ^^

Huge thanks to Luca for the help. without him i woudent have made it work :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.