Jump to content

[1.9.x] Textures Unlimited - PBR-Shader, Texture Set, and Model Loading API


Shadowmage

Recommended Posts

Hello, I'm trying to create my own TU configs for a mod but I'm having trouble with Texture switch.

Spoiler

@PART[TyphoonCockpit]:NEEDS[TexturesUnlimited]
{
    @MODULE[KSPTextureSwitch],0
    {        
        textureSet = recolor
    }
}
+KSP_TEXTURE_SET[MWNN_Stock_Paint]:NEEDS[TexturesUnlimited]
{
    @name = recolor
    @MATERIAL
    {
        
        vector = _DiffuseNorm,0.7355,0.7355,0.7355
        vector = _MetalNorm,0.48,0.48,0.48
        vector = _SmoothnessNorm,0.485,0.485,0.485
        
        texture = _MainTex,AirplanePlus/Parts/Command/fighterinlinecockpit/fighterinlinetex
        texture = _MaskTex,TURD/TU_APP_Recolour/Command/FighterInlineCockpit/180_fighterinlinetex_Paint
    }
}

Spoiler

@PART[TyphoonCockpit]:NEEDS[TexturesUnlimited]
{
    MODULE
    {        
        name = KSPTextureSwitch
        sectionName = Appearance
        currentTextureSet = DefaultTexture
        textureSet = DefaultTexture
    }
    %MODULE[SSTURecolorGUI]
    {
        %name = SSTURecolorGUI
    }
}
+KSP_TEXTURE_SET[Stock_Default]:NEEDS[TexturesUnlimited]
{
    @name = DefaultTexture
    @MATERIAL
    {        
        texture = _MainTex,AviationCockpits\Command\Typhoon_texture
    }
}

Top is Recolour, bottom is default. I am using placeholder textures for Recolour.

Link to comment
Share on other sites

  • 5 months later...

Been a couple.

 

It's either on the blizzy toolbar after adding through toolbar controller GUI 

I think it makes custom .cfg based on what you do in the GUI

Or it's the one you have to find the .cfg / write it yourself. I think there a toolbar.

 

 

IIRC

 

Look for the Icon for Blizzy (Yellow Arrow)

Right Click

Add Button

Select the icon for TU

Click the TU button the the Toolbar

 

 

Link to comment
Share on other sites

  • 1 month later...
On 5/30/2023 at 8:26 PM, NaviG said:

Hello, found a visual bug with the new Eve clouds

 

Why does this happen?

CLOUDS
As u can see, there are not clouds in the reflections at ground altitude. Ground elements are reflected correctly.
3aNLk6s.png
85.000m
OUVca5G.png
120.000m

7YVFYNK.png

Noticed that in this distance, kerbin does a fast flickering when moving camera, which is possible to be related.
160.000m? This last less than a seconds (i think it's reloading kerbin textures, but not sure why)
lmWywon.png
159.993m (camera near planet)
CDu0ok3.png
159.993m (camera far from planet, no reflections)

Q9ZOZuY.png

200.000m (all good)

chLfSNS.png

 

Its the same behaviour that you have on helmets... the problem is that the game updates the 3D layer into 2D layer and reflection only works with 2D layer, but i'm guessing, im noob. i'm using chrome colour on TURD. Also the update reflection of the helmet is much slower, i did changes on @default.cfg (reflection resolution and interval) with no luck, any help?

Can confirm, having the same problem. Maybe you can ask @blackrack?

Link to comment
Share on other sites

  • 4 weeks later...

I'm trying to create a basic patch to give a metallic aspect to most of my modded parts, however I am unsure how to handle multiple variants, or how to select one specific variant to make it metallic. I'm talking about the stock variant system, the one that was introduced with Making History, not B9 part switch or some other mod. Any clues would be greatly appreciated. Thanks!

Link to comment
Share on other sites

  • 2 weeks later...

Is there a way to perform operations on certain values of texture ? currently i'm trying to make a simple stock replacement config using the TU_STOCK_SPEC keyword, however most "painted" parts end up having smoothing at basically 0. I'd like to make it so smoothness can't go below a certain value so everything has a little bit of shine

Link to comment
Share on other sites

  • 1 month later...

i feel dumb asking but why are the b9 procedural wings only coming up with this brushed metal looking texture?  is there a way i can make it look not like that?

Link to comment
Share on other sites

  • 3 weeks later...
On 3/12/2024 at 9:30 PM, hikerchick29 said:

I feel like I'm missing something, how do I install this?  I installed it and the recolor through ckan, but I don't have any available in game options.

i have same issue. Says "texture not found" when i try and recoulour stuff, and my recolouring gui is just blank and wont close. any ideas? ive installed stock recoulur, textures unlimited, and have module manager. Plus i have the reflections thing turned on. any ideas? thanks

Link to comment
Share on other sites

Im using the B9 Procedual wings (fork), and when i install this mod it forces the wings to be shiny and stuff, is there any way to revert back to the normal stock style without deleting TU?

nvm i fixed it

Edited by TheHelicopterKid
fixed issue
Link to comment
Share on other sites

  • 1 month later...
On 8/4/2024 at 10:03 AM, goba said:

i feel dumb asking but why are the b9 procedural wings only coming up with this brushed metal looking texture?  is there a way i can make it look not like that?

 

Edited by Yiannis
Wrong
Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...