I am searching a way to apply this texture (http://www.kuffner.org/james/gallery/raytracing/earth_from_space/earth_clouds.jpg) to a sphere, to make some atmosphere... the problem is that I can't mask totally the black part... how can I?
Clouds
Blitz3D Forums/Blitz3D Programming/Clouds I believe you should convert it to a .png, and use textureflag 2 when loading the image, like this: LoadTexture("clouds", 2)
http://www.i-imagehost.com/uploads/6b37672696.png
http://www.i-imagehost.com/uploads/6b37672696.png
... or use Gimp before use
Take a look to the Filters->Colors->Map->Color Exchange
or from Layer->Transparency->Color to Alpha
Take a look to the Filters->Colors->Map->Color Exchange
or from Layer->Transparency->Color to Alpha
earth=CreateSphere(32,1)
PositionEntity earth,0,0,0
earthatmos=LoadTexture("earth_clouds.png",2) ; using b32's PNG
EntityTexture earth,earthatmos
Quick code bit =)
PositionEntity earth,0,0,0
earthatmos=LoadTexture("earth_clouds.png",2) ; using b32's PNG
EntityTexture earth,earthatmos
Quick code bit =)
...I feel like an idiot... maybe I am an idot... I am sorry for the silly question I have done...
Don't worry about it man, I didn't learn how to do that until 4 weeks ago, and I've had B3D for 2-3 years now!
Of course I was focusing on other things while I've had it, but that's a different story.
Of course I was focusing on other things while I've had it, but that's a different story.