This package depends on the following classes: TTFontReader TTFontDescription TTGlyph
Which configuration to use? (In Moose 4.8)
Stephan
it's okay, it happens since 2.0, just proceed
2013/6/2 Stephan Eggermont stephan@stack.nl
This package depends on the following classes: TTFontReader TTFontDescription TTGlyph
Which configuration to use? (In Moose 4.8)
Stephan _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
2013/6/2 Erwan Douaille douailleerwan@gmail.com
it's okay, it happens since 2.0, just proceed
2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com
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.
Cheers, Alexandre
On Jun 2, 2013, at 6:02 PM, Erwan Douaille douailleerwan@gmail.com wrote:
2013/6/2 Erwan Douaille douailleerwan@gmail.com it's okay, it happens since 2.0, just proceed
2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
2013/6/2 Erwan Douaille douailleerwan@gmail.com it's okay, it happens since 2.0, just proceed
2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Osx 10.8.3
Alexandre
On Jun 2, 2013, at 10:29 PM, Igor Stasenko siguctua@gmail.com wrote:
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
2013/6/2 Erwan Douaille douailleerwan@gmail.com it's okay, it happens since 2.0, just proceed
2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Best regards, Igor Stasenko.
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
2013/6/2 Erwan Douaille douailleerwan@gmail.com it's okay, it happens since 2.0, just proceed
2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
The problem is that SourceCity loads the version from squeaksource. It should load the one from STHub.
I tried loading the latest version from STHub, but in the meantime the NBOpenGL code has changed a bit and SourceCity should be modified to adopt the new version properly (there are some DNUs).
Cheers, Doru
On Mon, Jun 3, 2013 at 1:27 PM, Igor Stasenko siguctua@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
2013/6/2 Erwan Douaille douailleerwan@gmail.com it's okay, it happens since 2.0, just proceed
2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@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. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
How can I make sure that OpenGL works on my machine? What would be the hello world example in OpenGL in Pharo?
Cheers, Alexandre
On Jun 3, 2013, at 7:27 AM, Igor Stasenko siguctua@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
2013/6/2 Erwan Douaille douailleerwan@gmail.com it's okay, it happens since 2.0, just proceed
2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@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.
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
2013/6/2 Erwan Douaille douailleerwan@gmail.com it's okay, it happens since 2.0, just proceed
2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@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 ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
> > > > 2013/6/2 Erwan Douaille douailleerwan@gmail.com > it's okay, it happens since 2.0, just proceed > > > 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > > > -- > Best regards, > > Douaille Erwan douaille.erwan@gmail.com > > > > -- > Best regards, > > Douaille Erwan douaille.erwan@gmail.com > _______________________________________________ > Moose-dev mailing list > Moose-dev@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.
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
> >> >> >> >> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >> it's okay, it happens since 2.0, just proceed >> >> >> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >> >> >> >> -- >> Best regards, >> >> Douaille Erwan douaille.erwan@gmail.com >> >> >> >> -- >> Best regards, >> >> Douaille Erwan douaille.erwan@gmail.com >> _______________________________________________ >> Moose-dev mailing list >> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
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?
Cheers, Alexandre
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: > >> >> >> >> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >> it's okay, it happens since 2.0, just proceed >> >> >> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >> >> >> >> -- >> Best regards, >> >> Douaille Erwan douaille.erwan@gmail.com >> >> >> >> -- >> Best regards, >> >> Douaille Erwan douaille.erwan@gmail.com >> _______________________________________________ >> Moose-dev mailing list >> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Absolutly not
I'm using it on NBCOG VM under windows 8, with an old moose version I guess the problem is not you vm cause you can bind openGL ... Igor ?
[image: Images intégrées 1]
2013/6/4 Alexandre Bergel alexandre.bergel@me.com
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?
Cheers, Alexandre
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
> >> >> >> >> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >> it's okay, it happens since 2.0, just proceed >> >> >> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >> >> >> >> -- >> Best regards, >> >> Douaille Erwan douaille.erwan@gmail.com >> >> >> >> -- >> Best regards, >> >> Douaille Erwan douaille.erwan@gmail.com >> _______________________________________________ >> Moose-dev mailing list >> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
On 4 June 2013 17:52, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
> >> >> >> >> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >> it's okay, it happens since 2.0, just proceed >> >> >> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >> >> >> >> -- >> Best regards, >> >> Douaille Erwan douaille.erwan@gmail.com >> >> >> >> -- >> Best regards, >> >> Douaille Erwan douaille.erwan@gmail.com >> _______________________________________________ >> Moose-dev mailing list >> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Hi guys
I tried to run your hello world example. I first loaded ConfigurationOfSourceCity in a Moose 4.8 development image and tried to run it. Then I loaded it in a Pharo2.0 image and failed the same. I tried to load the image using a NBCog VM (latest).
What am I doing wrong?
Cheers Ricky
On Jun 5, 2013, at 1:39 PM, Igor Stasenko wrote:
On 4 June 2013 17:52, Alexandre Bergel alexandre.bergel@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
<Screen Shot 2013-06-04 at 11.51.13 AM.png>
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
> On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: >> >>> >>> >>> >>> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >>> it's okay, it happens since 2.0, just proceed >>> >>> >>> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>> >>> >>> >>> -- >>> Best regards, >>> >>> Douaille Erwan douaille.erwan@gmail.com >>> >>> >>> >>> -- >>> Best regards, >>> >>> Douaille Erwan douaille.erwan@gmail.com >>> _______________________________________________ >>> Moose-dev mailing list >>> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Best regards, Igor Stasenko. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
+1
On Jun 5, 2013, at 6:37 PM, Richard Wettel wettel@gmail.com wrote:
Hi guys
I tried to run your hello world example. I first loaded ConfigurationOfSourceCity in a Moose 4.8 development image and tried to run it. Then I loaded it in a Pharo2.0 image and failed the same. I tried to load the image using a NBCog VM (latest).
What am I doing wrong?
Cheers Ricky
On Jun 5, 2013, at 1:39 PM, Igor Stasenko wrote:
On 4 June 2013 17:52, Alexandre Bergel alexandre.bergel@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
<Screen Shot 2013-06-04 at 11.51.13 AM.png>
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: > >> On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: >>> >>>> >>>> >>>> >>>> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >>>> it's okay, it happens since 2.0, just proceed >>>> >>>> >>>> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>>> >>>> >>>> >>>> -- >>>> Best regards, >>>> >>>> Douaille Erwan douaille.erwan@gmail.com >>>> >>>> >>>> >>>> -- >>>> Best regards, >>>> >>>> Douaille Erwan douaille.erwan@gmail.com >>>> _______________________________________________ >>>> Moose-dev mailing list >>>> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Best regards, Igor Stasenko. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi !
I manually loaded NBOpenGL from SmalltalkHub and SourceCity on moose 4.8, with the default vm proposed on moose's website and it works. There is a sourcecity and GLTest example.
image.zip : https://www.dropbox.com/s/4v9m5eig7qs4xez/sourcecity.zip vm : http://www.pharo-project.org/pharo-download/release-2-0
I tested it on win 8 64bit. It'll not work on linux. I don't know about mac os. I will update the ConfigurationOfSourceCity, but i have to write my internship's report for the moment.
Sorry for the unexpected troubles
2013/6/6 Alexandre Bergel alexandre.bergel@me.com
+1
On Jun 5, 2013, at 6:37 PM, Richard Wettel wettel@gmail.com wrote:
Hi guys
I tried to run your hello world example. I first loaded ConfigurationOfSourceCity in a Moose 4.8 development
image and tried to run it.
Then I loaded it in a Pharo2.0 image and failed the same. I tried to load the image using a NBCog VM (latest).
What am I doing wrong?
Cheers Ricky
On Jun 5, 2013, at 1:39 PM, Igor Stasenko wrote:
On 4 June 2013 17:52, Alexandre Bergel alexandre.bergel@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
<Screen Shot 2013-06-04 at 11.51.13 AM.png>
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com
wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
> On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
>> >>> On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com> wrote:
>>>> >>>>> >>>>> >>>>> >>>>> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >>>>> it's okay, it happens since 2.0, just proceed >>>>> >>>>> >>>>> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>>>> >>>>> >>>>> >>>>> -- >>>>> Best regards, >>>>> >>>>> Douaille Erwan douaille.erwan@gmail.com >>>>> >>>>> >>>>> >>>>> -- >>>>> Best regards, >>>>> >>>>> Douaille Erwan douaille.erwan@gmail.com >>>>> _______________________________________________ >>>>> Moose-dev mailing list >>>>> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Best regards, Igor Stasenko. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Tx Erwan for looking into it.
On Thu, Jun 6, 2013 at 4:32 PM, Erwan Douaille douailleerwan@gmail.comwrote:
Hi !
I manually loaded NBOpenGL from SmalltalkHub and SourceCity on moose 4.8, with the default vm proposed on moose's website and it works. There is a sourcecity and GLTest example.
image.zip : https://www.dropbox.com/s/4v9m5eig7qs4xez/sourcecity.zip vm : http://www.pharo-project.org/pharo-download/release-2-0
I tested it on win 8 64bit. It'll not work on linux. I don't know about mac os. I will update the ConfigurationOfSourceCity, but i have to write my internship's report for the moment.
Sorry for the unexpected troubles
2013/6/6 Alexandre Bergel alexandre.bergel@me.com
+1
On Jun 5, 2013, at 6:37 PM, Richard Wettel wettel@gmail.com wrote:
Hi guys
I tried to run your hello world example. I first loaded ConfigurationOfSourceCity in a Moose 4.8 development
image and tried to run it.
Then I loaded it in a Pharo2.0 image and failed the same. I tried to load the image using a NBCog VM (latest).
What am I doing wrong?
Cheers Ricky
On Jun 5, 2013, at 1:39 PM, Igor Stasenko wrote:
On 4 June 2013 17:52, Alexandre Bergel alexandre.bergel@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
<Screen Shot 2013-06-04 at 11.51.13 AM.png>
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com
wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
> >> On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com
wrote:
>>> >>>> On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com> wrote:
>>>>> >>>>>> >>>>>> >>>>>> >>>>>> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >>>>>> it's okay, it happens since 2.0, just proceed >>>>>> >>>>>> >>>>>> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best regards, >>>>>> >>>>>> Douaille Erwan douaille.erwan@gmail.com >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best regards, >>>>>> >>>>>> Douaille Erwan douaille.erwan@gmail.com >>>>>> _______________________________________________ >>>>>> Moose-dev mailing list >>>>>> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Best regards, Igor Stasenko. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Erwan,
thanks a lot.
Ricky
On Jun 6, 2013, at 4:32 PM, Erwan Douaille wrote:
Hi !
I manually loaded NBOpenGL from SmalltalkHub and SourceCity on moose 4.8, with the default vm proposed on moose's website and it works. There is a sourcecity and GLTest example.
image.zip : https://www.dropbox.com/s/4v9m5eig7qs4xez/sourcecity.zip vm : http://www.pharo-project.org/pharo-download/release-2-0
I tested it on win 8 64bit. It'll not work on linux. I don't know about mac os. I will update the ConfigurationOfSourceCity, but i have to write my internship's report for the moment.
Sorry for the unexpected troubles
2013/6/6 Alexandre Bergel alexandre.bergel@me.com +1
On Jun 5, 2013, at 6:37 PM, Richard Wettel wettel@gmail.com wrote:
Hi guys
I tried to run your hello world example. I first loaded ConfigurationOfSourceCity in a Moose 4.8 development image and tried to run it. Then I loaded it in a Pharo2.0 image and failed the same. I tried to load the image using a NBCog VM (latest).
What am I doing wrong?
Cheers Ricky
On Jun 5, 2013, at 1:39 PM, Igor Stasenko wrote:
On 4 June 2013 17:52, Alexandre Bergel alexandre.bergel@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
<Screen Shot 2013-06-04 at 11.51.13 AM.png>
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
> On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: >> >>> On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: >>>> >>>>> >>>>> >>>>> >>>>> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >>>>> it's okay, it happens since 2.0, just proceed >>>>> >>>>> >>>>> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>>>> >>>>> >>>>> >>>>> -- >>>>> Best regards, >>>>> >>>>> Douaille Erwan douaille.erwan@gmail.com >>>>> >>>>> >>>>> >>>>> -- >>>>> Best regards, >>>>> >>>>> Douaille Erwan douaille.erwan@gmail.com >>>>> _______________________________________________ >>>>> Moose-dev mailing list >>>>> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Best regards, Igor Stasenko. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
I have tried all the different combination on MacOSX without much success. When I open the image I got a
Am I the only one to experience this?
Cheers, Alexandre
On Jun 6, 2013, at 4:42 PM, Richard Wettel wettel@gmail.com wrote:
Hi Erwan,
thanks a lot.
Ricky
On Jun 6, 2013, at 4:32 PM, Erwan Douaille wrote:
Hi !
I manually loaded NBOpenGL from SmalltalkHub and SourceCity on moose 4.8, with the default vm proposed on moose's website and it works. There is a sourcecity and GLTest example.
image.zip : https://www.dropbox.com/s/4v9m5eig7qs4xez/sourcecity.zip vm : http://www.pharo-project.org/pharo-download/release-2-0
I tested it on win 8 64bit. It'll not work on linux. I don't know about mac os. I will update the ConfigurationOfSourceCity, but i have to write my internship's report for the moment.
Sorry for the unexpected troubles
2013/6/6 Alexandre Bergel alexandre.bergel@me.com +1
On Jun 5, 2013, at 6:37 PM, Richard Wettel wettel@gmail.com wrote:
Hi guys
I tried to run your hello world example. I first loaded ConfigurationOfSourceCity in a Moose 4.8 development image and tried to run it. Then I loaded it in a Pharo2.0 image and failed the same. I tried to load the image using a NBCog VM (latest).
What am I doing wrong?
Cheers Ricky
On Jun 5, 2013, at 1:39 PM, Igor Stasenko wrote:
On 4 June 2013 17:52, Alexandre Bergel alexandre.bergel@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
<Screen Shot 2013-06-04 at 11.51.13 AM.png>
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: > >> On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: >>> >>>> On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: >>>>> >>>>>> >>>>>> >>>>>> >>>>>> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >>>>>> it's okay, it happens since 2.0, just proceed >>>>>> >>>>>> >>>>>> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best regards, >>>>>> >>>>>> Douaille Erwan douaille.erwan@gmail.com >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Best regards, >>>>>> >>>>>> Douaille Erwan douaille.erwan@gmail.com >>>>>> _______________________________________________ >>>>>> Moose-dev mailing list >>>>>> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Best regards, Igor Stasenko. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Hi Alex,
I tried directly the image in sourcecity.zip under Mac OS X Version 10.7.5 and it works well.
Cheers Ricky
On Jun 7, 2013, at 12:49 AM, Alexandre Bergel wrote:
I have tried all the different combination on MacOSX without much success. When I open the image I got a
<Screen Shot 2013-06-06 at 6.48.19 PM.png>
Am I the only one to experience this?
Cheers, Alexandre
On Jun 6, 2013, at 4:42 PM, Richard Wettel wettel@gmail.com wrote:
Hi Erwan,
thanks a lot.
Ricky
On Jun 6, 2013, at 4:32 PM, Erwan Douaille wrote:
Hi !
I manually loaded NBOpenGL from SmalltalkHub and SourceCity on moose 4.8, with the default vm proposed on moose's website and it works. There is a sourcecity and GLTest example.
image.zip : https://www.dropbox.com/s/4v9m5eig7qs4xez/sourcecity.zip vm : http://www.pharo-project.org/pharo-download/release-2-0
I tested it on win 8 64bit. It'll not work on linux. I don't know about mac os. I will update the ConfigurationOfSourceCity, but i have to write my internship's report for the moment.
Sorry for the unexpected troubles
2013/6/6 Alexandre Bergel alexandre.bergel@me.com +1
On Jun 5, 2013, at 6:37 PM, Richard Wettel wettel@gmail.com wrote:
Hi guys
I tried to run your hello world example. I first loaded ConfigurationOfSourceCity in a Moose 4.8 development image and tried to run it. Then I loaded it in a Pharo2.0 image and failed the same. I tried to load the image using a NBCog VM (latest).
What am I doing wrong?
Cheers Ricky
On Jun 5, 2013, at 1:39 PM, Igor Stasenko wrote:
On 4 June 2013 17:52, Alexandre Bergel alexandre.bergel@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
<Screen Shot 2013-06-04 at 11.51.13 AM.png>
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
> On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: >> >>> On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: >>>> >>>>> On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >>>>>>> it's okay, it happens since 2.0, just proceed >>>>>>> >>>>>>> >>>>>>> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >>>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Best regards, >>>>>>> >>>>>>> Douaille Erwan douaille.erwan@gmail.com >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Best regards, >>>>>>> >>>>>>> Douaille Erwan douaille.erwan@gmail.com >>>>>>> _______________________________________________ >>>>>>> Moose-dev mailing list >>>>>>> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Best regards, Igor Stasenko. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Really strange. I made it work on my macbook air by trying out different combination. I have an error (about the platform Id) when I follow Erwan instruction.
Getting OpenGL working from Pharo is not easy apparently.
I am using OSX 10.8.3 for both my desktop and my laptop.
Cheers, Alexandre
On Jun 6, 2013, at 6:54 PM, Richard Wettel wettel@gmail.com wrote:
Hi Alex,
I tried directly the image in sourcecity.zip under Mac OS X Version 10.7.5 and it works well.
Cheers Ricky
On Jun 7, 2013, at 12:49 AM, Alexandre Bergel wrote:
I have tried all the different combination on MacOSX without much success. When I open the image I got a
<Screen Shot 2013-06-06 at 6.48.19 PM.png>
Am I the only one to experience this?
Cheers, Alexandre
On Jun 6, 2013, at 4:42 PM, Richard Wettel wettel@gmail.com wrote:
Hi Erwan,
thanks a lot.
Ricky
On Jun 6, 2013, at 4:32 PM, Erwan Douaille wrote:
Hi !
I manually loaded NBOpenGL from SmalltalkHub and SourceCity on moose 4.8, with the default vm proposed on moose's website and it works. There is a sourcecity and GLTest example.
image.zip : https://www.dropbox.com/s/4v9m5eig7qs4xez/sourcecity.zip vm : http://www.pharo-project.org/pharo-download/release-2-0
I tested it on win 8 64bit. It'll not work on linux. I don't know about mac os. I will update the ConfigurationOfSourceCity, but i have to write my internship's report for the moment.
Sorry for the unexpected troubles
2013/6/6 Alexandre Bergel alexandre.bergel@me.com +1
On Jun 5, 2013, at 6:37 PM, Richard Wettel wettel@gmail.com wrote:
Hi guys
I tried to run your hello world example. I first loaded ConfigurationOfSourceCity in a Moose 4.8 development image and tried to run it. Then I loaded it in a Pharo2.0 image and failed the same. I tried to load the image using a NBCog VM (latest).
What am I doing wrong?
Cheers Ricky
On Jun 5, 2013, at 1:39 PM, Igor Stasenko wrote:
On 4 June 2013 17:52, Alexandre Bergel alexandre.bergel@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
<Screen Shot 2013-06-04 at 11.51.13 AM.png>
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com wrote:
> I attached a quick demo > > GLTest new openInWorld > > > 2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote: > > > On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: > >> > >>> On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: > >>>> > >>>>> On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: > >>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> 2013/6/2 Erwan Douaille douailleerwan@gmail.com > >>>>>>> it's okay, it happens since 2.0, just proceed > >>>>>>> > >>>>>>> > >>>>>>> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch > >>>>>>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> -- > >>>>>>> Best regards, > >>>>>>> > >>>>>>> Douaille Erwan douaille.erwan@gmail.com > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> -- > >>>>>>> Best regards, > >>>>>>> > >>>>>>> Douaille Erwan douaille.erwan@gmail.com > >>>>>>> _______________________________________________ > >>>>>>> Moose-dev mailing list > >>>>>>> Moose-dev@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@iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/moose-dev > > > > -- > Best regards, > > Douaille Erwan douaille.erwan@gmail.com > <GLTest.st>_______________________________________________ > > Moose-dev mailing list > Moose-dev@iam.unibe.ch > https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Best regards, Igor Stasenko. _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
Thanks Igor.
In the code:
gl clearColor_red: 1 green: 1 blue: 1 alpha: 0; clear: GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT.
I have changed the 0 for 0.5 or 1 and it works as expected. 0 is apparently for full transparency, so the behavior I got is rather normal. Although it is strange I am the only one to experience this.
Cheers, Alexandre
On Jun 5, 2013, at 7:39 AM, Igor Stasenko siguctua@gmail.com wrote:
On 4 June 2013 17:52, Alexandre Bergel alexandre.bergel@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
<Screen Shot 2013-06-04 at 11.51.13 AM.png>
On Jun 4, 2013, at 9:49 AM, Erwan Douaille douailleerwan@gmail.com wrote:
I attached a quick demo
GLTest new openInWorld
2013/6/4 Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 21:06, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
On 3 June 2013 05:18, Alexandre Bergel alexandre.bergel@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@gmail.com wrote:
> On 3 June 2013 00:59, Alexandre Bergel alexandre.bergel@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@gmail.com wrote: >> >>> >>> >>> >>> 2013/6/2 Erwan Douaille douailleerwan@gmail.com >>> it's okay, it happens since 2.0, just proceed >>> >>> >>> 2013/6/2 Stephan Eggermont stephan@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@iam.unibe.ch >>> https://www.iam.unibe.ch/mailman/listinfo/moose-dev >>> >>> >>> >>> -- >>> Best regards, >>> >>> Douaille Erwan douaille.erwan@gmail.com >>> >>> >>> >>> -- >>> Best regards, >>> >>> Douaille Erwan douaille.erwan@gmail.com >>> _______________________________________________ >>> Moose-dev mailing list >>> Moose-dev@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@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- Best regards,
Douaille Erwan douaille.erwan@gmail.com <GLTest.st>_______________________________________________
Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
-- Best regards, Igor Stasenko.