[DirectX8] Texture & blending
[DirectX8] Texture & blending
[DirectX8] Texture & blending
[DirectX8] Texture & blending
[DirectX8] Texture & blending
[DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending
[DirectX8] Texture & blending [DirectX8] Texture & blending
[DirectX8] Texture & blending
Go Back  Xtreme Visual Basic Talk > > > > [DirectX8] Texture & blending


Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2012, 09:40 AM
testt testt is offline
Newcomer
 
Join Date: Sep 2008
Posts: 3
Default [DirectX8] Texture & blending


Hi all, (and sorry if my english is bad).

To explain my problem, I create textures in format A8R8G8B8 (32bits) and filled this with preloaded textures (png).

The problem is that the generated texture doesn't display a correct rendering. For example, if I draw something with transparent pixels, DirectX blending what I draw with the background color (transparent black) and so the texture rendered is darker than it should be.

I can't desactivate alphablending. So I tried different operation of blending (also srcblend and destblend) and I haven't found solutions..

You can download here the source who reproduce my problem and see here an image of the problem.

Thank for any help.


Edit : You can see here exactly le same problem, but he hasn't found a real solution.

Last edited by testt; 06-22-2012 at 02:16 PM.
Reply With Quote
  #2  
Old 06-22-2012, 08:04 PM
hDC_0[DirectX8] Texture & blending hDC_0 is offline
Contributor

* Expert *
 
Join Date: Feb 2004
Posts: 560
Default jsmallberry solution

Quote:
Originally Posted by testt
You can see here exactly le same problem, but he hasn't found a real solution.
What do you mean be "real solution"?

Reading through the jsmallberry thread you linked to it definitely appears that jsmallberry solved the issue
(at least the final post in the thread was entitled "RESOLVED").

So the question is what happened when you tried to apply jsmallberry's solution
(and if it didn't work, did it change the symptoms at all)?

It also might be helpful if you uploaded the project you are working with...perhaps
there is a code issue that can be resolved but we can't help in that area
if we have no idea what code you are using (if you are using jsmallberry's code,
please let us know..perhaps you are using this texture blending code).

Last edited by hDC_0; 06-22-2012 at 08:11 PM.
Reply With Quote
  #3  
Old 06-23-2012, 05:44 AM
testt testt is offline
Newcomer
 
Join Date: Sep 2008
Posts: 3
Default

The solution of jsmallberry isn't a real solution because he clear the backbuffer with a white transparent and no more with a black transparent.
He use a only texture (not superposition of multiple texture) and completely black, so for him the "solution" works until he don't use colored texture.

I use my own sources and not that of jsmalberry. I suggest downloading them on my first message.
It's a source that I specially programmed to reproduce the problem.
Reply With Quote
Reply

Tags
blend, dx8, render, texture, transparency


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
[DirectX8] Texture & blending
[DirectX8] Texture & blending
[DirectX8] Texture & blending [DirectX8] Texture & blending
[DirectX8] Texture & blending
[DirectX8] Texture & blending
[DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending [DirectX8] Texture & blending
[DirectX8] Texture & blending
[DirectX8] Texture & blending
 
[DirectX8] Texture & blending
[DirectX8] Texture & blending
 
-->