HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Making threads to link to banned members content grants an automatic ban
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 Grass density mask not working?

View previous topic View next topic Go down 
AuthorMessage
ZombieKitteh

avatar

Game username : Zombie
Server : Mythical Realms (Co-Admin), Dawn of Eternity (Dev)
Female Posts : 37
Join date : 2013-01-26
Age : 26
Location : Snowdin & Alternia

PostSubject: Grass density mask not working?   Mon Apr 18, 2016 12:39 pm

I've struggled with this for two days and I'm at the end of my rope. I literally can't figure out why this mask isn't working for me. I've never had so much trouble with a grass density mask ever.

The map has a stone pathway texture in the terrain I want players to be able to see/follow easily. It ended up covered in grass, so I edited the grass mask,comparing it with the terrain mask so I could make sure the area the path is, is solid black. But no matter what I do there's still grass there? And not even a little bit, but a ton. I got so fed up I made the entire area a black blob and there's still grass where there shouldn't be.Literally the only thing hat got rid of it was making the entire mask black.. which got rid of grass everywhere, which I don't want.

I've tried:

- editing the grass mask.. alot
- looking at my coding
- trying both OpenGL and Direct3d
- starting over with a new grass mask

Help me please. D:





Coding:
 
Back to top Go down
http://zombiekitteh.deviantart.com
Witacha
3D Modeler
3D Modeler
avatar

Game username : Witacha
Server : Land Of The Wolves(Owner)
Female Posts : 1181
Join date : 2012-06-15
Age : 18
Location : France

PostSubject: Re: Grass density mask not working?   Mon Apr 18, 2016 12:42 pm

switch to direct or the other one
Back to top Go down
http://witacha-asukata.deviantart.com/
ZombieKitteh

avatar

Game username : Zombie
Server : Mythical Realms (Co-Admin), Dawn of Eternity (Dev)
Female Posts : 37
Join date : 2013-01-26
Age : 26
Location : Snowdin & Alternia

PostSubject: Re: Grass density mask not working?   Mon Apr 18, 2016 12:44 pm

Witacha wrote:
switch to direct or the other one

I've tried running the game in both OpenGL and Direct3d, both still have the same issue.
Back to top Go down
http://zombiekitteh.deviantart.com
Witacha
3D Modeler
3D Modeler
avatar

Game username : Witacha
Server : Land Of The Wolves(Owner)
Female Posts : 1181
Join date : 2012-06-15
Age : 18
Location : France

PostSubject: Re: Grass density mask not working?   Mon Apr 18, 2016 1:32 pm

Ah well i have a lot of issue with the grass density too and i don't know how to fix that xD
Back to top Go down
http://witacha-asukata.deviantart.com/
Slain Motionless
Watched
avatar

Game username : The-Hunted
Server : Aroessa
Female Posts : 426
Join date : 2014-05-09
Age : 17
Location : Coding

PostSubject: Re: Grass density mask not working?   Mon Apr 18, 2016 7:52 pm

Is your density set to black where you don't want grass, white where you do?
Coding should be something similar to this:
[Grass]
grass5
grassdensitymapRed.png
grass_tex.jpg

Also..did you edit the grass in your compile?
Code looks something like this:
Ctrl + F (search for "l->setDensity")
l->setDensity(0.0005f)

Never go above 0.1. That'll be alot more grass then you can handle.

Also gonna move this to the 'Support' board since it's more of a support question.
Back to top Go down
http://aroessa.proboards.com
ZombieKitteh

avatar

Game username : Zombie
Server : Mythical Realms (Co-Admin), Dawn of Eternity (Dev)
Female Posts : 37
Join date : 2013-01-26
Age : 26
Location : Snowdin & Alternia

PostSubject: Re: Grass density mask not working?   Mon Apr 18, 2016 8:04 pm

Witacha wrote:
Ah well i have a lot of issue with the grass density too and i don't know how to fix that xD

Well at least it's not just me then that has struggles with it. xD


Slain wrote:
Is your density set to black where you don't want grass, white where you do?
Coding should be something similar to this:
[Grass]
grass5
grassdensitymapRed.png
grass_tex.jpg

Also..did you edit the grass in your compile?
Code looks something like this:
Ctrl + F (search for "l->setDensity")
l->setDensity(0.0005f)

Never go above 0.1. That'll be alot more grass then you can handle.

Also gonna move this to the 'Support' board since it's more of a support question.

Grass density mask is set up like that, black where I don't want grass, white where I do. My .world coding looks similar (I shared it above); at least I think so anyways.

I don't actually mess with the coding or compile of the server, so I'm uncertain about that. I'll have to ask.. that might be the problem actually, I never really thought about that being an issue.

And sorry for putting it in the wrong area. I was going to go to support first, but it said how-to questions should be placed in their respected areas.. Though I suppose this isn't a how-to question, but more seeking help. xD So thank you for moving it properly.

Edit:

It's set to 0.05 in the coding. So I don't think that's the issue either.
Back to top Go down
http://zombiekitteh.deviantart.com
Slain Motionless
Watched
avatar

Game username : The-Hunted
Server : Aroessa
Female Posts : 426
Join date : 2014-05-09
Age : 17
Location : Coding

PostSubject: Re: Grass density mask not working?   Wed Apr 20, 2016 9:19 pm

It might be your grass mask.
Have you tried remaking it without the randomness of the lines?

(Not saying it's made wrong, but it might be whats wrong. Never saw one like dat.)
Back to top Go down
http://aroessa.proboards.com
ZombieKitteh

avatar

Game username : Zombie
Server : Mythical Realms (Co-Admin), Dawn of Eternity (Dev)
Female Posts : 37
Join date : 2013-01-26
Age : 26
Location : Snowdin & Alternia

PostSubject: Re: Grass density mask not working?   Wed Apr 20, 2016 11:30 pm

Yeah, I've tried redoing it 100% a few times, making it solid white with the only black area being the path, etc.. I think the game just hates me. x-x

I may just give up and smack a sign in game that says something like "Warning, we have a grass overgrowth problem" aha
Back to top Go down
http://zombiekitteh.deviantart.com
Nakti
®
®
avatar

Game username : Nakti
Server : World of Pandora
Female Posts : 160
Join date : 2012-08-24
Age : 21
Location : black celebration

PostSubject: Re: Grass density mask not working?   Thu Apr 21, 2016 3:47 pm

Did you try to set you terrain height map as grass density map?
Back to top Go down
 
Grass density mask not working?
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Keeping I.T. Open :: SUPPORT :: Support-
Jump to: