Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-26 Thread Igor Stasenko
On 26 December 2013 07:52, Ronie Salgado ronies...@gmail.com wrote: Alex, libSDL and libSDL2 are low-level multi-media libraries designed for games. Those libraries are best suited for basic pixel blitting, some lines and rect in a cross platform way. Both libraries allows you to use a

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-26 Thread Alexandre Bergel
Thanks Ronie for these explanation Alexandre On Dec 26, 2013, at 7:52 AM, Ronie Salgado ronies...@gmail.com wrote: Alex, libSDL and libSDL2 are low-level multi-media libraries designed for games. Those libraries are best suited for basic pixel blitting, some lines and rect in a cross

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-26 Thread Denis Kudriashov
2013/12/26 Ronie Salgado ronies...@gmail.com Stef That sounds very interesting. I dream of a virtual world environment such as Second Life, highly dynamic and completely open source. What about Croquet?

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-26 Thread Stéphane Ducasse
This sounds really exciting :) That sounds very interesting. I dream of a virtual world environment such as Second Life, highly dynamic and completely open source. Croquet was going in that direction and this is good to improve the infrastructure of Pharo in that direction. Better

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-26 Thread Esteban Lorenzano
On 26 Dec 2013, at 16:44, Stéphane Ducasse stephane.duca...@inria.fr wrote: This sounds really exciting :) That sounds very interesting. I dream of a virtual world environment such as Second Life, highly dynamic and completely open source. Croquet was going in that direction and this is

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-25 Thread Stéphane Ducasse
Ronie I was talking about 3D with Igor (because Igor came to Smalltalk because he wanted to use it as a game engine and built rendering engine in Pascal long long time ago :). So I was brainstorming to see what you could do. the last time alex show roassal 3D we were thinking that it would be

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-25 Thread Ronie Salgado
Stef That sounds very interesting. I dream of a virtual world environment such as Second Life, highly dynamic and completely open source. But currently I would like to do a simple video game, with toon like graphic, using bullet for physics. I think that making an actual game development

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-25 Thread Alexandre Bergel
Ronie, You mention libSDL. Do you know how it compares with Cairo? They look similar, but I could not find a detailed comparison Alexandre Le 26-12-2013 à 0:12, Ronie Salgado ronies...@gmail.com a écrit : Stef That sounds very interesting. I dream of a virtual world environment such as

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-25 Thread Ronie Salgado
Alex, libSDL and libSDL2 are low-level multi-media libraries designed for games. Those libraries are best suited for basic pixel blitting, some lines and rect in a cross platform way. Both libraries allows you to use a custom software rendering or create a window in a cross-platform way. As for

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-24 Thread Denis Kudriashov
Hi 2013/12/24 Alexandre Bergel alexandre.ber...@me.com el1 := (R3CubeShape new color: (Color purple alpha: 0.2)) element. el2 := (R3CubeShape new color: (Color purple alpha: 0.2)) element. el1 makeTranslucent. Can it be automatic? Element has color which know about its transparency

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-24 Thread Ronie Salgado
Hi Denis, The shape color is not enough to know about its transparency, because it could have a texture with partially transparent elements. Despite that, there's another kind of transparency, fully opaque or fully transparent, which doesn't require special rendering. That other kind of

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-24 Thread Igor Stasenko
On 24 December 2013 21:01, Ronie Salgado ronies...@gmail.com wrote: Hi Denis, The shape color is not enough to know about its transparency, because it could have a texture with partially transparent elements. Despite that, there's another kind of transparency, fully opaque or fully

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-23 Thread Igor Stasenko
On 23 December 2013 22:04, Alexandre Bergel alexandre.ber...@me.com wrote: Hi! Is there a way to have transparent colors with NBOpenGL? I’ve tried the following (using Roassal 3d): -=-=-=-=-=-=-=-=-=-= | view el1 el2 | view := R3View new. el1 := (R3CubeShape new color: (Color purple

Re: [Pharo-dev] Transparent colors with NBOpenGL?

2013-12-23 Thread Ronie Salgado
Hi Alex, Translucent objects requires a singlepass lighting model, which I took the opportunity to complete and make it the default one. I put your example with a slight modification under R3ExampletranslucentCubes Translucent elements require a reception of the message makeTranslucent since