Blending problems / options?
Blending problems / options?
Blending problems / options?
Blending problems / options?
Blending problems / options?
Blending problems / options? Blending problems / options? Blending problems / options? Blending problems / options? Blending problems / options? Blending problems / options? Blending problems / options? Blending problems / options?
Blending problems / options? Blending problems / options?
Blending problems / options?
Go Back  Xtreme Visual Basic Talk > > > > Blending problems / options?


Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2006, 04:25 PM
Flambard Flambard is offline
Newcomer
 
Join Date: Oct 2004
Posts: 22
Default Blending problems / options?


Hi there guys!

I'm writing a particle engine for my Direct3d 2d-game, and encountered a serious problem:

It seems, that I can't draw pointSprites AFTER I drew the regular sprites. Is that really so? I tried hardly.

So I decided to draw them manualy, using my sprite engine. Everything works fine, exept the particle blending.

I'm using particle.bmp (found in some1's else project) to draw a particle. As you can see it has some dark borders, which overlapse each other when 2 particles are near (see screenshot for better explanation).

The regular color-keying is working, but it seems, that I need some irregular one? I've tried messing with textureloader filters, but with no luck. What should I do?
Attached Images
File Type: jpg patric2.JPG (28.2 KB, 21 views)

Last edited by Flambard; 03-18-2006 at 06:14 PM.
Reply With Quote
  #2  
Old 08-23-2006, 02:59 AM
RcSepp RcSepp is offline
Regular
 
Join Date: Oct 2004
Posts: 55
Default

With a color key you can just make a pixel visible or not. What I see in your picture is that your green particles have cut of edges (maybe by color key) and a total alpha value for the whole particle.

I would say:
Forget color key and use a .tga image with an alpha channel.
To make this green particle look good do this:
1.Draw the alpha channel (I do this by photoshop) so that the center is totaly visible and the side is totaly invisible like the green color in your particle.
2.Fill the whole image with green so that the gradient is completly made by the alpha channel.
Reply With Quote
  #3  
Old 09-15-2006, 11:12 AM
afwasborstel afwasborstel is offline
Centurion
 
Join Date: Apr 2003
Posts: 142
Default

And how do we load them in a texture?
Reply With Quote
  #4  
Old 09-24-2006, 08:31 AM
RcSepp RcSepp is offline
Regular
 
Join Date: Oct 2004
Posts: 55
Default

Tga's are normaly not supported by .net. Use an external library to load them. I always use DevilLib to load tga's. (You should find it in Google)
Reply With Quote
Reply


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
Blending problems / options?
Blending problems / options?
Blending problems / options? Blending problems / options?
Blending problems / options?
Blending problems / options?
Blending problems / options? Blending problems / options? Blending problems / options? Blending problems / options? Blending problems / options? Blending problems / options? Blending problems / options?
Blending problems / options?
Blending problems / options?
 
Blending problems / options?
Blending problems / options?
 
-->