Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, TipmyPip, tomaslolo), 788 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Ahhh! WTF?! Alpha problem... #279880
07/19/09 19:20
07/19/09 19:20
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline OP
Member
Jaeger  Offline OP
Member
J

Joined: May 2009
Posts: 258
Chicago


^ oh no!!! frown

I'm using the nm + spec shader form the Wiki on my tree I just got done with. But for some reason, I'm having this weird problem with my alpha channel on the needles. When I move around, it's "selectively transparent", and seems to make parts transparent at random. Hideous! Lol!

I've used this same shader for other things before, without this problem. Take a look at this leaf sprite I made for dead leaves on the ground, using the same shader in the same manner:



See? Perfect... And I did it exactly the same for both mdls. I even get the same problem if I make an alpha map (bmp) and add it to skin settings. So I'm utterly confused and frustrated. Any ideas?

Re: Ahhh! WTF?! Alpha problem... [Re: Jaeger] #279884
07/19/09 19:57
07/19/09 19:57
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
hmm, well i modified that shader last and I'm not sure what I did with alpha. I know in the past I've taken it and added alpha support but I'm not didn't think i included it in the uploaded version. but then again if you did it with the leaves that means i obviously did.... hmmm I really have no idea why alpha would be working for one and not the other.

Re: Ahhh! WTF?! Alpha problem... [Re: lostclimate] #279919
07/20/09 01:36
07/20/09 01:36
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline OP
Member
Jaeger  Offline OP
Member
J

Joined: May 2009
Posts: 258
Chicago
After inventing thousands of new curse words, this is what I've got:



Still not quite what I'm looking for, but now it's actually workable.

But it's rather unbelievable what I had to do to get here. I had to load all of the skins in the correct order: diffuse, normal, spec. Then I had to delete the diffuse skins, leaving skins: 2,3,5,6,8, and 9. Then I had to select skin 2, and reload and set up skin 1, so 1 actually came after 2. I had to do the same for all skin sets. Then I applied them, and rendered. And that's what I got. I have NO clue why you have to do this, but it's the only way that worked. It's rather ridiculous, lol.

The picture is too small to do justice to it. The textures are real photos, and it looks really good already. I'm not even close to finished. Still lots of tweaking needed on normal and spec maps.

Last edited by Jaeger; 07/20/09 01:38.
Re: Ahhh! WTF?! Alpha problem... [Re: Jaeger] #279925
07/20/09 02:22
07/20/09 02:22
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline OP
Member
Jaeger  Offline OP
Member
J

Joined: May 2009
Posts: 258
Chicago
Ok, here's a close up shot of how the needles look, to give you a better idea.



Does this look good to you guys? Honestly...

In case you're wondering, this is just a level built of primitives to test textures and shaders on. Not anything for a game. So don't make fun of my ghetto castle, lol.

Last edited by Jaeger; 07/20/09 02:25.
Re: Ahhh! WTF?! Alpha problem... [Re: Jaeger] #279926
07/20/09 02:33
07/20/09 02:33
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline OP
Member
Jaeger  Offline OP
Member
J

Joined: May 2009
Posts: 258
Chicago
Hmmm... I'm just not convinced this looks good from farther away. The needles kind of look solid, like green triangles until you get closer.



Without the shader, it WOULD look great, except for that weird semi-transparency problem you get with 32bit tga. Why does that happen? Why doesn't the engine just "listen" to what my alpha channel tells it, rather than making the whole thing partially "see-through"? If there was a way around that, I think this tree could look really awesome.

Re: Ahhh! WTF?! Alpha problem... [Re: Jaeger] #279928
07/20/09 03:01
07/20/09 03:01
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
well that blur your getting is because your file contains what are called mipmaps, basically lower resolution versions of your image to render from farther away similarly to the way lod works for models.

Re: Ahhh! WTF?! Alpha problem... [Re: lostclimate] #279930
07/20/09 03:06
07/20/09 03:06
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline OP
Member
Jaeger  Offline OP
Member
J

Joined: May 2009
Posts: 258
Chicago
Originally Posted By: lostclimate
well that blur your getting is because your file contains what are called mipmaps, basically lower resolution versions of your image to render from farther away similarly to the way lod works for models.


Ahh... You're right. Didn't think about that. Would be rather inefficient to be full res further away. Thanks for the reminder.

So, what do you think of it anyway?

Re: Ahhh! WTF?! Alpha problem... [Re: Jaeger] #279932
07/20/09 03:10
07/20/09 03:10
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
looks fine, i'd suggest putting a little more variation of leaf type in there so the focus isnt completly on the pine needs (unrealistic, but it will take the focus off of the fan shaped things a little more at a distance)

Re: Ahhh! WTF?! Alpha problem... [Re: lostclimate] #279934
07/20/09 03:21
07/20/09 03:21
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
The level looks a bit flat, are there any lights in there?


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Ahhh! WTF?! Alpha problem... [Re: Nowherebrain] #279935
07/20/09 03:26
07/20/09 03:26
Joined: May 2009
Posts: 258
Chicago
J
Jaeger Offline OP
Member
Jaeger  Offline OP
Member
J

Joined: May 2009
Posts: 258
Chicago
The level isn't meant to be anything special, and isn't even for a game. Just a little testing zone. I'm only concerned with the tree. smile

Thanks lostclimate, but what other leaf types could I put on a pine tree other than pine needles? It's a southern pine, as found here in the southern US. That's pretty much how they look. I made all the textures from real pics. I built the actual tree based on the hundreds of them I see every day, lol.

Page 1 of 2 1 2

Moderated by  Blink, Hummel, Superku 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1