[squeak-dev] Can't get glMorphic to work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|

[squeak-dev] Can't get glMorphic to work

Gonzalo Romano

Hi i can't get gl morphic to work i've done everything as says in the  
squeak swiki, but when i try to run "GLDisplayScreen new".
a debugger comes out saying "Callout mechanism not available", i have  
copied opengl32.dll to squeak's directory with no results..
here is the debugger stack

'OpenGLAPI(Object)>>externalCallFailed'
'OpenGLAPI>>glGetIntegerv:with:'
'OpenGLAPI>>glGetInteger:'
'GLCanvas>>initialize:'
'GLDisplayScreen>>initialize'
'GLDisplayScreen class>>new'
'UndefinedObject>>DoIt'
'Compiler>>evaluate:in:to:notifying:ifFail:logged:'
'[] in TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection {[rcvr  
class evaluatorClass new   evaluate: self selectionAsStream   in:  
ctxt...]}' 'BlockContext>>on:do:'
'TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection'
'TextMorphForShoutEditor(ParagraphEditor)>>doIt'
'[] in TextMorphForShoutEditor(ParagraphEditor)>>doIt: {[self doIt]}'
'TextMorphForShoutEditor(Controller)>>terminateAndInitializeAround:'
'TextMorphForShoutEditor(ParagraphEditor)>>doIt:'  
'TextMorphForShoutEditor(ParagraphEditor)>>dispatchOnCharacter:with:'
'TextMorphForShoutEditor(TextMorphEditor)>>dispatchOnCharacter:with:'
'TextMorphForShoutEditor(ParagraphEditor)>>readKeyboard'
'TextMorphForShoutEditor(TextMorphEditor)>>readKeyboard')

--
Saludos
Gonzalo
Romano

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can't get glMorphic to work

Igor Stasenko
2009/7/15 Gonzalo Romano <[hidden email]>:
>
> Hi i can't get gl morphic to work i've done everything as says in the squeak
> swiki, but when i try to run "GLDisplayScreen new".
> a debugger comes out saying "Callout mechanism not available", i have copied
> opengl32.dll to squeak's directory with no results..
> here is the debugger stack
>

Hello Gonzalo.
First: thanks for an interest (GLDisplayScreen  - is stuff written by
mine 2 years ago :) ).
Can you give some more details about what/from where you loading it,
on what image and what VM using.

At first glance, looks like you have problems with FFI package/dll.
Try run its tests to see if it working/present.

> 'OpenGLAPI(Object)>>externalCallFailed'
> 'OpenGLAPI>>glGetIntegerv:with:'
> 'OpenGLAPI>>glGetInteger:'
> 'GLCanvas>>initialize:'
> 'GLDisplayScreen>>initialize'
> 'GLDisplayScreen class>>new'
> 'UndefinedObject>>DoIt'
> 'Compiler>>evaluate:in:to:notifying:ifFail:logged:'
> '[] in TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection {[rcvr
> class evaluatorClass new   evaluate: self selectionAsStream   in: ctxt...]}'
> 'BlockContext>>on:do:'
> 'TextMorphForShoutEditor(ParagraphEditor)>>evaluateSelection'
> 'TextMorphForShoutEditor(ParagraphEditor)>>doIt'
> '[] in TextMorphForShoutEditor(ParagraphEditor)>>doIt: {[self doIt]}'
> 'TextMorphForShoutEditor(Controller)>>terminateAndInitializeAround:'
> 'TextMorphForShoutEditor(ParagraphEditor)>>doIt:'
> 'TextMorphForShoutEditor(ParagraphEditor)>>dispatchOnCharacter:with:'
> 'TextMorphForShoutEditor(TextMorphEditor)>>dispatchOnCharacter:with:'
> 'TextMorphForShoutEditor(ParagraphEditor)>>readKeyboard'
> 'TextMorphForShoutEditor(TextMorphEditor)>>readKeyboard')
>
> --
> Saludos
> Gonzalo
> Romano
>
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can't get glMorphic to work

Gonzalo Romano
On Wed, 15 Jul 2009 16:13:49 -0300, Igor Stasenko <[hidden email]>  
wrote:

> Can you give some more details about what/from where you loading it,
> on what image and what VM using.

hi what a quick answer!! jeje, I used the vm that was availabe from the  
swiki page that says it has the opengl plugin compiled in, i tried several  
images from 3.8 to 3.10 basic and development versions, always used latest  
ffi package available, and followed instrucctions from the wiki!


--
Saludos
Gonzalo
Romano

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can't get glMorphic to work

Igor Stasenko
2009/7/15 Gonzalo Romano <[hidden email]>:

> On Wed, 15 Jul 2009 16:13:49 -0300, Igor Stasenko <[hidden email]>
> wrote:
>
>> Can you give some more details about what/from where you loading it,
>> on what image and what VM using.
>
> hi what a quick answer!! jeje, I used the vm that was availabe from the
> swiki page that says it has the opengl plugin compiled in, i tried several
> images from 3.8 to 3.10 basic and development versions, always used latest
> ffi package available, and followed instrucctions from the wiki!
>
>
Okay, i'll try it myself tomorrow.

> --
> Saludos
> Gonzalo
> Romano
>
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can't get glMorphic to work

