On 4 June 2013 17:52, Alexandre Bergel <alexandre.bergel(a)me.com> wrote:
Yeah!
It works (I guess). I had to use the right VM also.
I obtain the attached screenshot. Apparently the background is not
updated. Is this intended in your example?
Seems so.. an opengl buffer is cleared by fully transparent color:
gl
clearColor_red: 1 green: 1 blue: 1 alpha: 0;
clear: GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT.
then, when resulting image transferred back to Display form,
it only changes the pixels which is affected, but fully transparent ones
will keep background unchanged.
The solution is to use opaque color(s) in opengl buffer,
or clear background by morph, before copying pixels from opengl buffer.
Cheers,
Alexandre
On Jun 4, 2013, at 9:49 AM, Erwan Douaille <douailleerwan(a)gmail.com>
wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel <alexandre.bergel(a)me.com>
Hi Igor,
Thanks for your help.
Unfortunately, I do not have much time to dive in the implementation. A
student is asking me how he can use OpenGL in Pharo. I would like to give
him a simple starting point
What would be a simple piece of code that simply open a cube on the
screen? I cannot ask him to go and study SourceCity or the implementation
of NBOpenGL. He barely knows Smalltalk but he is very smart.
So, how to show a cube on the screen please?
Cheers,
Alexandre
On Jun 4, 2013, at 4:32 AM, Igor Stasenko <siguctua(a)gmail.com> wrote:
On 3 June 2013 21:06, Alexandre Bergel
<alexandre.bergel(a)me.com> wrote:
How can I make sure that OpenGL works on my
machine?
You don't. It just works.
The problem is that different hardware has different features supported.
During initialization of context i checking + asking for some
capabilities.
Looks like your machine does not supports them
fully, or
initialization logic is flawed..
Did you tried to use latest config of NBOpenGL on your machine?
What would be the hello world example in OpenGL
in Pharo?
Anything which shows on screen, like drawing a triangle.
Cheers,
Alexandre
> On Jun 3, 2013, at 7:27 AM, Igor Stasenko <siguctua(a)gmail.com> wrote:
>
>> On 3 June 2013 05:18, Alexandre Bergel <alexandre.bergel(a)me.com>
wrote:
>>> Osx 10.8.3
>>>
>>> Alexandre
>>>
>>
>> It is strange.
>> I checked things lately, NBOpenGL works fine on macs.
>> But i seend that source city code has some modifications. Maybe that
>> is the problem.
>>
>>> On Jun 2, 2013, at 10:29 PM, Igor Stasenko <siguctua(a)gmail.com>
wrote:
>>>
>>>> On 3 June 2013 00:59, Alexandre Bergel <alexandre.bergel(a)me.com>
wrote:
>>>>> Where are such examples?
>>>>> How can I try an example of OpenGl on my macbook?
>>>>>
>>>>> I've tried to execute "SourceCityGL new" and I got an
error "No
suitable implementation found for initializing OpenGL context for
your
platform". No idea why I got this. I have the same error when I
try "GLTTRenderingDemo new"
>>>>>
>>>>> I am using Pharo 1.4 Summer. Do I have to install some libraries
somewhere? I guess I have OpenGl installed on my mac.
>>>>
>>>> What OS version you running?
>>>>
>>>>>
>>>>> Cheers,
>>>>> Alexandre
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Jun 2, 2013, at 6:02 PM, Erwan Douaille
<douailleerwan(a)gmail.com>
wrote:
>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2013/6/2 Erwan Douaille <douailleerwan(a)gmail.com>
>>>>>> it's okay, it happens since 2.0, just proceed
>>>>>>
>>>>>>
>>>>>> 2013/6/2 Stephan Eggermont <stephan(a)stack.nl>
>>>>>>> This package depends on the following classes:
>>>>>>> TTFontReader
>>>>>>> TTFontDescription
>>>>>>> TTGlyph
>>>>>>
>>>>>> And you will not be able to launch NBOpenGL examples. (Ask Igor
about that stuff)
>>>> Maybe you should try it on pharo 1.4
>>>> Which configuration to use?
>>>> (In Moose 4.8)
>>>>
>>>> Stephan
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> Moose-dev(a)iam.unibe.ch
>>>>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>>
>>>> Douaille Erwan <douaille.erwan(a)gmail.com>
>>>>
>>>>
>>>>
>>>> --
>>>> Best regards,
>>>>
>>>> Douaille Erwan <douaille.erwan(a)gmail.com>
>>>> _______________________________________________
>>>> Moose-dev mailing list
>>>> Moose-dev(a)iam.unibe.ch
>>>>
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
>>>
>>> --
>>> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
>>> Alexandre Bergel
http://www.bergel.eu
>>> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>>>
>>>
>>>
>>
>>
>>
>> --
>> Best regards,
>> Igor Stasenko.
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel
http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
--
Best regards,
Igor Stasenko.
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
--
Best regards,
Igor Stasenko.
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
Best regards,
Douaille Erwan <douaille.erwan(a)gmail.com>
<GLTest.st>_______________________________________________
Moose-dev mailing list
Moose-dev(a)iam.unibe.ch
https://www.iam.unibe.ch/mailman/listinfo/moose-dev
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel
http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.