I know this topic is quite old (the newest I can find), but thought I post a snippet to save a lot of searching/reading if people are still looking for help.
I had similar problems as detailed under a 'transparent HUD' search in the forums.
After reading through all the help I could find, including this very helpful thread, I still couldn't get a semi-transparent HUD, even though I was using dds as you definitely must.
I eventually traced the problem to the fact I was saving in X8R8G8B8 instead of A8R8G8B8, using the Nvidia plugin for Photoshop CS2 (D3TXTextureFormat(*.DDS,*.HDR,*.PFM,*PPM)).
So I saved as A8R8G8B8 as posted by Squeegy on 22/04/2004 and only 2 lines were needed to load the texture:
Scr = new TVScreen2DImmediate
sngScroll = TexFactory.LoadTexture("HUDScroll_F2.dds","HUD", -1,-1)
you don't need Scr.Settings_SetAlphaBlending as already mentioned in the forums, and just the normal draw texture code in between Scr.Action begin and end like this:
Scr.Action_Begin2D()
Scr.Draw_Texture(sngScroll, 0, 0, 1024, 768, -1, -1, -1, -1, 0, 0, 1, 1)
Scr.Action_End2D()
I hope this helps anyone who is searching on this topic,
cheers
|
1
on: Today at 12:42:10 PM
|
||
| Started by Shadowsong - Last post by arnienet | ||
|
2
on: Today at 12:40:39 PM
|
||
| Started by COBRA_rus - Last post by Zaknafein | ||
|
There seems to be a problem with my former host, my antivirus keeps complaining about it.
So I'll point you to my new domain : http://www.theinstructionlimit.com/?p=5 |
||
|
3
on: Today at 12:27:47 PM
|
||
| Started by COBRA_rus - Last post by Soganatsu | ||
|
There you go
![]() http://www.zaknafein.hjcrusaders.com/?p=4 This demo features all basic aspects of TV3D (I think it should be around the forums somewhere as a VB Version too )Cya, Philipp |
||
|
4
on: Today at 12:25:29 PM
|
||
| Started by tweakbox - Last post by Soganatsu | ||
|
Damn am I stupid xD ^^
I accidently left over an Exit Sub Statement in the Render Code right after the Atmosphere's been rendered (Debugging Purposes) lol Well, Could, Sun/Moon Display works now ![]() Thx very much! |
||
|
5
on: Today at 11:31:31 AM
|
||
| Started by COBRA_rus - Last post by nadjibus | ||
|
Just ask your questions and people will answer.
|
||
|
6
on: Today at 11:18:09 AM
|
||
| Started by COBRA_rus - Last post by COBRA_rus | ||
|
It is desirable on vb.net !
![]() |
||
|
7
on: Today at 11:16:31 AM
|
||
| Started by COBRA_rus - Last post by COBRA_rus | ||
|
Need real-working example how in TV3D used collision on meshes(actors),lights cameras. You can add more. We novice on programming TV3D. Please help!!!
![]() |
||
|
8
on: Today at 07:55:25 AM
|
||
| Started by lovetv3d - Last post by lovetv3d | ||
|
actor.SetAlphaTest why no group?
mesh.SetAlphaTest(,,,group) bad engilsh,sorry |
||
|
9
on: Today at 04:40:46 AM
|
||
| Started by piepieonline - Last post by Raine | ||
|
You had a TypeInitializationException?
|
||
|
10
on: Today at 01:44:52 AM
|
||
| Started by DavidAWinter - Last post by beyonder | ||
|
Same story... a lot of developers still use VB6 for applications geared toward entry-level pc users. it doesnt require the 20mb net download. vb6 will be offically supported in all windows oses until 2017.
I program .Net and VB6... Net for my more 'savy' users, VB6 for my "everybody software" (just dont want the devs to kill the switch on the VB6 version k? ) |
||


)