Gonzalo Romano
In reply to this post by Igor Stasenko
On Wed, 15 Jul 2009 16:13:49 -0300, Igor Stasenko <[hidden email]>  
wrote:

> At first glance, looks like you have problems with FFI package/dll.
> Try run its tests to see if it working/present.
hey! forgot the ffiprims.dll file :S, jaja. now it "works" pretty buggy is  
it supposed to be this way yet? or i should be able to see the screen  
correctly?
maybe i have an old ffiprims.dll where can i get a newer one?


--
Saludos
Gonzalo
Romano

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can't get glMorphic to work

Igor Stasenko
2009/7/15 Gonzalo Romano <[hidden email]>:

> On Wed, 15 Jul 2009 16:13:49 -0300, Igor Stasenko <[hidden email]>
> wrote:
>
>> At first glance, looks like you have problems with FFI package/dll.
>> Try run its tests to see if it working/present.
>
> hey! forgot the ffiprims.dll file :S, jaja. now it "works" pretty buggy is
> it supposed to be this way yet? or i should be able to see the screen
> correctly?
> maybe i have an old ffiprims.dll where can i get a newer one?
>
Aha.
Yeah its not fully complete and covers only most basic/commonly used
Canvas features.
Its really hard to make it work properly in all cases, because Morphic
is not the high quality code, which honors encapsulation rules &
capabilities delegation :)

>
> --
> Saludos
> Gonzalo
> Romano
>
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can't get glMorphic to work

Gonzalo Romano
On Wed, 15 Jul 2009 16:39:38 -0300, Igor Stasenko <[hidden email]>  
wrote:

> Its really hard to make it work properly in all cases, because Morphic
> is not the high quality code, which honors encapsulation rules &
> capabilities delegation

jaja, yeah we know this for a long time!,
well, i'm pretty interested on making this work, i've no knowledge of  
openGl, but maybe doing some reading you could point me in the right  
direction...

--
Saludos
Gonzalo
Romano

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can't get glMorphic to work

Igor Stasenko
2009/7/15 Gonzalo Romano <[hidden email]>:

> On Wed, 15 Jul 2009 16:39:38 -0300, Igor Stasenko <[hidden email]>
> wrote:
>
>> Its really hard to make it work properly in all cases, because Morphic
>> is not the high quality code, which honors encapsulation rules &
>> capabilities delegation
>
> jaja, yeah we know this for a long time!,
> well, i'm pretty interested on making this work, i've no knowledge of
> openGl, but maybe doing some reading you could point me in the right
> direction...
>
You can find a lot of resource about Opengl at opengl.org: books,
demos, tutorials, discussion board(s).
Do you think i can help you better than that?
Or, you mean in terms of Squeak/smalltalk? OpenGL API is bound almost
completely identically to squeak (thanks to people who made it
available). So you mostly don't need to know about any specifics,
apart from those which you can find about OpenGL in general.

> --
> Saludos
> Gonzalo
> Romano
>
>



--
Best regards,
Igor Stasenko AKA sig.

Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can't get glMorphic to work

Cameron Sanders-2
In reply to this post by Gonzalo Romano
Gonzalo,
I too am interested in this. I thought I would have to build "it", so  
I am thrilled to see your emails. And this hints at a few problems I  
am having, so if you would answer a few questions please, it would be  
much appreciated.

1. Where did you find glMorphic? And how? (I have done numerous  
searches using google and yahoo over the last 6 months and now found  
this.)

2. Where do I read the details (step by step), because I too would  
like to explore this. (And perhaps later this year I could help  
complete it.)

3. Are you finding it is *very* limited in features, or somewhat?

Thanks in advance,
Cam


On Jul 15, 2009, at 2:18 PM, Gonzalo Romano wrote:

>
> Hi i can't get gl morphic to work i've done everything as says in  
> the squeak swiki, but when i try to run "GLDisplayScreen new".
> a debugger comes out saying "Callout mechanism not available", i  
> have copied opengl32.dll to squeak's directory with no results..
> here is the debugger stack


Reply | Threaded
Open this post in threaded view
|

Re: [squeak-dev] Can't get glMorphic to work

Igor Stasenko
2009/7/16 Cameron Sanders <[hidden email]>:

> Gonzalo,
> I too am interested in this. I thought I would have to build "it", so I am
> thrilled to see your emails. And this hints at a few problems I am having,
> so if you would answer a few questions please, it would be much appreciated.
>
> 1. Where did you find glMorphic? And how? (I have done numerous searches
> using google and yahoo over the last 6 months and now found this.)
>
> 2. Where do I read the details (step by step), because I too would like to
> explore this. (And perhaps later this year I could help complete it.)
>
http://wiki.squeak.org/squeak/6003

> 3. Are you finding it is *very* limited in features, or somewhat?
>
> Thanks in advance,
> Cam
>
>
> On Jul 15, 2009, at 2:18 PM, Gonzalo Romano wrote:
>
>>
>> Hi i can't get gl morphic to work i've done everything as says in the
>> squeak swiki, but when i try to run "GLDisplayScreen new".
>> a debugger comes out saying "Callout mechanism not available", i have
>> copied opengl32.dll to squeak's directory with no results..
>> here is the debugger stack
>
>
>



--
Best regards,
Igor Stasenko AKA sig.