English
Forum

OpenGL Textur with Alpha mask (Tranzparenz)

 
- 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
 
07/07/21  
 



« 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

80 kB
Bezeichnung:Allpha Kanal Textur
Hochgeladen:07/09/21
Downloadcounter67
Download
 
07/09/21  
 




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.
 
07/08/21  
 




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

80 kB
Bezeichnung:Allpha Kanal Textur
Hochgeladen:07/09/21
Downloadcounter67
Download
 
07/09/21  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.921 Views

Themeninformationen

this Topic has 2 subscriber:

Sven Bader (3x)
H.Brill (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie