| |
|
|
- Page 1 - |
|
Sven Bader | Hello!
After langer Time have I time again XProfan devoted and something with OpenGL herumgespielt. what I do not hinbekommen have was a Textur with transparenten reaches. it should over a Alphamaske lösbar his means a second Black-white-Textur, where Black transparent power and white deckend belässt (or inverse). there's diverse Approaches but always hakt it somewhere.
i think the Hauptproblem is, I whom oGL("Texture",..) commands nachbauen should circa there einzugreifen. I could too with of/ one Solution life, which two different "Quads" übereinanderlegt.
it went well too directly PNGs with Alpha channel To loading, Profan has here nativ only whom oGL("LoadTextureBMP",,).
Perhaps has of you someone a Solution? would be me forward
greetings Sven |
|
|
| |
|
|
|
« this Posting watts as Solution marked. » |
|
Sven Bader | Habs found in this middle-aged Posting: [...]
its a function to that Alpha Textures loading, these must I still in native Profan translate, with the Generator this Dateiformats have I the already made and tested:
Nachtrag: whom actual code could so did i paraphrase and I it into verlinkte Topic posted |
|
|
| |
|
|
|
|
H.Brill | ought to with the OpenGL - API To solve his, cue RGBA. there one on The API grab can, should something like possible his. Date spit there some from :
gluBuild2DMipmaps(GL_TEXTURE_2D, GL_RGBA, TextureList->getSizeX(), TextureList->getSizeY(), GL_RGBA, GL_UNSIGNED_BYTE, TextureList->getData()); To allow for on alpha channel, and turn on blending with:
glEnable (GL_BLEND); glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
there must You you time over The values the Konstanten informieren. Evtl. are you indeed already definiert, see ~GL_LIGHTING (Lesson 7a.) look you too time Lesson 7a: light on- and switch off in the Help on.
Perhaps helps you the moreover.
PS : Graphamp65.dll [...]
too David Strutz has with XProfan.de/start.htm a code. The Although for its amendment-Compiler xpse virtual, but evtl. can there too what rauslesen. |
|
|
| Benutze XPROFAN X3 + FREEPROFAN Wir sind die XProfaner. Sie werden von uns assimiliert. Widerstand ist zwecklos! Wir werden alle ihre Funktionen und Algorithmen den unseren hinzufügen.
Was die Borg können, können wir schon lange. | 07/08/21 ▲ |
|
|
|
|
Sven Bader | Hello and many Thanks for your response!
API functions have I already successful on another place uses for a Kantenglättung even one identische glBlendFunc. it artet only unfortunately over ands over again in try from what The expected Datentypen angeht, sofern it no Konstanten are.
in your example try I TextureList->getData() with of/ one by oGL("LoadTextureBMP",...) loaded Textur To feed, what live to that crash the program lead, too The SizeX/SizeY only get. an BMP and a PNG as BlockRead have so did i yet probiert.
it mangelt really not on ideas, its sooner The Umsetzung within Profan. |
|
|
| |
|
|
|
Sven Bader | Habs found in this middle-aged Posting: [...]
its a function to that Alpha Textures loading, these must I still in native Profan translate, with the Generator this Dateiformats have I the already made and tested:
Nachtrag: whom actual code could so did i paraphrase and I it into verlinkte Topic posted |
|
|
| |
|
|