Author Topic: No snow on semi transparant plants  (Read 916 times)

0 Members and 1 Guest are viewing this topic.

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
No snow on semi transparant plants
« on: April 08, 2017, 02:17:54 PM »
Hi folks

I am in the process of building a smaller wooden Herbalist building by request.

The fbx is all done and with the help of RedKetchup it won't even crash anymore, Thanks again Red :)

I did not make the AO maps yet and use so far the pure white ones,

I get snow everywhere where it should but not on the plants I have included in the mod.
The plants have there own Transparent Texture and are transparent in game, but gather no snow.

If I look at Luke's Herbalist in game the plants there get some snow on them. He uses a OpaqueSnowAlphaTestMaterial.rsc file so I copied that file over to my materials folder (Maybe not even needed to do this) and referenced to that file, but still no snow in the winter.  :(

It most be possible because Luke's Herbalist plants have some snow on them.

What am I missing?
My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7273
Re: No snow on semi transparant plants
« Reply #1 on: April 08, 2017, 02:52:21 PM »
doesnt your plants disappear in winters ?
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Re: No snow on semi transparant plants
« Reply #2 on: April 08, 2017, 03:03:22 PM »
Nope. They are just there.

They are just part of building though, so not act like a crop or herb, just as in Luke's Herbalist building.

If you place Luke's Vanilla Herbalist in the game you see his plants beside the building.
They get some snow in the winter but not disappear (I test with Debug if that makes a difference I do not know)
My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7273
Re: No snow on semi transparant plants
« Reply #3 on: April 08, 2017, 03:14:54 PM »
bah personally i get snow with

Code: [Select]
MaterialInstance resource
{
Material _material = "Material\OpaqueSnow\OpaqueSnowAlphaTestMaterial.rsc";
Texture _textures
[
{
String _name = "diffuse";
ImageBuffer _texture = "Models\MaterialInstance\RK3DFlower4Texture.rsc";
}
{
String _name = "snow";
ImageBuffer _texture = "Terrain\TerrainSnowTexture.rsc";
}
]
Constant _constants
[
]
}

do you have the other lines ?
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Re: No snow on semi transparant plants
« Reply #4 on: April 08, 2017, 03:41:46 PM »
I did it as your Hollywood Tutorial

So made that customized CropMaterial.

I shall test now with your code.
My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Re: No snow on semi transparant plants
« Reply #5 on: April 08, 2017, 03:50:10 PM »
You did it again Red :)

With your code it works :)

So the custom Cropmaterial from your tutorial is not needed I guess as no reference are now made to it?
My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7273
Re: No snow on semi transparant plants
« Reply #6 on: April 08, 2017, 03:58:32 PM »
You did it again Red :)

With your code it works :)

So the custom Cropmaterial from your tutorial is not needed I guess as no reference are now made to it?

back in time i only knew that custom material was existing...
i never heard back in time of all the 20 other material lol like billboard and ect ^^
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline Necora

  • Modders
  • Trader
  • *****
  • Posts: 477
Re: No snow on semi transparant plants
« Reply #7 on: April 09, 2017, 04:47:29 AM »
I'm a bit late and I know Red already answered, but it seems the 'FoliageMaterial' also produces snow on semi-transparent textures, if you want them to move in the wind. This is what I have for the White Pine, Spruce, and Fir trees which are all very snowy in winter.

Code: [Select]
MaterialInstance resource
{
Material _material = "Material\Foliage\FoliageMaterial.rsc";
Texture _textures
[
{
String _name = "diffuse";
ImageBuffer _texture = "Models\MaterialInstance\FirBranchTexture.rsc";
}
{
String _name = "snow";
ImageBuffer _texture = "Terrain\TerrainSnowTexture.rsc";
}
]
}

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7273
Re: No snow on semi transparant plants
« Reply #8 on: April 09, 2017, 10:54:22 AM »
if you dont set the alpha channel 3 ... it doesnt move with the wind :)
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Re: No snow on semi transparant plants
« Reply #9 on: April 09, 2017, 01:08:49 PM »
Quote
if you don't set the alpha channel 3 ... it doesn't move with the wind :)

Where and how? In Photoshop or 3s Max?

EDIT: I guess in 3ds Max but how and does it work with flowers technically attached to the building?
Luke's herbs on his Herbalist don't move either I believe, that's why I ask.
« Last Edit: April 09, 2017, 01:13:37 PM by embx61 »
My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Re: No snow on semi transparant plants
« Reply #10 on: April 09, 2017, 01:50:54 PM »
@RedKetchup

Red, I read a while ago that we could not see transparency in 3ds Max.

I found a way :)

When you have your material Editor open select a material and assign a Alpha Texture to it or if you have already a material/diffuse texture select the material and open the maps screen

Now add that same texture to the Opacity slot in the maps screen and set to Image Alpha and Mono channel Output to Alpha.

All left to do click in Material Editor the Material Menu to open that menu and go to: Show Materials in Viewport as select on the fly out menu: Shaded Materials with Maps.

Voila instant transparency inside Max :)

If your model is ready for production I would just clear the Opacity texture in the maps screen.

HTH :)
My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline kid1293

  • Modders
  • Banished Expert
  • *****
  • Posts: 1846
  • Never confuse movement with progress
Re: No snow on semi transparant plants
« Reply #11 on: April 09, 2017, 01:56:51 PM »
I guess RK meant 3rd UV channel.
1 UV
2 AO
3 Billboard or foliage

In Blender I just select the parts of the mesh I want to move and unwrap in new UV map.
Then move those UV's with center over 0,0 and they will move in game.
The other parts are kept at 0 size. Then I write the code for foliage material.
It must be in 3rd channel. Make a fake AO channel if there isn't any.

Iguess this wasn't clear. :)
Ask again if I should elaborate.
Ohh. I just assumed you are using Blender. You're not, are you?

Offline embx61

  • Modders
  • Banished Expert
  • *****
  • Posts: 1290
  • You are always on my mind, Forever in my heart
Re: No snow on semi transparant plants
« Reply #12 on: April 09, 2017, 02:20:29 PM »
Thanks Kid

No I am using 3ds Max.

I shall play with it a bit.

My beloved Kathy
As you were you will always be
Treasured forever in my memory

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7273
Re: No snow on semi transparant plants
« Reply #13 on: April 09, 2017, 02:33:45 PM »
@RedKetchup

Red, I read a while ago that we could not see transparency in 3ds Max.

I found a way :)

When you have your material Editor open select a material and assign a Alpha Texture to it or if you have already a material/diffuse texture select the material and open the maps screen

Now add that same texture to the Opacity slot in the maps screen and set to Image Alpha and Mono channel Output to Alpha.

All left to do click in Material Editor the Material Menu to open that menu and go to: Show Materials in Viewport as select on the fly out menu: Shaded Materials with Maps.

Voila instant transparency inside Max :)

If your model is ready for production I would just clear the Opacity texture in the maps screen.

HTH :)

will it play when you will compile or in game ? because if i need to delete after before export the final .fbx.... i prefer not. i never acted good when was time to put something and delete it after :P
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.

Offline RedKetchup

  • Champion
  • Banished Expert
  • *****
  • Posts: 7273
Re: No snow on semi transparant plants
« Reply #14 on: April 09, 2017, 02:34:11 PM »
and yeah i meant the 3rd UV
> > > Support Mods Creation developments with Paypal Donations < < <
Click here to PayPal Donate.