Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Problems with textures/ghost object

Author
Message
Non Sequitur M
17
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 19th Jan 2013 21:22
Hey, guys. It's been a reeeeeeaaaaaally long time since I've been on the forums. I'm working on a new project, and right now I'm trying to get the sky spheres to work right. First let me explain how I have it set up. I have a sky sphere(obviously), which is the blue sky for the atmoshpere, then inside of that(like inside the sphere facing the player), I have a plane with an image of the sun on it. Then inside that, I have a sphere for clouds, that way, I can rotate the sphere to get moving clouds. The reason I separated the cloud sphere from the sky sphere, is so anything that can be seen high in the atmosphere will stay stationary while the clouds can rotate freely.

Anyway, now that you know what is what, here is my problem. If you look at the attached image, you see that there are parts amongst the clouds that are see through. The problem is, these are supposed to be darker in color to add to the depth of the clouds. The reason is, I had to use black as the transparent on the png image, as true alpha values aren't read from the png apparently and leave the areas that are transparent black. Even ghost object doesn't read true alpha. I've tried png, bmp(with a pink background), tga... I've tried all the solutions I could find on the forums... Nothing has worked.

Ok, let me boil my question down here. Is there a way to have a texture use the ACTUAL alpha values stored in the image, so that the darker parts of the cloud aren't transparent, and anything not cloud is?

Thanks in advance,
Amo.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 19th Jan 2013 21:55


TheComet

http://blankflankstudios.tumblr.com/
Quote: ""
- Randomness 128
Non Sequitur M
17
Years of Service
User Offline
Joined: 28th Oct 2008
Location: Where am I!? Where are YOU?
Posted: 20th Jan 2013 00:48
Thanks man. I tinkered with it and got this(see attached). I knew it was something simple I was overlooking or forgetting! Lol.

-Amo.

Login to post a reply

Server time is: 2026-07-07 02:39:04
Your offset time is: 2026-07-07 02:39:04