HomePortalFAQSearchMemberlistUsergroupsRegisterLog in
Meet the new KITO admins & hear their plans here.
You can use google search to find threads and posts here now. Example

Share | 
 

 [Solved] Discoloured Grass? Help Needed!

View previous topic View next topic Go down 
AuthorMessage
ShadoWolfozo

avatar

Game username : ShadoWolfozo
Server : GROWL: Spirits
Male Posts : 875
Join date : 2012-01-22
Age : 22
Location : Australia

PostSubject: [Solved] Discoloured Grass? Help Needed!   Sat Apr 18, 2015 3:30 pm

EDIT: NEVERMIND I figured out what was wrong ;P

For users who are also experiencing this problem, if you are not using the alternatives greenGrass / yellowGrass and are using the standard 'grass' one to blend in with the terrain, you must be VERY CAREFUL which texture you use to colour the grass

The grass takes shades and colours from just pixels in the texture you provide, so if there is blue or green pixels in your texture but they're not obvious... ogre will make them obvious in your grass!

Choose a texture that doesn't have funny colours and you're good to go!

Remember only Direct3D9 will render your grass correctly aligned to the map!
yay to figuring stuff out on your own ;D












Well the image says it all.


The grass is supposed to be shades of yellow, such as where the player is standing. However it is black in many places and even bright green and red (in the red circles) at odd spots. What on earth is going on and how do I fix it?


World Material File
Code:
[Grass]
grass
SavGrassDensity.png
yellowGrass.png


Grass Material File
Code:
material yellowGrass
{
   transparency_casts_shadows off
   receive_shadows off
   technique
   {
      pass
      {
         //lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         alpha_rejection greater_equal 128
         
         texture_unit
         {
            texture yellowGrass.png
         }
      }
   }
}


Grass density and size have been slightly modified (if not obvious enough).


Rendering Subsystem: Direct3D9 (as it fails to align to the map in OpenGL)
Rendering Device: Nvidia GeForce GT 620
Video Mode: 1280 x 800 @ 32-bit colour




If you need any other information please say.
Back to top Go down
Hamilton

avatar

Game username : Hamilton
Server : Myatar Legends // Dragon's Den
Female Posts : 380
Join date : 2011-10-20
Age : 31
Location : everywhere

PostSubject: Re: [Solved] Discoloured Grass? Help Needed!   Sat Apr 18, 2015 3:45 pm

It kind of appears that...the grass is taking color pixel by pixel instead of whole image-wise. Like the image is laid flat over the map, and then each pixel of the image springs up grass in that particular pixels color. oIT had similar grass color weirdness but the high density here makes it way more noticeable. I would suggest changing the image that is providing color into one that is a single color. No transparencies (which seems to be where the black grass comes form), just plain yellow (green or whatever).

lol typed too slow it seems XD glad to see it's resolved anyways.
Back to top Go down
ShadoWolfozo

avatar

Game username : ShadoWolfozo
Server : GROWL: Spirits
Male Posts : 875
Join date : 2012-01-22
Age : 22
Location : Australia

PostSubject: Re: [Solved] Discoloured Grass? Help Needed!   Sat Apr 18, 2015 4:11 pm

Haha yeah, couple minutes after I posted it, I had a thought that maybe it was something strange with the texture... and sure enough, the low quality texture it was using had random greens and reds and blues :/

Thanks for taking the time to offer help though Smile Much appreciated!
Back to top Go down
Sponsored content




PostSubject: Re: [Solved] Discoloured Grass? Help Needed!   

Back to top Go down
 
[Solved] Discoloured Grass? Help Needed!
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 :: Solved Support Issues-
Jump to: