[vwnc] VWNC 7.7 OPENGL

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

[vwnc] VWNC 7.7 OPENGL

Hamid Hadavi
Hello, 
I am trying to load the OPENGL packages from the public repository into a vwnc 7.7 running on 32 bit x86 linux. Unfortunately, the load process goes into some infinite loop from which it never recovers. Has anyone had any prior experience with OPENGL packages? Is there a particular way to load/install these packages? 
Many thanks, Hamid  



_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] VWNC 7.7 OPENGL

Michael Lucas-Smith-2
On 1/29/10 8:13 AM, Hamid Hadavi wrote:
Hello, 
I am trying to load the OPENGL packages from the public repository into a vwnc 7.7 running on 32 bit x86 linux. Unfortunately, the load process goes into some infinite loop from which it never recovers. Has anyone had any prior experience with OPENGL packages? Is there a particular way to load/install these packages?

I've never had it go in to an infinite loop before - what about loading the parcels that come with 7.7 instead?

Michael

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] VWNC 7.7 OPENGL

Hamid Hadavi
In reply to this post by Hamid Hadavi



> Message: 4
> Date: Fri, 29 Jan 2010 09:45:15 -0800
> From: Michael Lucas-Smith <[hidden email]>
> Subject: Re: [vwnc] VWNC 7.7 OPENGL
> To: [hidden email]
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On 1/29/10 8:13 AM, Hamid Hadavi wrote:
> > Hello,
> > I am trying to load the OPENGL packages from the public repository
> > into a vwnc 7.7 running on 32 bit x86 linux. Unfortunately, the load
> > process goes into some infinite loop from which it never recovers. Has
> > anyone had any prior experience with OPENGL packages? Is there a
> > particular way to load/install these packages?
>
> I've never had it go in to an infinite loop before - what about loading
> the parcels that come with 7.7 instead?
When I load the parcels that come with 7.7 I get a series of undeclared variables (as listed below). When I try to run any of the lessons in OPENGL-LESSONS package, I get error messages. I've tried in two different linux installations getting the same errors. 
I've pasted the stack and the errors produced below. Am I loading the parcels wrong?
visualnc.im created at December 15, 2009 1:13:01 PM
Autoloading OpenGL-Windows from $(VISUALWORKS)/contributed/OpenGL-Windows.pcl
Autoloading DLLCC from $(VISUALWORKS)/dllcc/DLLCC.pcl
Autoloading OpenGL from $(VISUALWORKS)/contributed/OpenGL.pcl
Autoloading Graphics-Images-FixedPalettes from $(VISUALWORKS)/contributed/Graphics-Images-FixedPalettes.pcl
BGR_888 is Undeclared
A_8 is Undeclared
BGRA_8888 is Undeclared
ARGB_8888 is Undeclared
ABGR_8888 is Undeclared
RGBA_8888 is Undeclared
RGB_888 is Undeclared
Autoloading OpenGL-Linux from $(VISUALWORKS)/contributed/OpenGL-Linux.pcl
Autoloading OpenGL-MacOSX from $(VISUALWORKS)/contributed/OpenGL-MacOSX.pcl
Autoloading ObjectiveCConnect from $(VISUALWORKS)/contributed/ObjectiveCConnect.pcl
Autoloading SUnitToo from $(VISUALWORKS)/contributed/SUnitToo.pclSUnitToo suggests SUnitToo(ls)

NSString is Undeclared
NSOpenGLContext is Undeclared
NSOpenGLPixelFormat is Undeclared
Autoloading CairoGraphics from $(VISUALWORKS)/preview/cairo/CairoGraphics.pcl
Autoloading Weaklings from $(VISUALWORKS)/contributed/Weaklings.pcl
BigEndianARGB is Undeclared
LittleEndianARGB is Undeclared
Autoloading OpenGL-CairoGraphics from $(VISUALWORKS)/contributed/OpenGL-CairoGraphics.pcl
Autoloading OpenGL-Arithmetic from $(VISUALWORKS)/contributed/OpenGL-Arithmetic.pcl







Unhandled exception: Message not understood: #TRUE
UndefinedObject(Object)>>doesNotUnderstand:
GLX.RenderContextX11Window>>initializeContext
GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
GLX.RenderContextX11Window>>initialize:
OpenGL.RenderContext class>>on:
OpenGL.Lessons.Lesson00RenderContext(OpenGL.Lessons.Lesson)>>initializeOpenGL
OpenGL.Lessons.Lesson00RenderContext>>demo
OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:arguments:
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:
TextEditorController(ParagraphEditor)>>evaluateCompiled:
optimized [] in ParagraphEditor>>evaluateSelection
BlockClosure>>ensure:
Cursor>>showWhile:
TextEditorController(ParagraphEditor)>>evaluateSelection
optimized [] in ParagraphEditor>>printIt
BlockClosure>>on:do:
TextEditorController(ParagraphEditor)>>printIt
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserTextTool)>>printIt
Refactory.Browser.RBCommand>>perform:on:
Refactory.Browser.RBCommand>>performWith:
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserApplicationModel)>>performAction:
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserApplicationModel)>>action:
optimized [] in Refactory.Browser.BrowserApplicationModel>>createActionMenuItemFrom:
TextEditorController>>dispatchBlockClosure:
TextEditorController>>dispatchMenuSelection:
TextEditorController(ControllerWithMenu)>>processMenu:at:centered:
TextEditorController(ControllerWithMenu)>>processMenuAt:centered:
TextEditorController(ControllerWithMenu)>>yellowButtonPressedEvent:
TextEditorController(ParagraphEditor)>>yellowButtonPressedEvent:
TextEditorController>>yellowButtonPressedEvent:
YellowButtonPressedEvent>>dispatchTo:
TextEditorController(ControllerWithMenu)>>handleEvent:
EventDispatcher>>dispatch:to:
EventDispatcher>>dispatchEvent:
YellowButtonPressedEvent(Event)>>dispatch
YellowButtonPressedEvent(Event)>>dispatchForWindowManager:
optimized [] in WindowManager>>safelyDispatchForWindowManager:
BlockClosure>>on:do:
WindowManager>>safelyDispatchForWindowManager:
WindowManager>>processNextEvent
optimized [] in [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in Process class>>forBlock:priority:

----------------------------------------------------------------------
UndefinedObject(Object)>>doesNotUnderstand:
Receiver:
an UndefinedObject
Arguments:
aMessage = a Message with selector: #TRUE and arguments: #()
Temporaries:
excpt = a MessageNotUnderstood
resumeValue = nil
Context PC = 25

----------------------------------------------------------------------
GLX.RenderContextX11Window>>initializeContext
Receiver:
a GLX.RenderContextX11Window
Instance Variables:
interface = nil
view = an ApplicationWindow 75499749
vendor = nil
renderer = nil
version = nil
program = nil
textures = nil
texturesHistory = nil
extensions = nil
xif = a GLX.GLXInterface
drawableHandle = 75499749
context = nil
displayHandle = 140732816
Temporaries:
drawableData = a GraphicsHandle(75499749)
visualInfo = 140737160
Context PC = 38

----------------------------------------------------------------------
GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
Receiver:
a GLX.RenderContextX11Window
Instance Variables:
interface = nil
view = an ApplicationWindow 75499749
vendor = nil
renderer = nil
version = nil
program = nil
textures = nil
texturesHistory = nil
extensions = nil
xif = a GLX.GLXInterface
drawableHandle = 75499749
context = nil
displayHandle = 140732816
Arguments:
aView = an ApplicationWindow 75499749
Context PC = 6

----------------------------------------------------------------------
GLX.RenderContextX11Window>>initialize:
Receiver:
a GLX.RenderContextX11Window
Instance Variables:
interface = nil
view = an ApplicationWindow 75499749
vendor = nil
renderer = nil
version = nil
program = nil
textures = nil
texturesHistory = nil
extensions = nil
xif = a GLX.GLXInterface
drawableHandle = 75499749
context = nil
displayHandle = 140732816
Arguments:
aView = an ApplicationWindow 75499749
Context PC = 10

----------------------------------------------------------------------
OpenGL.RenderContext class>>on:
Receiver:
a OpenGL.RenderContext class
Instance Variables:
superclass = Object
methodDict = a MethodDictionary[24]
format = 16393
subclasses = an Array[3]
instanceVariables = an Array[9]
organization = ('accessing' #bounds #extensions #program #program: #renderer #vendor #version #view)
('private' #activateContext #assignTextureUnitTo: #deactivateContext #leastUsedTextureUnit #resetProgram #resetTextures)
('initialize-release' #initialize: #initializeContext #initializeInterface #initializeParameters #on:)
('api' #activate #deactivate #flush #resize #whileCurrentDo:)

name = #RenderContext
classPool = a NameSpaceOfClass[1]
environment = a NameSpace[34]
Arguments:
aView = an ApplicationWindow 75499749
Context PC = 8

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext(OpenGL.Lessons.Lesson)>>initializeOpenGL
Receiver:
a OpenGL.Lessons.Lesson00RenderContext
Instance Variables:
isRunning = nil
window = an ApplicationWindow 75499749
context = nil
renderJob = nil
resizeJob = nil
idleJob = nil
Context PC = 5

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext>>demo
Receiver:
a OpenGL.Lessons.Lesson00RenderContext
Instance Variables:
isRunning = nil
window = an ApplicationWindow 75499749
context = nil
renderJob = nil
resizeJob = nil
idleJob = nil
Temporaries:
pixmap = nil
image = nil
Context PC = 17

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
Receiver:
a OpenGL.Lessons.Lesson00RenderContext class
Instance Variables:
superclass = OpenGL.Lessons.Lesson
methodDict = a MethodDictionary[1]
format = 16390
subclasses = nil
instanceVariables = an Array[0]
organization = ('rendering' #demo)

name = #Lesson00RenderContext
classPool = a NameSpaceOfClass[0]
environment = a NameSpace[24]
Context PC = 4

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:arguments:
Receiver:
a OpenGL.Lessons.Lesson00RenderContext class
Instance Variables:
superclass = OpenGL.Lessons.Lesson
methodDict = a MethodDictionary[1]
format = 16390
subclasses = nil
instanceVariables = an Array[0]
organization = ('rendering' #demo)

name = #Lesson00RenderContext
classPool = a NameSpaceOfClass[0]
environment = a NameSpace[24]
Arguments:
method = AnnotatedMethod OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
args = an Array[0]
Context PC = 5

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:
Receiver:
a OpenGL.Lessons.Lesson00RenderContext class
Instance Variables:
superclass = OpenGL.Lessons.Lesson
methodDict = a MethodDictionary[1]
format = 16390
subclasses = nil
instanceVariables = an Array[0]
organization = ('rendering' #demo)

name = #Lesson00RenderContext
classPool = a NameSpaceOfClass[0]
environment = a NameSpace[24]
Arguments:
method = AnnotatedMethod OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
Context PC = 5

----------------------------------------------------------------------
TextEditorController(ParagraphEditor)>>evaluateCompiled:
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Arguments:
aMethod = AnnotatedMethod OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
Temporaries:
context = nil
Context PC = 13

----------------------------------------------------------------------
optimized [] in ParagraphEditor>>evaluateSelection
Receiver:
an UndefinedObject
Temporaries:
.self = a TextEditorController
.code = AnnotatedMethod OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
Context PC = 7

----------------------------------------------------------------------
BlockClosure>>ensure:
Receiver:
a BlockClosure
Instance Variables:
method = CompiledBlock [] in ParagraphEditor>>evaluateSelection
outerContext = nil
copiedValues = an Array[2]
Arguments:
aBlock = BlockClosure [] in Cursor>>showWhile:
Temporaries:
result = nil
Context PC = 4

----------------------------------------------------------------------
Cursor>>showWhile:
Receiver:
a Cursor
Instance Variables:
errorCode = 0
handle = a ByteArray[8]
image = Depth1Image(extent: 16 @ 16 depth: 1)
mask = Depth1Image(extent: 16 @ 16 depth: 1)
hotSpot = 1 @ 1
name = 'xeq'
Arguments:
aBlock = BlockClosure [] in ParagraphEditor>>evaluateSelection
Temporaries:
oldcursor = Cursor normal
Context PC = 23

----------------------------------------------------------------------
TextEditorController(ParagraphEditor)>>evaluateSelection
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Temporaries:
code = AnnotatedMethod OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
result = nil
Context PC = 14

----------------------------------------------------------------------
optimized [] in ParagraphEditor>>printIt
Receiver:
an UndefinedObject
Temporaries:
.self = a TextEditorController
Context PC = 8

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
a BlockClosure
Instance Variables:
method = CompiledBlock [] in ParagraphEditor>>printIt
outerContext = nil
copiedValues = a TextEditorController
Arguments:
anExceptionSelector = CompilationError
handlerBlock = BlockClosure [] in ParagraphEditor>>printIt
Context PC = 18

----------------------------------------------------------------------
TextEditorController(ParagraphEditor)>>printIt
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Context PC = 20

----------------------------------------------------------------------
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserTextTool)>>printIt
Receiver:
a Refactory.Browser.BrowserCommentTool
Instance Variables:
dependents = nil
builder = an UIBuilder
uiSession = nil
eventHandlers = nil
codeModel = Lesson00RenderContext
menu = a Menu
savedText = nil
changed = false
textHolder = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
originalText = Text for 'Lesson #0 - RenderContext

Th...son00RenderContext new demo
'
menuBarMenu = nil
Context PC = 5

----------------------------------------------------------------------
Refactory.Browser.RBCommand>>perform:on:
Receiver:
a Refactory.Browser.RBCommand
Instance Variables:
name = an UserMessage('Print It', #PrintIt, #browser)
description = an UserMessage('Evaluate the selected text and print the result', #PrintItDesc, #browser)
action = #printIt
enabled = nil
receiver = #activeTool
Arguments:
aSymbol = #printIt
anObject = a Refactory.Browser.BrowserCommentTool
Context PC = 9

----------------------------------------------------------------------
Refactory.Browser.RBCommand>>performWith:
Receiver:
a Refactory.Browser.RBCommand
Instance Variables:
name = an UserMessage('Print It', #PrintIt, #browser)
description = an UserMessage('Evaluate the selected text and print the result', #PrintItDesc, #browser)
action = #printIt
enabled = nil
receiver = #activeTool
Arguments:
anObject = a Refactory.Browser.RBActionDispatcher
Context PC = 14

----------------------------------------------------------------------
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserApplicationModel)>>performAction:
Receiver:
a Refactory.Browser.BrowserCommentTool
Instance Variables:
dependents = nil
builder = an UIBuilder
uiSession = nil
eventHandlers = nil
codeModel = Lesson00RenderContext
menu = a Menu
savedText = nil
changed = false
textHolder = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
originalText = Text for 'Lesson #0 - RenderContext

Th...son00RenderContext new demo
'
menuBarMenu = nil
Arguments:
aString = 'Print It'
Temporaries:
action = Print It
Context PC = 11

----------------------------------------------------------------------
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserApplicationModel)>>action:
Receiver:
a Refactory.Browser.BrowserCommentTool
Instance Variables:
dependents = nil
builder = an UIBuilder
uiSession = nil
eventHandlers = nil
codeModel = Lesson00RenderContext
menu = a Menu
savedText = nil
changed = false
textHolder = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
originalText = Text for 'Lesson #0 - RenderContext

Th...son00RenderContext new demo
'
menuBarMenu = nil
Arguments:
aMenuItem = a MenuItem 'Print it'
Context PC = 8

----------------------------------------------------------------------
optimized [] in Refactory.Browser.BrowserApplicationModel>>createActionMenuItemFrom:
Receiver:
an UndefinedObject
Temporaries:
.self = a Refactory.Browser.BrowserCommentTool
.newItem = a MenuItem 'Print it'
Context PC = 7

----------------------------------------------------------------------
TextEditorController>>dispatchBlockClosure:
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Arguments:
aBlock = BlockClosure [] in Refactory.Browser.BrowserApplicationModel>>createActionMenuItemFrom:
Temporaries:
na = 0
Context PC = 11

----------------------------------------------------------------------
TextEditorController>>dispatchMenuSelection:
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Arguments:
menuSelection = BlockClosure [] in Refactory.Browser.BrowserApplicationModel>>createActionMenuItemFrom:
Context PC = 45

----------------------------------------------------------------------
TextEditorController(ControllerWithMenu)>>processMenu:at:centered:
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Arguments:
aMenu = a Menu
aPoint = 467 @ 562
centered = true
Temporaries:
valueResult = a MenuItem 'Print it'
Context PC = 41

----------------------------------------------------------------------
TextEditorController(ControllerWithMenu)>>processMenuAt:centered:
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Arguments:
aPoint = 467 @ 562
centered = true
Context PC = 9

----------------------------------------------------------------------
TextEditorController(ControllerWithMenu)>>yellowButtonPressedEvent:
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Arguments:
event = a YellowButtonPressedEvent
Context PC = 13

----------------------------------------------------------------------
TextEditorController(ParagraphEditor)>>yellowButtonPressedEvent:
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Arguments:
event = a YellowButtonPressedEvent
Context PC = 9

----------------------------------------------------------------------
TextEditorController>>yellowButtonPressedEvent:
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Arguments:
anEvent = a YellowButtonPressedEvent
Context PC = 19

----------------------------------------------------------------------
YellowButtonPressedEvent>>dispatchTo:
Receiver:
a YellowButtonPressedEvent
Instance Variables:
time = 51918785
initiator = an EventDispatcher
window = an ApplicationWindow 75498863
state = 2
x = 246
y = 422
gx = 467
gy = 562
buttonNumber = 2
Arguments:
anObject = a TextEditorController
Context PC = 4

----------------------------------------------------------------------
TextEditorController(ControllerWithMenu)>>handleEvent:
Receiver:
a TextEditorController
Instance Variables:
model = a ValueHolder on: Text for 'Lesson #0 - RenderContext

This is the very first lesson, which demonstrates what a RenderContext and the gl variable do. The RenderContext represents an OpenGL rendering context for a window, an image or a pixmap. The gl variable gets switched each time you activate a context to render. By running this demo, you''ll see that the rendering engine the operating system gives you can differ based on whether we''re rendering to a window or rendering offscreen to a pixmap or image.

To run this lesson:
OpenGL.Lessons.Lesson00RenderContext new demo
'
view = a TextEditorView
sensor = a TranslatingSensor
menuHolder = a Menu
performer = a Refactory.Browser.BrowserCommentTool
beginTypeInIndex = nil
anchorIndex = 502
emphasisHere = nil
dispatchTable = nil
charComposer = a CharacterComposer
textHasChanged = false
feelPolicy = nil
supportCodeEditingFeels = true
localMenuItems = an Array[21]
extendingDown = true
keyboardProcessor = a KeyboardProcessor
keyboardHook = nil
readOnly = false
accepted = true
autoAccept = false
continuousAccept = false
tabMeansNextField = true
tabRequiresControl = true
dispatcher = an UIDispatcher
selectable = false
Arguments:
anEvent = a YellowButtonPressedEvent
Context PC = 38

----------------------------------------------------------------------
EventDispatcher>>dispatch:to:
Receiver:
an EventDispatcher
Instance Variables:
windowController = an ApplicationStandardSystemController
currentMouseConsumer = nil
grabbingMouse = false
keyboardProcessor = a KeyboardProcessor
lastControlObject = nil
trapList = nil
state = nil
repairDamageWhenDebugging = true
flushQueueAfterError = true
distributeEventsWhenDebugging = true
dragDropInProgress = false
dragDropTracker = nil
dispatchUnknownEvents = false
Arguments:
event = a YellowButtonPressedEvent
object = a TextEditorController
Temporaries:
tmp = nil
Context PC = 10

----------------------------------------------------------------------
EventDispatcher>>dispatchEvent:
Receiver:
an EventDispatcher
Instance Variables:
windowController = an ApplicationStandardSystemController
currentMouseConsumer = nil
grabbingMouse = false
keyboardProcessor = a KeyboardProcessor
lastControlObject = nil
trapList = nil
state = nil
repairDamageWhenDebugging = true
flushQueueAfterError = true
distributeEventsWhenDebugging = true
dragDropInProgress = false
dragDropTracker = nil
dispatchUnknownEvents = false
Arguments:
event = a YellowButtonPressedEvent
Temporaries:
objectWantingControl = a TextEditorController
targetKeyboardProcessor = nil
Context PC = 113

----------------------------------------------------------------------
YellowButtonPressedEvent(Event)>>dispatch
Receiver:
a YellowButtonPressedEvent
Instance Variables:
time = 51918785
initiator = an EventDispatcher
window = an ApplicationWindow 75498863
state = 2
x = 246
y = 422
gx = 467
gy = 562
buttonNumber = 2
Context PC = 16

----------------------------------------------------------------------
YellowButtonPressedEvent(Event)>>dispatchForWindowManager:
Receiver:
a YellowButtonPressedEvent
Instance Variables:
time = 51918785
initiator = an EventDispatcher
window = an ApplicationWindow 75498863
state = 2
x = 246
y = 422
gx = 467
gy = 562
buttonNumber = 2
Arguments:
aWinMgr = a WindowManager
Context PC = 4

----------------------------------------------------------------------
optimized [] in WindowManager>>safelyDispatchForWindowManager:
Receiver:
an UndefinedObject
Temporaries:
.event = a YellowButtonPressedEvent
.self = a WindowManager
Context PC = 6

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
a BlockClosure
Instance Variables:
method = CompiledBlock [] in WindowManager>>safelyDispatchForWindowManager:
outerContext = nil
copiedValues = an Array[2]
Arguments:
anExceptionSelector = BadControllerError
handlerBlock = BlockClosure [] in WindowManager>>safelyDispatchForWindowManager:
Context PC = 18

----------------------------------------------------------------------
WindowManager>>safelyDispatchForWindowManager:
Receiver:
a WindowManager
Instance Variables:
windows = an OrderedCollection[1]
activeController = nil
interruptLock = false
outstandingMetaOrDamage = false
openInProgress = false
eventQueue = an EventQueue
baseProcess = a Process in Semaphore>>waitIfCurtailedSignal
dontFilterEvents = false
Arguments:
event = a YellowButtonPressedEvent
Context PC = 13

----------------------------------------------------------------------
WindowManager>>processNextEvent
Receiver:
a WindowManager
Instance Variables:
windows = an OrderedCollection[1]
activeController = nil
interruptLock = false
outstandingMetaOrDamage = false
openInProgress = false
eventQueue = an EventQueue
baseProcess = a Process in Semaphore>>waitIfCurtailedSignal
dontFilterEvents = false
Temporaries:
event = a YellowButtonPressedEvent
Context PC = 9

----------------------------------------------------------------------
optimized [] in [] in WindowManager>>newProcess
Receiver:
an UndefinedObject
Temporaries:
.self = a WindowManager
Context PC = 13

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
a BlockClosure
Instance Variables:
method = CompiledBlock [] in [] in WindowManager>>newProcess
outerContext = nil
copiedValues = a WindowManager
Arguments:
anExceptionSelector = TerminateException
handlerBlock = BlockClosure [] in [] in WindowManager>>newProcess
Context PC = 18

----------------------------------------------------------------------
optimized [] in WindowManager>>newProcess
Receiver:
an UndefinedObject
Temporaries:
.self = a WindowManager
Context PC = 15

----------------------------------------------------------------------
BlockClosure>>on:do:
Receiver:
a BlockClosure
Instance Variables:
method = CompiledBlock [] in WindowManager>>newProcess
outerContext = nil
copiedValues = a WindowManager
Arguments:
anExceptionSelector = TerminateException
handlerBlock = BlockClosure [] in [] in Process class>>forBlock:priority:
Context PC = 18

----------------------------------------------------------------------
optimized [] in Process class>>forBlock:priority:
Receiver:
an UndefinedObject
Temporaries:
.aBlock = BlockClosure [] in WindowManager>>newProcess
Context PC = 9


> Michael

> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.cs.uiuc.edu/mailman/private/vwnc/attachments/20100129/021060a5/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
> End of vwnc Digest, Vol 24, Issue 48
> ************************************


Tell the whole story with photos, right from your Messenger window. Learn how!
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] VWNC 7.7 OPENGL

Hamid Hadavi
In reply to this post by Hamid Hadavi

> Message: 4
> Date: Fri, 29 Jan 2010 09:45:15 -0800
> From: Michael Lucas-Smith <[hidden email]>
> Subject: Re: [vwnc] VWNC 7.7 OPENGL
> To: [hidden email]
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On 1/29/10 8:13 AM, Hamid Hadavi wrote:
> > Hello,
> > I am trying to load the OPENGL packages from the public repository
> > into a vwnc 7.7 running on 32 bit x86 linux. Unfortunately, the load
> > process goes into some infinite loop from which it never recovers. Has
> > anyone had any prior experience with OPENGL packages? Is there a
> > particular way to load/install these packages?
>
> I've never had it go in to an infinite loop before - what about loading
> the parcels that come with 7.7 instead?
When I load the parcels that come with 7.7 I get a series of undeclared variables (as listed below). When I try to run any of the lessons in OPENGL-LESSONS package, I get error messages. I've tried in two different linux installations getting the same errors. 
I've pasted the stack and the errors produced below. Am I loading the parcels wrong?
visualnc.im created at December 15, 2009 1:13:01 PM
Autoloading OpenGL-Windows from $(VISUALWORKS)/contributed/OpenGL-Windows.pcl
Autoloading DLLCC from $(VISUALWORKS)/dllcc/DLLCC.pcl
Autoloading OpenGL from $(VISUALWORKS)/contributed/OpenGL.pcl
Autoloading Graphics-Images-FixedPalettes from $(VISUALWORKS)/contributed/Graphics-Images-FixedPalettes.pcl
BGR_888 is Undeclared
A_8 is Undeclared
BGRA_8888 is Undeclared
ARGB_8888 is Undeclared
ABGR_8888 is Undeclared
RGBA_8888 is Undeclared
RGB_888 is Undeclared
Autoloading OpenGL-Linux from $(VISUALWORKS)/contributed/OpenGL-Linux.pcl
Autoloading OpenGL-MacOSX from $(VISUALWORKS)/contributed/OpenGL-MacOSX.pcl
Autoloading ObjectiveCConnect from $(VISUALWORKS)/contributed/ObjectiveCConnect.pcl
Autoloading SUnitToo from $(VISUALWORKS)/contributed/SUnitToo.pclSUnitToo suggests SUnitToo(ls)

NSString is Undeclared
NSOpenGLContext is Undeclared
NSOpenGLPixelFormat is Undeclared
Autoloading CairoGraphics from $(VISUALWORKS)/preview/cairo/CairoGraphics.pcl
Autoloading Weaklings from $(VISUALWORKS)/contributed/Weaklings.pcl
BigEndianARGB is Undeclared
LittleEndianARGB is Undeclared
Autoloading OpenGL-CairoGraphics from $(VISUALWORKS)/contributed/OpenGL-CairoGraphics.pcl
Autoloading OpenGL-Arithmetic from $(VISUALWORKS)/contributed/OpenGL-Arithmetic.pcl







Unhandled exception: Message not understood: #TRUE
UndefinedObject(Object)>>doesNotUnderstand:
GLX.RenderContextX11Window>>initializeContext
GLX.RenderContextX11Window(OpenGL.RenderContext)>>initialize:
GLX.RenderContextX11Window>>initialize:
OpenGL.RenderContext class>>on:
OpenGL.Lessons.Lesson00RenderContext(OpenGL.Lessons.Lesson)>>initializeOpenGL
OpenGL.Lessons.Lesson00RenderContext>>demo
OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:arguments:
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:
TextEditorController(ParagraphEditor)>>evaluateCompiled:
optimized [] in ParagraphEditor>>evaluateSelection
BlockClosure>>ensure:
Cursor>>showWhile:
TextEditorController(ParagraphEditor)>>evaluateSelection
optimized [] in ParagraphEditor>>printIt
BlockClosure>>on:do:
TextEditorController(ParagraphEditor)>>printIt
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserTextTool)>>printIt
Refactory.Browser.RBCommand>>perform:on:
Refactory.Browser.RBCommand>>performWith:
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserApplicationModel)>>performAction:
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserApplicationModel)>>action:
optimized [] in Refactory.Browser.BrowserApplicationModel>>createActionMenuItemFrom:
TextEditorController>>dispatchBlockClosure:
TextEditorController>>dispatchMenuSelection:
TextEditorController(ControllerWithMenu)>>processMenu:at:centered:
TextEditorController(ControllerWithMenu)>>processMenuAt:centered:
TextEditorController(ControllerWithMenu)>>yellowButtonPressedEvent:
TextEditorController(ParagraphEditor)>>yellowButtonPressedEvent:
TextEditorController>>yellowButtonPressedEvent:
YellowButtonPressedEvent>>dispatchTo:
TextEditorController(ControllerWithMenu)>>handleEvent:
EventDispatcher>>dispatch:to:
EventDispatcher>>dispatchEvent:
YellowButtonPressedEvent(Event)>>dispatch
YellowButtonPressedEvent(Event)>>dispatchForWindowManager:
optimized [] in WindowManager>>safelyDispatchForWindowManager:
BlockClosure>>on:do:
WindowManager>>safelyDispatchForWindowManager:
WindowManager>>processNextEvent
optimized [] in [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in Process class>>forBlock:priority:

-


Spread the cheer with Messenger for mobile. Learn more.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] VWNC 7.7 OPENGL

Michael Lucas-Smith-2
On 1/29/10 12:09 PM, Hamid Hadavi wrote:

> Message: 4
> Date: Fri, 29 Jan 2010 09:45:15 -0800
> From: Michael Lucas-Smith [hidden email]
> Subject: Re: [vwnc] VWNC 7.7 OPENGL
> To: [hidden email]
> Message-ID: [hidden email]
> Content-Type: text/plain; charset="iso-8859-1"
>
> On 1/29/10 8:13 AM, Hamid Hadavi wrote:
> > Hello,
> > I am trying to load the OPENGL packages from the public repository
> > into a vwnc 7.7 running on 32 bit x86 linux. Unfortunately, the load
> > process goes into some infinite loop from which it never recovers. Has
> > anyone had any prior experience with OPENGL packages? Is there a
> > particular way to load/install these packages?
>
> I've never had it go in to an infinite loop before - what about loading
> the parcels that come with 7.7 instead?
When I load the parcels that come with 7.7 I get a series of undeclared variables (as listed below). When I try to run any of the lessons in OPENGL-LESSONS package, I get error messages. I've tried in two different linux installations getting the same errors. 
I've pasted the stack and the errors produced below. Am I loading the parcels wrong?
First a disclaimer - the opengl code base is not officially supported and I'm essentially a 1.5 man team on it (I occasionally get contributions - thanks to you people, you know who you are!).

The warnings while loading are okay, they resolve themselves later, it's a weird load order issue to do with shared variables, but it doesn't adversely affect anything.

The error you're getting is a bug, the fix is to change initializeContext's use of "gl TRUE" to a straight 1. The gl variable is not expected to be set up in initializeContext. I've published the fix to public store - but if you're having trouble loading from there still, just patch your local copy.

Let me know if you have any other crashes.

A word of warning on Linux - most Linux installations come with OpenGL 1.x, which is not sufficient to run any of the code that comes in the OpenGL package. You need OpenGL 2.x at a minimum and newer versions are desirable. You can only get new OpenGL rendering on Linux if you have a good graphics card and a good driver for it - the free drivers that come with X11 are usually not good enough. This is just a public service announcement, make sure you check your set up with glxinfo.

Cheers,
Michael

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] VWNC 7.7 OPENGL

Hamid Hadavi
In reply to this post by Hamid Hadavi
> > > Message: 4

> > > Date: Fri, 29 Jan 2010 09:45:15 -0800
> > > From: Michael Lucas-Smith <[hidden email]>
> > > Subject: Re: [vwnc] VWNC 7.7 OPENGL
> > > To: [hidden email]
> > > Message-ID: <[hidden email]>
> > > Content-Type: text/plain; charset="iso-8859-1"
> > >
> > > On 1/29/10 8:13 AM, Hamid Hadavi wrote:
> > > > Hello,
> > > > I am trying to load the OPENGL packages from the public repository
> > > > into a vwnc 7.7 running on 32 bit x86 linux. Unfortunately, the load
> > > > process goes into some infinite loop from which it never recovers.
> > Has
> > > > anyone had any prior experience with OPENGL packages? Is there a
> > > > particular way to load/install these packages?
> > >
> > > I've never had it go in to an infinite loop before - what about loading
> > > the parcels that come with 7.7 instead?
> > >
> > When I load the parcels that come with 7.7 I get a series of
> > undeclared variables (as listed below). When I try to run any of the
> > lessons in OPENGL-LESSONS package, I get error messages. I've tried in
> > two different linux installations getting the same errors.
> > I've pasted the stack and the errors produced below. Am I loading the
> > parcels wrong?
> First a disclaimer - the opengl code base is not officially supported
> and I'm essentially a 1.5 man team on it (I occasionally get
> contributions - thanks to you people, you know who you are!).
>
> The warnings while loading are okay, they resolve themselves later, it's
> a weird load order issue to do with shared variables, but it doesn't
> adversely affect anything.
>
> The error you're getting is a bug, the fix is to change
> initializeContext's use of "gl TRUE" to a straight 1. The gl variable is
> not expected to be set up in initializeContext. I've published the fix
> to public store - but if you're having trouble loading from there still,
> just patch your local copy.
>
> Let me know if you have any other crashes.
>
> A word of warning on Linux - most Linux installations come with OpenGL
> 1.x, which is not sufficient to run any of the code that comes in the
> OpenGL package. You need OpenGL 2.x at a minimum and newer versions are
> desirable. You can only get new OpenGL rendering on Linux if you have a
> good graphics card and a good driver for it - the free drivers that come
> with X11 are usually not good enough. This is just a public service
> announcement, make sure you check your set up with glxinfo.
>
> Cheers,
> Michael
> -------------- next part --------------

Michael, thanks for your help. 
I have patched the local code with the fix you provided (Changed "gl True" to "1" in initializeContext). Unfortunately a new error is generated as listed below. 
Hamid 

Unhandled exception: Message not understood: #glXDestroyContext:with:
OpenGL.OpenGLInterface(Object)>>doesNotUnderstand:
GLX.RenderContextX11Window>>release
OpenGL.Lessons.Lesson00RenderContext(OpenGL.Lessons.Lesson)>>releaseOpenGL
optimized [] in OpenGL.Lessons.Lesson00RenderContext>>demo
BlockClosure>>valueAsUnwindBlockFrom:
BlockClosure>>ensure:
OpenGL.Lessons.Lesson00RenderContext>>demo
OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:arguments:
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:
TextEditorController(ParagraphEditor)>>evaluateCompiled:
optimized [] in ParagraphEditor>>evaluateSelection
BlockClosure>>ensure:
Cursor>>showWhile:
TextEditorController(ParagraphEditor)>>evaluateSelection
optimized [] in ParagraphEditor>>doIt
BlockClosure>>on:do:
TextEditorController(ParagraphEditor)>>doIt
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserTextTool)>>doIt
Refactory.Browser.RBCommand>>perform:on:
Refactory.Browser.RBCommand>>performWith:
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserApplicationModel)>>performAction:
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserApplicationModel)>>action:
optimized [] in Refactory.Browser.BrowserApplicationModel>>createActionMenuItemFrom:
TextEditorController>>dispatchBlockClosure:
TextEditorController>>dispatchMenuSelection:
TextEditorController(ControllerWithMenu)>>processMenu:at:centered:
TextEditorController(ControllerWithMenu)>>processMenuAt:centered:
TextEditorController(ControllerWithMenu)>>yellowButtonPressedEvent:
TextEditorController(ParagraphEditor)>>yellowButtonPressedEvent:
TextEditorController>>yellowButtonPressedEvent:
YellowButtonPressedEvent>>dispatchTo:
TextEditorController(ControllerWithMenu)>>handleEvent:
EventDispatcher>>dispatch:to:
EventDispatcher>>dispatchEvent:
YellowButtonPressedEvent(Event)>>dispatch
YellowButtonPressedEvent(Event)>>dispatchForWindowManager:
optimized [] in WindowManager>>safelyDispatchForWindowManager:
BlockClosure>>on:do:
WindowManager>>safelyDispatchForWindowManager:
WindowManager>>processNextEvent
optimized [] in [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in Process class>>forBlock:priority:

----------------------------------------------------------------------
OpenGL.OpenGLInterface(Object)>>doesNotUnderstand:
Receiver:
an OpenGL.OpenGLInterface
Arguments:
aMessage = a Message with selector: #glXDestroyContext:with: and arguments: #(156899728 a CPointer {0B987268} (GLXContext))
Temporaries:
excpt = a MessageNotUnderstood
resumeValue = nil
Context PC = 25

----------------------------------------------------------------------
GLX.RenderContextX11Window>>release
Receiver:
a GLX.RenderContextX11Window
Instance Variables:
interface = an OpenGL.OpenGLInterface
view = an ApplicationWindow nil
vendor = 'Tungsten Graphics, Inc'
renderer = 'Mesa DRI Intel(R) 965GM GEM 20090712 2009Q2 RC3 x86/MMX/SSE2'
version = '2.1 Mesa 7.6'
program = nil
textures = an Array[8]
texturesHistory = an Array[8]
extensions = an OrderedCollection[112]
xif = a GLX.GLXInterface
drawableHandle = 69207024
context = a CPointer {0B987268} (GLXContext)
displayHandle = 156899728
Context PC = 5

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext(OpenGL.Lessons.Lesson)>>releaseOpenGL
Receiver:
a OpenGL.Lessons.Lesson00RenderContext
Instance Variables:
isRunning = nil
window = an ApplicationWindow nil
context = a GLX.RenderContextX11Window
renderJob = nil
resizeJob = nil
idleJob = nil
Context PC = 4

----------------------------------------------------------------------
optimized [] in OpenGL.Lessons.Lesson00RenderContext>>demo
Receiver:
an UndefinedObject
Temporaries:
.self = an OpenGL.Lessons.Lesson00RenderContext
Context PC = 11

----------------------------------------------------------------------
BlockClosure>>valueAsUnwindBlockFrom:
Receiver:
a BlockClosure
Instance Variables:
method = CompiledBlock [] in OpenGL.Lessons.Lesson00RenderContext>>demo
outerContext = nil
copiedValues = an OpenGL.Lessons.Lesson00RenderContext
Arguments:
aContextOrNil = nil
Temporaries:
shouldTerminate = false
Context PC = 10

----------------------------------------------------------------------
BlockClosure>>ensure:
Receiver:
a BlockClosure
Instance Variables:
method = CompiledBlock [] in OpenGL.Lessons.Lesson00RenderContext>>demo
outerContext = nil
copiedValues = an OpenGL.Lessons.Lesson00RenderContext
Arguments:
aBlock = BlockClosure [] in OpenGL.Lessons.Lesson00RenderContext>>demo
Temporaries:
result = a TextCollector on: Text for '
visualnc.im created at December 15, 2009 1:13:01 PM
Autoloading SUnitPreload from $(VISUALWORKS)/contributed/SUnit/SUnitPreload.pcl
/home/hamid/.vw77/image/visualnc.im created at January 29, 2010 7:03:38 PM
/home/hamid/.vw77/image/visualnc.im created at January 29, 2010 7:04:06 PM
Autoloading OpenGL-Windows from $(VISUALWORKS)/contributed/OpenGL-Windows.pcl
Autoloading DLLCC from $(VISUALWORKS)/dllcc/DLLCC.pcl
Autoloading OpenGL from $(VISUALWORKS)/contributed/OpenGL.pcl
Autoloading Graphics-Images-FixedPalettes from $(VISUALWORKS)/contributed/Graphics-Images-FixedPalettes.pcl
A_8 is Undeclared
BGRA_8888 is Undeclared
ARGB_8888 is Undeclared
ABGR_8888 is Undeclared
RGBA_8888 is Undeclared
RGB_888 is Undeclared
BGR_888 is Undeclared
Autoloading OpenGL-Linux from $(VISUALWORKS)/contributed/OpenGL-Linux.pcl
Autoloading OpenGL-MacOSX from $(VISUALWORKS)/contributed/OpenGL-MacOSX.pcl
Autoloading ObjectiveCConnect from $(VISUALWORKS)/contributed/ObjectiveCConnect.pcl
Autoloading SUnitToo from $(VISUALWORKS)/contributed/SUnitToo.pclSUnitToo suggests SUnitToo(ls)

NSString is Undeclared
NSOpenGLContext is Undeclared
NSOpenGLPixelFormat is Undeclared
Autoloading CairoGraphics from $(VISUALWORKS)/preview/cairo/CairoGraphics.pcl
Autoloading Weaklings from $(VISUALWORKS)/contributed/Weaklings.pcl
LittleEndianARGB is Undeclared
BigEndianARGB is Undeclared
Autoloading OpenGL-CairoGraphics from $(VISUALWORKS)/contributed/OpenGL-CairoGraphics.pcl
Autoloading OpenGL-Arithmetic from $(VISUALWORKS)/contributed/OpenGL-Arithmetic.pcl
Window Rendering:
Vendor: Tungsten Graphics, Inc
Renderer: Mesa DRI Intel(R) 965GM GEM 20090712 2009Q2 RC3 x86/MMX/SSE2
Version: 2.1 Mesa 7.6
VSync Enabled: false
Window Rendering:
Vendor: Tungsten Graphics, Inc
Renderer: Mesa DRI Intel(R) 965GM GEM 20090712 2009Q2 RC3 x86/MMX/SSE2
Version: 2.1 Mesa 7.6
VSync Enabled: false'
Context PC = 8

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext>>demo
Receiver:
a OpenGL.Lessons.Lesson00RenderContext
Instance Variables:
isRunning = nil
window = an ApplicationWindow nil
context = a GLX.RenderContextX11Window
renderJob = nil
resizeJob = nil
idleJob = nil
Temporaries:
pixmap = nil
image = nil
Context PC = 27




<a href="http://">

Tell the whole story with photos, right from your Messenger window. Learn how!
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] VWNC 7.7 OPENGL

Michael Lucas-Smith-2

> Michael, thanks for your help.
> I have patched the local code with the fix you provided (Changed "gl
> True" to "1" in initializeContext). Unfortunately a new error is
> generated as listed below.
>
Thanks for pointing this out. I don't have a good linux machine to work
on the linux version so I'm relying on people like you to test it. I do
test Windows and MacOSX more actively though.

The bug is in the #release method, the uses of 'interface' are incorrect
there, it should be 'xif'. I've published a new version of OpenGL-Linux
but you can patch it yourself too.

RenderContextX11Window>>release
     xif glXDestroyContext: displayHandle with: context.
     view isWindow ifFalse: [xif glXDestroyGLXPixmap: displayHandle
with: drawableHandle].
     super release

Cheers,
Michael
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] VWNC 7.7 OPENGL

Hamid Hadavi
Hello Michael, 
After patching the fix you provided, new error message is generated as below. 
I think in renderContextFor is looking for platformName which is 'RenderContextX11Window' and instead finds 'X11'?? Hardcoding platformName to 'RenderContextX11Window' did not resolve the issue, though. 

I do not have access to Windows or MacOS. Are you suggesting that if I get a Mac or Windows machine I can have a stable opengl baseline in vwnc 7.7?
Many thanks, Hamid     

Unhandled exception: unsupported platform: X11
OpenGL.RenderContext class(Object)>>error:
optimized [] in OpenGL.RenderContext class>>renderContextClassFor:
OrderedCollection>>detect:ifNone:
OpenGL.RenderContext class>>renderContextClassFor:
OpenGL.RenderContext class>>on:
OpenGL.Lessons.Lesson00RenderContext>>demo
OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:arguments:
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:
TextEditorController(ParagraphEditor)>>evaluateCompiled:
optimized [] in ParagraphEditor>>evaluateSelection
BlockClosure>>ensure:
Cursor>>showWhile:
TextEditorController(ParagraphEditor)>>evaluateSelection
optimized [] in ParagraphEditor>>doIt
BlockClosure>>on:do:
TextEditorController(ParagraphEditor)>>doIt
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserTextTool)>>doIt
Refactory.Browser.RBCommand>>perform:on:
Refactory.Browser.RBCommand>>performWith:
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserApplicationModel)>>performAction:
Refactory.Browser.BrowserCommentTool(Refactory.Browser.BrowserApplicationModel)>>action:
optimized [] in Refactory.Browser.BrowserApplicationModel>>createActionMenuItemFrom:
TextEditorController>>dispatchBlockClosure:
TextEditorController>>dispatchMenuSelection:
TextEditorController(ControllerWithMenu)>>processMenu:at:centered:
TextEditorController(ControllerWithMenu)>>processMenuAt:centered:
TextEditorController(ControllerWithMenu)>>yellowButtonPressedEvent:
TextEditorController(ParagraphEditor)>>yellowButtonPressedEvent:
TextEditorController>>yellowButtonPressedEvent:
YellowButtonPressedEvent>>dispatchTo:
TextEditorController(ControllerWithMenu)>>handleEvent:
EventDispatcher>>dispatch:to:
EventDispatcher>>dispatchEvent:
YellowButtonPressedEvent(Event)>>dispatch
YellowButtonPressedEvent(Event)>>dispatchForWindowManager:
optimized [] in WindowManager>>safelyDispatchForWindowManager:
BlockClosure>>on:do:
WindowManager>>safelyDispatchForWindowManager:
WindowManager>>processNextEvent
optimized [] in [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in WindowManager>>newProcess
BlockClosure>>on:do:
optimized [] in Process class>>forBlock:priority:

----------------------------------------------------------------------
OpenGL.RenderContext class(Object)>>error:
Receiver:
a OpenGL.RenderContext class
Instance Variables:
superclass = Object
methodDict = a MethodDictionary[24]
format = 16393
subclasses = an Array[3]
instanceVariables = an Array[9]
organization = ('accessing' #bounds #extensions #program #program: #renderer #vendor #version #view)
('private' #activateContext #assignTextureUnitTo: #deactivateContext #leastUsedTextureUnit #resetProgram #resetTextures)
('initialize-release' #initialize: #initializeContext #initializeInterface #initializeParameters #on:)
('api' #activate #deactivate #flush #resize #whileCurrentDo:)

name = #RenderContext
classPool = a NameSpaceOfClass[1]
environment = a NameSpace[34]
Arguments:
aStringOrMessage = 'unsupported platform: X11'
Context PC = 6

----------------------------------------------------------------------
optimized [] in OpenGL.RenderContext class>>renderContextClassFor:
Receiver:
an UndefinedObject
Temporaries:
.self = OpenGL.RenderContext
.platformName = 'X11'
Context PC = 10

----------------------------------------------------------------------
OrderedCollection>>detect:ifNone:
Receiver:
an OrderedCollection
Instance Variables:
firstIndex = 1
lastIndex = 11
Arguments:
aBlock = BlockClosure [] in OpenGL.RenderContext class>>renderContextClassFor:
exceptionBlock = BlockClosure [] in OpenGL.RenderContext class>>renderContextClassFor:
Temporaries:
i = 12
each = Cocoa.RenderContextCocoaFloatArray
Context PC = 29

----------------------------------------------------------------------
OpenGL.RenderContext class>>renderContextClassFor:
Receiver:
a OpenGL.RenderContext class
Instance Variables:
superclass = Object
methodDict = a MethodDictionary[24]
format = 16393
subclasses = an Array[3]
instanceVariables = an Array[9]
organization = ('accessing' #bounds #extensions #program #program: #renderer #vendor #version #view)
('private' #activateContext #assignTextureUnitTo: #deactivateContext #leastUsedTextureUnit #resetProgram #resetTextures)
('initialize-release' #initialize: #initializeContext #initializeInterface #initializeParameters #on:)
('api' #activate #deactivate #flush #resize #whileCurrentDo:)

name = #RenderContext
classPool = a NameSpaceOfClass[1]
environment = a NameSpace[34]
Arguments:
aWindowOrPixmap = Depth32Image(extent: 1 @ 1 depth: 32)
Temporaries:
platformName = 'X11'
Context PC = 21

----------------------------------------------------------------------
OpenGL.RenderContext class>>on:
Receiver:
a OpenGL.RenderContext class
Instance Variables:
superclass = Object
methodDict = a MethodDictionary[24]
format = 16393
subclasses = an Array[3]
instanceVariables = an Array[9]
organization = ('accessing' #bounds #extensions #program #program: #renderer #vendor #version #view)
('private' #activateContext #assignTextureUnitTo: #deactivateContext #leastUsedTextureUnit #resetProgram #resetTextures)
('initialize-release' #initialize: #initializeContext #initializeInterface #initializeParameters #on:)
('api' #activate #deactivate #flush #resize #whileCurrentDo:)

name = #RenderContext
classPool = a NameSpaceOfClass[1]
environment = a NameSpace[34]
Arguments:
aView = Depth32Image(extent: 1 @ 1 depth: 32)
Context PC = 5

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext>>demo
Receiver:
a OpenGL.Lessons.Lesson00RenderContext
Instance Variables:
isRunning = nil
window = an ApplicationWindow nil
context = a GLX.RenderContextX11Window
renderJob = nil
resizeJob = nil
idleJob = nil
Temporaries:
pixmap = nil
image = Depth32Image(extent: 1 @ 1 depth: 32)
Context PC = 44

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
Receiver:
a OpenGL.Lessons.Lesson00RenderContext class
Instance Variables:
superclass = OpenGL.Lessons.Lesson
methodDict = a MethodDictionary[1]
format = 16390
subclasses = nil
instanceVariables = an Array[0]
organization = ('rendering' #demo)

name = #Lesson00RenderContext
classPool = a NameSpaceOfClass[0]
environment = a NameSpace[24]
Context PC = 4

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:arguments:
Receiver:
a OpenGL.Lessons.Lesson00RenderContext class
Instance Variables:
superclass = OpenGL.Lessons.Lesson
methodDict = a MethodDictionary[1]
format = 16390
subclasses = nil
instanceVariables = an Array[0]
organization = ('rendering' #demo)

name = #Lesson00RenderContext
classPool = a NameSpaceOfClass[0]
environment = a NameSpace[24]
Arguments:
method = AnnotatedMethod OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
args = an Array[0]
Context PC = 5

----------------------------------------------------------------------
OpenGL.Lessons.Lesson00RenderContext class(Object)>>performMethod:
Receiver:
a OpenGL.Lessons.Lesson00RenderContext class
Instance Variables:
superclass = OpenGL.Lessons.Lesson
methodDict = a MethodDictionary[1]
format = 16390
subclasses = nil
instanceVariables = an Array[0]
organization = ('rendering' #demo)

name = #Lesson00RenderContext
classPool = a NameSpaceOfClass[0]
environment = a NameSpace[24]
Arguments:
method = AnnotatedMethod OpenGL.Lessons.Lesson00RenderContext class>>unboundMethod
Context PC = 5



> Date: Sat, 30 Jan 2010 15:01:25 -0800
> From: [hidden email]
> To: [hidden email]; [hidden email]
> Subject: Re: [vwnc] VWNC 7.7 OPENGL
>
>
> > Michael, thanks for your help.
> > I have patched the local code with the fix you provided (Changed "gl
> > True" to "1" in initializeContext). Unfortunately a new error is
> > generated as listed below.
> >
> Thanks for pointing this out. I don't have a good linux machine to work
> on the linux version so I'm relying on people like you to test it. I do
> test Windows and MacOSX more actively though.
>
> The bug is in the #release method, the uses of 'interface' are incorrect
> there, it should be 'xif'. I've published a new version of OpenGL-Linux
> but you can patch it yourself too.
>
> RenderContextX11Window>>release
> xif glXDestroyContext: displayHandle with: context.
> view isWindow ifFalse: [xif glXDestroyGLXPixmap: displayHandle
> with: drawableHandle].
> super release
>
> Cheers,
> Michael


Windows Live Messenger makes it easier to stay in touch - learn how!
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] VWNC 7.7 OPENGL

Michael Lucas-Smith-2
On 1/30/10 5:09 PM, Hamid Hadavi wrote:
Hello Michael, 
After patching the fix you provided, new error message is generated as below. 
I think in renderContextFor is looking for platformName which is 'RenderContextX11Window' and instead finds 'X11'?? Hardcoding platformName to 'RenderContextX11Window' did not resolve the issue, though. 

It depends on which part of Lesson 0 is running. It tried to open up a context on an Image, Pixmap and Window. I suspct Pixmap won't work and perhaps Image won't work, but Window should work. If you step through the #demo method you'll see it do each type of context one after the other, try each section individually to see which work and which don't.
I do not have access to Windows or MacOS. Are you suggesting that if I get a Mac or Windows machine I can have a stable opengl baseline in vwnc 7.7?
Yes you're much more likely to have success. MacOSX in particular is good for OpenGL as it's part of the graphics core. Windows is good if you have your drivers up to date (the Microsoft windows opengl library is very very old).

Cheers,
Michael

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc