Skip to main content
GameDev.net gamedev.net
🔒 Locked

Blending issues

Started by anist Sep 14, 2005 at 9:19 PM 5 replies 1k views
Original Post
anist
anist
ok, this is driving me crazy over the past few nights so maybe someone can help with my block. i have a .obj loader, it works well in other projects but the current one, some groups and entire models do not display when blending is enabled. Not just some functions, but every function causes this. Enabling blending is the only thing that causes it. anyone want to throw something out here?
As your leader, I encourage you from time to time, and always in a respectful manner, to question my logic. If you're unconvinced that a particular plan of action I've decided is the wisest, tell me so, but allow me to convince you and I promise you right here and now, no subject will ever be taboo. Except, of course, the subject that was just under discussion. The price you pay for bringing up either my Chinese or American heritage as a negative is - I collect your f***ing head.
HopeDagger
HopeDagger
Sounds somewhere in the realm of 'peculiar'. What blending operation is being used at the time? Have you tried to decipher the problem by attempting different blending operations to see if one in particular is bringing on the not-showing-up behavior?

Perhaps even poke some code our way to see if there's a subtle mistake in the code that myself (or ideally someone more experienced than I!) can pick out and bring your code to render-ition. ;)
anist
anist
Quote:
Original post by HopeDagger
Sounds somewhere in the realm of 'peculiar'.

You can say that again. Zoinks!
Quote:

What blending operation is being used at the time?

Like i said I tried several different ones. One of the models has a group that actually shows, and blends correctly based on the operation, but the rest of it's groups and the other models simply do not show. They DO however obscure objects behind them.
Quote:

...
Perhaps even poke some code our way to see if there's a subtle mistake in the code that myself (or ideally someone more experienced than I!) can pick out and bring your code to render-ition. ;)


the only things that seem applicable are my pixel format and render loop. I'll post them later.

As your leader, I encourage you from time to time, and always in a respectful manner, to question my logic. If you're unconvinced that a particular plan of action I've decided is the wisest, tell me so, but allow me to convince you and I promise you right here and now, no subject will ever be taboo. Except, of course, the subject that was just under discussion. The price you pay for bringing up either my Chinese or American heritage as a negative is - I collect your f***ing head.
frca
frca
Do you sort the polys?
typek
silvermace
silvermace
disable: culling, depth-test and depthmask.
enable blending then render a few frames and post a screenshot. [smile]
anist
anist
here's the regular:



and with blending on, depth mask to false, and culling disabled:

As your leader, I encourage you from time to time, and always in a respectful manner, to question my logic. If you're unconvinced that a particular plan of action I've decided is the wisest, tell me so, but allow me to convince you and I promise you right here and now, no subject will ever be taboo. Except, of course, the subject that was just under discussion. The price you pay for bringing up either my Chinese or American heritage as a negative is - I collect your f***ing head.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.