Poster | Thread |
AmiDARK
|  |
glBlendEquation exist ? Posted on 8-Apr-2011 22:01:13
| | [ #1 ] |
|
|
 |
Regular Member  |
Joined: 28-Mar-2007 Posts: 469
From: South France | | |
|
| Hi,
I need to use glBlendEquation but I can't. Compilation always send me the error : undefined reference to 'glBlendEquation'
I include files : #include < gl/glut.h > #include < interfaces/glut.h >
and glut.h includes all files for gl including file glext.h that contain definition for the glBlendEquation function. so, why compilation report error ?
Thank you.
Kindest Regards, AmiDARK Last edited by AmiDARK on 08-Apr-2011 at 10:01 PM.
|
|
Status: Offline |
|
|
shadow
|  |
Re: glBlendEquation exist ? Posted on 8-Apr-2011 22:47:44
| | [ #2 ] |
|
|
 |
Regular Member  |
Joined: 10-Mar-2003 Posts: 118
From: Copenhagen | | |
|
| @AmiDARK
glBlendEquation is not supported in MiniGL, so you will have to find an other solution. |
|
Status: Offline |
|
|
AmiDARK
|  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 9:11:09
| | [ #3 ] |
|
|
 |
Regular Member  |
Joined: 28-Mar-2007 Posts: 469
From: South France | | |
|
| @shadow err ... So ... impossible do to some ghosting/transparency effects like DBPro in AmiDARK Engine then ...
|
|
Status: Offline |
|
|
broadblues
 |  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 9:37:07
| | [ #4 ] |
|
|
 |
Amiga Developer Team  |
Joined: 20-Jul-2004 Posts: 4449
From: Portsmouth England | | |
|
| |
Status: Offline |
|
|
AmiDARK
|  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 9:52:01
| | [ #5 ] |
|
|
 |
Regular Member  |
Joined: 28-Mar-2007 Posts: 469
From: South France | | |
|
| @broadblues Yes but it's too limitative ... For example; to do bright ghosting.
|
|
Status: Offline |
|
|
broadblues
 |  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 10:11:03
| | [ #6 ] |
|
|
 |
Amiga Developer Team  |
Joined: 20-Jul-2004 Posts: 4449
From: Portsmouth England | | |
|
| |
Status: Offline |
|
|
AmiDARK
|  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 11:03:34
| | [ #7 ] |
|
|
 |
Regular Member  |
Joined: 28-Mar-2007 Posts: 469
From: South France | | |
|
| |
Status: Offline |
|
|
kiero
|  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 11:41:42
| | [ #8 ] |
|
|
 |
Member  |
Joined: 15-Apr-2004 Posts: 84
From: Unknown | | |
|
| @AmiDARK
for additive blending just use gl_one, gl_one as blendfunc |
|
Status: Offline |
|
|
AmiDARK
|  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 11:47:06
| | [ #9 ] |
|
|
 |
Regular Member  |
Joined: 28-Mar-2007 Posts: 469
From: South France | | |
|
| |
Status: Offline |
|
|
Daytona675x
|  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 12:09:34
| | [ #10 ] |
|
|
 |
Regular Member  |
Joined: 5-Jan-2011 Posts: 491
From: Germany | | |
|
| @AmiDARK or try GL_SRC_ALPHA, GL_ONE for additive with alpha. _________________ AmigaOS 4.1 FE (sam460ex Radeon 9200 / RadeonHD), MorphOS 3.8 (PowerMac G4 733MHz Radeon 9000), AROS (x86), A1200 (060 80MHz Indivision MK2), A500, A600, CDTV Wings Remastered Development Diary |
|
Status: Offline |
|
|
AmiDARK
|  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 13:42:43
| | [ #11 ] |
|
|
 |
Regular Member  |
Joined: 28-Mar-2007 Posts: 469
From: South France | | |
|
|
EDIT : @Kiero & Daytona675x : Using your param, I get totally white screen ...
Last edited by AmiDARK on 09-Apr-2011 at 01:49 PM.
|
|
Status: Offline |
|
|
Karlos
|  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 14:10:58
| | [ #12 ] |
|
|
 |
Elite Member  |
Joined: 24-Aug-2003 Posts: 4954
From: As-sassin-aaate! As-sassin-aaate! Ooh! We forgot the ammunition! | | |
|
| @AmiDARK
For the plasma effect, if you make the textures solid colour and move the "brightness" into the alpha channel, how does it look with additive+alpha blending? _________________ Doing stupid things for fun... |
|
Status: Offline |
|
|
Daytona675x
|  |
Re: glBlendEquation exist ? Posted on 9-Apr-2011 14:54:19
| | [ #13 ] |
|
|
 |
Regular Member  |
Joined: 5-Jan-2011 Posts: 491
From: Germany | | |
|
| @AmiDARK Quote:
Using your param, I get totally white screen ... |
That may have many reasons. Without further knowledge and/or a complete code listing we can only speculate. It may be one of those, for example:
- are you not clearing the screen? If not it will all sum up to white pretty fast.
- what are you adding together? A fully red, green and blue texture? That turns out to be white then.
- your textures are invalid, therefore GL uses the default texture.
- you did not enable texturing and glColor is white or grey.
etc. etc. etc.Last edited by Daytona675x on 09-Apr-2011 at 02:54 PM.
_________________ AmigaOS 4.1 FE (sam460ex Radeon 9200 / RadeonHD), MorphOS 3.8 (PowerMac G4 733MHz Radeon 9000), AROS (x86), A1200 (060 80MHz Indivision MK2), A500, A600, CDTV Wings Remastered Development Diary |
|
Status: Offline |
|
|