Clouds

Blitz3D Forums/Blitz3D Programming/Clouds

ingenium(Posted 2007) [#1]
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?


b32(Posted 2007) [#2]
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


Moraldi(Posted 2007) [#3]
... or use Gimp before use
Take a look to the Filters->Colors->Map->Color Exchange
or from Layer->Transparency->Color to Alpha


Chad(Posted 2007) [#4]
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 =)


ingenium(Posted 2007) [#5]
...I feel like an idiot... maybe I am an idot... I am sorry for the silly question I have done...


Chad(Posted 2007) [#6]
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.