Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
Go Back  Xtreme Visual Basic Talk > > > > Texture with colorkey over opaque texture - multitexturing


Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2011, 07:07 PM
kissumisha kissumisha is offline
Newcomer
 
Join Date: Jul 2010
Posts: 1
Default Texture with colorkey over opaque texture - multitexturing


Hi. I'm driving mad searching for this procedure. All what I found is playing with alpha blending.

What I want is: 1 square (two triangles). One opaque texture, and another texture of the same size that uses colorkey to male certain parts transparent.


I load my textures:



Function TextureLoad()

'El color transparente
TransparentCol = &HFFFF0000 'RGB(255,0,0)


Set Texture2 = D3DX.CreateTextureFromFileEx(D3DDevice, App.Path & "\unit.bmp", D3DX_DEFAULT, D3DX_DEFAULT, D3DX_DEFAULT, 0, D3DFMT_UNKNOWN, D3DPOOL_MANAGED, D3DX_FILTER_NONE, D3DX_FILTER_NONE, TransparentCol, ByVal 0, ByVal 0)

Set TerrTex04 = D3DX.CreateTextureFromFile(D3DDevice, App.Path & "\textures\grassland04.bmp ")


End Function





And then I try to render using stages:



D3DDevice.SetTexture 0, TerrTex04


D3DDevice.SetTexture 1, Texture2



D3DDevice.DrawPrimitiveUP D3DPT_TRIANGLESTRIP, 2, TriStrip(0), Len(TriStrip(0))



But I don't know what opcions to use to show this effect.



Anyone could help? Thanx in advance
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
Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
 
Texture with colorkey over opaque texture - multitexturing
Texture with colorkey over opaque texture - multitexturing
 
-->