Strange error with TextureLoader
Strange error with TextureLoader
Strange error with TextureLoader
Strange error with TextureLoader
Strange error with TextureLoader
Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader
Strange error with TextureLoader Strange error with TextureLoader
Strange error with TextureLoader
Go Back  Xtreme Visual Basic Talk > > > > Strange error with TextureLoader


Reply
 
Thread Tools Display Modes
  #1  
Old 07-16-2009, 10:34 AM
NFITC1 NFITC1 is offline
Centurion
 
Join Date: Apr 2006
Posts: 102
Default Strange error with TextureLoader


I'm new to DirectX programming so I'm probably missing something with this. I'm trying to tell my device that certain colors of textures are transparent. I've been trying to use the textureloader.fromstream() procedure to insert textures into the device so I can specify a colorkey. I understand that that's one way to show what color should be transparent. Problem is, the colors of the textures aren't transparent. I've tried following the example from codeproject, but it's not working at the moment.
Here's how it is currently:
Code:
PTexture(y) = TextureLoader.FromStream(device, _
					newstream, _
					0, _
					0, _
					0, _
					Usage.None, _
					Format.Unknown, _
					Pool.Default, _
					Filter.None, _
					Filter.None, _ 
					transparentcolor.toargb
newstream is an IO.Stream created from data in bitmap format. When the stream is created, transparentcolor is assigned and the width and height are also recorded. The texture gets mapped to a PositionTextured vertex, but the transparent color is still there. What am I missing?

Last edited by NFITC1; 07-16-2009 at 10:50 AM. Reason: Changed problem
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
Strange error with TextureLoader
Strange error with TextureLoader
Strange error with TextureLoader Strange error with TextureLoader
Strange error with TextureLoader
Strange error with TextureLoader
Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader Strange error with TextureLoader
Strange error with TextureLoader
Strange error with TextureLoader
 
Strange error with TextureLoader
Strange error with TextureLoader
 
-->