YouGroove Posted February 21, 2015 Share Posted February 21, 2015 hi I choose a texture on terrain, and in the editor it display visible bright dots. Textures on terrain should be equal as texture used. Stop toying and make games Link to comment Share on other sites More sharing options...
YouGroove Posted February 21, 2015 Author Share Posted February 21, 2015 Unity test with same texture : there is not dots problem The texture can be found here to test : http://www.cgtextures.com/texview.php?id=38694&PHPSESSID=spkcqhbh0pof34svoaff2acbt4 Stop toying and make games Link to comment Share on other sites More sharing options...
macklebee Posted February 21, 2015 Share Posted February 21, 2015 creating and adding a normal map to the layer makes those go away 1 Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
Josh Posted February 21, 2015 Share Posted February 21, 2015 Can't look at this without having the actual texture. My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Josh Posted February 21, 2015 Share Posted February 21, 2015 Okay, the problem was the auto-generated normal map that gets created if no normal texture is present was getting the last pixel skipped when setting the pixel data: //Create default normal texture_defaultnormal = Texture::Create(64,64,Texture::RGBA);//Texture::Load("Materials/Common/normal.tex"); Bank* data = Bank::Create(64*64*4); for (int i = 0; i < data->GetSize()/4-1; ++i) // The -1 is the culprit!!! { data->PokeByte(i*4+0, 127); data->PokeByte(i*4+1, 127); data->PokeByte(i*4+2, 255); data->PokeByte(i*4+3, 255); } texture_defaultnormal->SetPixels(data->buf); data->Release(); texture_defaultnormal->BuildMipmaps(); 1 My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts