3D gadgets issue

Advanced game related topics
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

3D gadgets issue

Post by IdeasVacuum »

PB 4.40 (x86)

Happy New Year one and all :mrgreen:

If I try to use 3D gadgets, I get a crash moments after the window is displayed:

Microsoft Visual C++ Runtime Library
Assertion failed!

Program: ...
File: c:\svn\trunk\ogre\cegui\include\CEGUISingleton.h
Line: 79

Expression: ms_Singleton

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts

Code: Select all


If InitEngine3D() = 0
                  
        MessageRequester("Problem","InitEngine3D Failure",#PB_MessageRequester_Ok | #MB_ICONERROR)
        End

Else

        If InitSprite() = 0
        
                MessageRequester("Problem","InitSprite Failure",#PB_MessageRequester_Ok | #MB_ICONERROR)
                End
        
        Else
        
                If OpenWindow(0, 0, 0, 800, 600, "Gadget3d Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
        
                       If OpenWindowedScreen(WindowID(0), 0, 0, 800, 600, 0, 0, 0, #PB_Screen_NoSynchronization)
        
                                Add3DArchive("C:\Gadget3dTest\Data", #PB_3DArchive_FileSystem)
                                 LoadTexture(1, "Image.bmp")
                               ImageGadget3D(2, 100, 100, 600, 400, TextureID(1))
        
                       EndIf
        
                EndIf
        
        EndIf

EndIf

The "c:\svn\trunk\ogre\cegui\include\CEGUISingleton.h" path info is a mystery - perhaps a hard-coded path in CEGUI that shouldn't be there?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Fred
Administrator
Administrator
Posts: 18252
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: 3D gadgets issue

Post by Fred »

You missing the GUI includes (to be added to AddArchive3D()), look in the gadget3d.pb example. You should have a CEGUI.log file as well, which could help debugging.
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: 3D gadgets issue

Post by IdeasVacuum »

Hi Fred

The gadget3d.pb example has this:

Code: Select all

Add3DArchive("GUI/", #PB_3DArchive_FileSystem)
There is no indication of what should be in that folder though. In "C:\Program Files\PureBasic\Examples\Sources" there is a "GUI" folder, so I tried that, but it only contains the following files:

Commonv2c.ttf
Commonwealth-10.font
TaharezLook.imageset
TaharezLook.looknfeel
TaharezLook.scheme
TaharezLook.tga

Is it the case that the CEGUI files are not bundled with PB4.40? I'm confused.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Fred
Administrator
Administrator
Posts: 18252
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: 3D gadgets issue

Post by Fred »

These files should be enough to get the GUI working. Does the gadget3d.pb example works for you ?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: 3D gadgets issue

Post by IdeasVacuum »

Hello Fred

Thank you for responding. This probably too trivial to waste your time on it. The gadget3d.pb example does indeed work, but my simplified code still fails. I have discovered one little thing, I had to replace all the relative paths used in the code to full paths. i.e.

Code: Select all

;This fails:

  Add3DArchive("Data\", #PB_3DArchive_FileSystem)
  Add3DArchive("GUI\", #PB_3DArchive_FileSystem)
  Add3DArchive("Data\skybox.zip", #PB_3DArchive_Zip)
 ImageGadget(#GADGET_Logo, 6, Top, 0, 0, LoadImage(0,"Data/PureBasicLogo.bmp"), #PB_Image_Border)

;This Works:

  Add3DArchive("C:\PROJECTS_DrvC\3dGadgetSample\Data", #PB_3DArchive_FileSystem)
  Add3DArchive("C:\PROJECTS_DrvC\3dGadgetSample\GUI", #PB_3DArchive_FileSystem)
  Add3DArchive("C:\PROJECTS_DrvC\3dGadgetSample\Data\skybox.zip", #PB_3DArchive_Zip)
ImageGadget(#GADGET_Logo, 6, Top, 0, 0, LoadImage(0,"C:\PROJECTS_DrvC\3dGadgetSample\Data\PureBasicLogo.bmp"), #PB_Image_Border)

Not directly related to the issue but seems pretty strange and likely to be a problem because the paths can't be safely hard-coded if the exe is to be distributed. In the very short time I have been a PB User, I definitely see more little problems like this from PB4.40 than I did from PB4.31. I have never had both versions installed at the same time though. :?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: 3D gadgets issue

Post by Comtois »

work fine, here is my test (i changed few lines in gadget3D.pb example)
To test , i created a folder C:\PROJECTS_DrvC\3dGadgetSample (and copied GUI and DATA folder from PureBasic\Examples\Sources)

Source is in 3dGadgetSample folder and i use 4.40.

Code: Select all

#CameraSpeed = 10
#MainWindow = 0
#CloseButton = 0
#Image3D = 1

InitEngine3D() 
InitSprite() 
InitKeyboard()
InitMouse()
OpenWindow(0, 0, 0, 800, 600, "Gadget3d Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0), 0, 0, 800, 600, 0, 0, 0, #PB_Screen_NoSynchronization)
Add3DArchive("Data\", #PB_3DArchive_FileSystem)
Add3DArchive("GUI\", #PB_3DArchive_FileSystem)
Add3DArchive("Data\skybox.zip", #PB_3DArchive_Zip)

SkyBox("desert07.jpg")
LoadTexture(0, "PureBasic.Bmp")

CreateCamera(0, 0, 0, 100, 100)  ; Front camera
CameraLocate(0,0,100,100)
    
OpenWindow3D(#MainWindow, 100, 100, 400, 400, "Hello in 3D !")
ButtonGadget3D(#CloseButton, 10, 360, 120, 25, "Close")
ImageGadget3D(#Image3D, 10,40, 168, 35, TextureID(0), #PB_Image3D_Border)			
ShowGUI(128, 1) ; Display the GUI, semi-transparent and display the mouse cursor
		
Repeat
 
  If ExamineKeyboard()
    Input$ = KeyboardInkey()
  EndIf
  
  If ExamineMouse()
    InputEvent3D(MouseX(), MouseY(), MouseButton(#PB_MouseButton_Left), Input$)
  EndIf
  
  ; Handle the GUI 3D events, it's similar to regular GUI events
  ;
  Repeat
  	Event = WindowEvent3D()
  	
  	Select Event
  		Case #PB_Event3D_Gadget
  		  If EventGadget3D() = #CloseButton
  		    CloseWindow3D(#MainWindow)
  		  EndIf
  			
  	EndSelect
 	Until Event = 0
 	
  RenderWorld()
  
  FlipBuffers()
Until KeyboardPushed(#PB_Key_Escape) Or Quit = 1
Last edited by Comtois on Sat Jan 02, 2010 10:05 pm, edited 1 time in total.
Please correct my english
http://purebasic.developpez.com/
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: 3D gadgets issue

Post by IdeasVacuum »

Hello Comtois

On my machine, your code fails (as does my modified Gadget3d) here:

Code: Select all

LoadTexture(0, "PureBasic.Bmp")
ImageGadget3D(#Image3D, 10,40, 168, 35, TextureID(0), #PB_Image3D_Border)
If I use the command pair in this way, it will always fail, regardless of the 'full path required' issue, 2D and 3D.

If I use this syntax:

Code: Select all

ImageGadget3D(2, 100, 100, 600, 400, LoadTexture(1, "Image.bmp"))


....it works, but I then get the 'Assertion failed' crash just as with my simplified example (to which I added the "ShowGui()" command).

My install of PB4.40 is squeaky-clean, but I'm wondering if the PB4.40 package is missing some files, such that an install on top of an existing previous release might work better. I don't know, just clutching at straws because I'm a PB newbie. I had written a few util programs with PB4.31 without issues (other than self-inflicted ones!), but treading in treacle with PB4.40 working on a more ambitious program. I can't help feeling that a brain cell plug-in might help........
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Comtois
Addict
Addict
Posts: 1431
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: 3D gadgets issue

Post by Comtois »

Have a look in your 3dGadgetSample folder, you should see 2 files : CEGUI.log and Ogre.log.

Here is my CEGUI.log, you can compare with yours.
02/01/2010 21:17:58 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
02/01/2010 21:17:58 (Std) + Crazy Eddie's GUI System - Event log +
02/01/2010 21:17:58 (Std) + (http://www.cegui.org.uk/) +
02/01/2010 21:17:58 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

02/01/2010 21:17:58 (Std) CEGUI::Logger singleton created. (003B8A78)
02/01/2010 21:17:58 (Std) ---- Begining CEGUI System initialisation ----
02/01/2010 21:17:58 (Std) CEGUI::ImagesetManager singleton created (009A0878)
02/01/2010 21:17:58 (Std) CEGUI::FontManager singleton created. (009A0848)
02/01/2010 21:17:58 (Std) CEGUI::WindowFactoryManager singleton created
02/01/2010 21:17:58 (Std) CEGUI::WindowManager singleton created (009A6AD8)
02/01/2010 21:17:58 (Std) CEGUI::SchemeManager singleton created. (009A6230)
02/01/2010 21:17:58 (Std) CEGUI::MouseCursor singleton created. (009A8870)
02/01/2010 21:17:58 (Std) CEGUI::GlobalEventSet singleton created. (009CA610)
02/01/2010 21:17:58 (Std) CEGUI::WidgetLookManager singleton created. (009A61F8)
02/01/2010 21:17:58 (Std) CEGUI::WindowRendererManager singleton created (009A9740)
02/01/2010 21:17:58 (Std) WindowFactory for 'DefaultWindow' windows added. (106C6890)
02/01/2010 21:17:58 (Std) WindowFactory for 'DragContainer' windows added. (106C6930)
02/01/2010 21:17:58 (Std) WindowFactory for 'ScrolledContainer' windows added. (106C69D0)
02/01/2010 21:17:58 (Std) WindowFactory for 'ClippedContainer' windows added. (106C6A70)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Checkbox' windows added. (106C6B10)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/PushButton' windows added. (106C7470)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/RadioButton' windows added. (106C7510)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Combobox' windows added. (106C6C50)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/ComboDropList' windows added. (106C6BB0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Editbox' windows added. (106C6CF0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/FrameWindow' windows added. (106C6D90)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/ItemEntry' windows added. (106C6E30)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Listbox' windows added. (106C7010)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/ListHeader' windows added. (106C6ED0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (106C6F70)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Menubar' windows added. (106C7150)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/PopupMenu' windows added. (106C7330)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/MenuItem' windows added. (106C70B0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows added. (106C71F0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (106C7290)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/ProgressBar' windows added. (106C73D0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows added. (106C75B0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Scrollbar' windows added. (106C7650)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Slider' windows added. (106C76F0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (106C7790)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (106C7830)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (106C78D0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (106C7970)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (106C7A10)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (106C7AB0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (106C7B50)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (106C7BF0)
02/01/2010 21:17:58 (Std) WindowFactory for 'CEGUI/Tree' windows added. (106C7C90)
02/01/2010 21:17:58 (Std) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
02/01/2010 21:17:58 (Std) CEGUI::System singleton created. (003B5290)
02/01/2010 21:17:58 (Std) ---- CEGUI System initialisation completed ----
02/01/2010 21:17:58 (Std) ---- Version 0.6.2 ----
02/01/2010 21:17:58 (Std) ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
02/01/2010 21:17:58 (Std) ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
02/01/2010 21:17:58 (Std) ---- Scripting module is: None ----
02/01/2010 21:17:58 (Std) Attempting to load Scheme from file 'TaharezLook.scheme'.
02/01/2010 21:17:58 (Std) Attempting to create an Imageset from the information specified in file 'TaharezLook.imageset'.
02/01/2010 21:17:58 (Std) Started creation of Imageset from XML specification:
02/01/2010 21:17:58 (Std) ---- CEGUI Imageset name: TaharezLook
02/01/2010 21:17:58 (Std) ---- Source texture file: TaharezLook.tga in resource group: (Default)
02/01/2010 21:17:58 (Std) Attempting to create Font from the information specified in file 'Commonwealth-10.font'.
02/01/2010 21:17:58 (Std) Started creation of FreeType Font:
02/01/2010 21:17:58 (Std) ---- CEGUI font name: Commonwealth-10
02/01/2010 21:17:58 (Std) ---- Source file: Commonv2c.ttf in resource group: (Default)
02/01/2010 21:17:58 (Std) ---- Real point size: 10
02/01/2010 21:17:58 (Std) Succsessfully loaded 219 glyphs
02/01/2010 21:17:58 (Std) ===== Falagard 'root' element: look and feel parsing begins =====
02/01/2010 21:17:58 (Std) ===== Look and feel parsing completed =====
02/01/2010 21:17:58 (Std) No window renderer factories specified for module 'CEGUIFalagardWRBase' - adding all available factories...
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Button' added. (106CF5C8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Default' added. (106CF7A8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Editbox' added. (106CE808)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/FrameWindow' added. (106CF708)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/ItemEntry' added. (106CED08)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/ListHeader' added. (106CE6C8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/ListHeaderSegment' added. (106CEA88)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Listbox' added. (106CF3E8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Menubar' added. (106CEB28)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/MenuItem' added. (106CF028)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/MultiColumnList' added. (106CEEE8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/MultiLineEditbox' added. (106CE768)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/PopupMenu' added. (106CF348)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/ProgressBar' added. (106CEBC8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/ScrollablePane' added. (106CF488)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Scrollbar' added. (106CF2A8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Slider' added. (106CF528)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Static' added. (106CF208)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/StaticImage' added. (106CF668)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/StaticText' added. (106CEF88)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/SystemButton' added. (106CEC68)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/TabButton' added. (106CEDA8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/TabControl' added. (106CE948)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Titlebar' added. (106CF168)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/ToggleButton' added. (106CE9E8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Tooltip' added. (106CE8A8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/ItemListbox' added. (106CF0C8)
02/01/2010 21:17:58 (Std) WindowRendererFactory 'Falagard/Tree' added. (106CEE48)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Button' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/Button'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Checkbox' using base type 'CEGUI/Checkbox', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/Checkbox'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/ImageButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/ImageButton'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/RadioButton' using base type 'CEGUI/RadioButton', window renderer 'Falagard/ToggleButton' and Look'N'Feel 'TaharezLook/RadioButton'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/FrameWindow' using base type 'CEGUI/FrameWindow', window renderer 'Falagard/FrameWindow' and Look'N'Feel 'TaharezLook/FrameWindow'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Titlebar' using base type 'CEGUI/Titlebar', window renderer 'Falagard/Titlebar' and Look'N'Feel 'TaharezLook/Titlebar'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/SystemButton' using base type 'CEGUI/PushButton', window renderer 'Falagard/SystemButton' and Look'N'Feel 'TaharezLook/Button'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Editbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/Editbox'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/MultiLineEditbox' using base type 'CEGUI/MultiLineEditbox', window renderer 'Falagard/MultiLineEditbox' and Look'N'Feel 'TaharezLook/MultiLineEditbox'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Menubar' using base type 'CEGUI/Menubar', window renderer 'Falagard/Menubar' and Look'N'Feel 'TaharezLook/Menubar'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/PopupMenu' using base type 'CEGUI/PopupMenu', window renderer 'Falagard/PopupMenu' and Look'N'Feel 'TaharezLook/PopupMenu'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/MenuItem' using base type 'CEGUI/MenuItem', window renderer 'Falagard/MenuItem' and Look'N'Feel 'TaharezLook/MenuItem'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/AlternateProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/AltProgressBar'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/ProgressBar' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/ProgressBar'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/VUMeter' using base type 'CEGUI/ProgressBar', window renderer 'Falagard/ProgressBar' and Look'N'Feel 'TaharezLook/VUMeter'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/VerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/VerticalScrollbar'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/HorizontalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/HorizontalScrollbar'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/VerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/VerticalScrollbarThumb'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/HorizontalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/HorizontalScrollbarThumb'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbar' using base type 'CEGUI/Scrollbar', window renderer 'Falagard/Scrollbar' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbar'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/LargeVerticalScrollbarThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/LargeVerticalScrollbarThumb'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/TabButton' using base type 'CEGUI/TabButton', window renderer 'Falagard/TabButton' and Look'N'Feel 'TaharezLook/TabButton'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/TabControl' using base type 'CEGUI/TabControl', window renderer 'Falagard/TabControl' and Look'N'Feel 'TaharezLook/TabControl'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/TabContentPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabContentPane'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/TabButtonPane' using base type 'DefaultWindow', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/TabButtonPane'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/ComboDropList' using base type 'CEGUI/ComboDropList', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/ComboDropList'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/ComboEditbox' using base type 'CEGUI/Editbox', window renderer 'Falagard/Editbox' and Look'N'Feel 'TaharezLook/ComboEditbox'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Combobox' using base type 'CEGUI/Combobox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Combobox'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Listbox' using base type 'CEGUI/Listbox', window renderer 'Falagard/Listbox' and Look'N'Feel 'TaharezLook/Listbox'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/ListHeader' using base type 'CEGUI/ListHeader', window renderer 'Falagard/ListHeader' and Look'N'Feel 'TaharezLook/ListHeader'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/ListHeaderSegment' using base type 'CEGUI/ListHeaderSegment', window renderer 'Falagard/ListHeaderSegment' and Look'N'Feel 'TaharezLook/ListHeaderSegment'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/MultiColumnList' using base type 'CEGUI/MultiColumnList', window renderer 'Falagard/MultiColumnList' and Look'N'Feel 'TaharezLook/MultiColumnList'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Slider' using base type 'CEGUI/Slider', window renderer 'Falagard/Slider' and Look'N'Feel 'TaharezLook/Slider'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/SliderThumb' using base type 'CEGUI/Thumb', window renderer 'Falagard/Button' and Look'N'Feel 'TaharezLook/SliderThumb'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/ScrollablePane' using base type 'CEGUI/ScrollablePane', window renderer 'Falagard/ScrollablePane' and Look'N'Feel 'TaharezLook/ScrollablePane'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Spinner' using base type 'CEGUI/Spinner', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/Spinner'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Tooltip' using base type 'CEGUI/Tooltip', window renderer 'Falagard/Tooltip' and Look'N'Feel 'TaharezLook/Tooltip'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/StaticImage' using base type 'DefaultWindow', window renderer 'Falagard/StaticImage' and Look'N'Feel 'TaharezLook/StaticImage'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/StaticText' using base type 'DefaultWindow', window renderer 'Falagard/StaticText' and Look'N'Feel 'TaharezLook/StaticText'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/ItemListbox' using base type 'CEGUI/ItemListbox', window renderer 'Falagard/ItemListbox' and Look'N'Feel 'TaharezLook/ItemListbox'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/ListboxItem' using base type 'CEGUI/ItemEntry', window renderer 'Falagard/ItemEntry' and Look'N'Feel 'TaharezLook/ListboxItem'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/GroupBox' using base type 'CEGUI/GroupBox', window renderer 'Falagard/Default' and Look'N'Feel 'TaharezLook/GroupBox'. (0013E56C)
02/01/2010 21:17:58 (Std) Creating falagard mapping for type 'TaharezLook/Tree' using base type 'CEGUI/Tree', window renderer 'Falagard/Tree' and Look'N'Feel 'TaharezLook/Tree'. (0013E56C)
02/01/2010 21:17:58 (Std) Attempting to create Imageset 'pb_11090176' with texture only.
02/01/2010 21:17:58 (Std) Attempting to create Imageset 'Commonwealth-10_auto_glyph_images_ ' with texture only.
Please correct my english
http://purebasic.developpez.com/
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: 3D gadgets issue

Post by IdeasVacuum »

Thank you for your help Comtois.

The log files are not produced. CEGUI launches the Command Window and a similar report to the log is produced. I can get a report from the code that works and the code that does not, but have not seen anything meaningful. I have too much work to do right now and so I am abandoning the use of 3D Gadgets - I just don't have the time to spare to track down the cause of the error now, there are other issues that need more attention :lol:

When I started my post, I was hoping that someone knew the solution from having hit the same issue.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Re: 3D gadgets issue

Post by Foz »

Okay, I'm a bit late to the party for this thread, but the probable reason it fails is that you are using PureBasic x64, and the unpacker either isn't working or it dislikes 32 bit packed files.

Install PureBasic x86, and everything will work.

At least, that's what's happened for me :?
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: 3D gadgets issue

Post by IdeasVacuum »

Thanks for your reply Foz. I did not have the PBx64 version at the time, I was only working on WinXP 32bit. I have not had the time to play with 3D since then, just too busy.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: 3D gadgets issue

Post by Rook Zimbabwe »

I cannot get ANY text to display in PB4.51!

LOG:
20/01/2011 14:12:30 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
20/01/2011 14:12:30 (Std) + Crazy Eddie's GUI System - Event log +
20/01/2011 14:12:30 (Std) + (http://www.cegui.org.uk/) +
20/01/2011 14:12:30 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

20/01/2011 14:12:30 (Std) CEGUI::Logger singleton created. (01D48A08)
20/01/2011 14:12:30 (Std) ---- Begining CEGUI System initialisation ----
20/01/2011 14:12:30 (Std) CEGUI::ImagesetManager singleton created (01D7AB68)
20/01/2011 14:12:30 (Std) CEGUI::FontManager singleton created. (01D7AC30)
20/01/2011 14:12:30 (Std) CEGUI::WindowFactoryManager singleton created
20/01/2011 14:12:30 (Std) CEGUI::WindowManager singleton created (01D7D8B0)
20/01/2011 14:12:30 (Std) CEGUI::SchemeManager singleton created. (01D7B320)
20/01/2011 14:12:30 (Std) CEGUI::MouseCursor singleton created. (01D744A8)
20/01/2011 14:12:30 (Std) CEGUI::GlobalEventSet singleton created. (01D7DB60)
20/01/2011 14:12:30 (Std) CEGUI::WidgetLookManager singleton created. (01D7DC38)
20/01/2011 14:12:30 (Std) CEGUI::WindowRendererManager singleton created (01D7DCB8)
20/01/2011 14:12:30 (Std) WindowFactory for 'DefaultWindow' windows added. (106D0AC8)
20/01/2011 14:12:30 (Std) WindowFactory for 'DragContainer' windows added. (106D0B68)
20/01/2011 14:12:30 (Std) WindowFactory for 'ScrolledContainer' windows added. (106D0C08)
20/01/2011 14:12:30 (Std) WindowFactory for 'ClippedContainer' windows added. (106D0CA8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Checkbox' windows added. (106D0D48)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/PushButton' windows added. (106D16A8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/RadioButton' windows added. (106D1748)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Combobox' windows added. (106D0E88)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/ComboDropList' windows added. (106D0DE8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Editbox' windows added. (106D0F28)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/FrameWindow' windows added. (106D0FC8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/ItemEntry' windows added. (106D1068)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Listbox' windows added. (106D1248)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/ListHeader' windows added. (106D1108)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/ListHeaderSegment' windows added. (106D11A8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Menubar' windows added. (106D1388)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/PopupMenu' windows added. (106D1568)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/MenuItem' windows added. (106D12E8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/MultiColumnList' windows added. (106D1428)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/MultiLineEditbox' windows added. (106D14C8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/ProgressBar' windows added. (106D1608)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/ScrollablePane' windows added. (106D17E8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Scrollbar' windows added. (106D1888)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Slider' windows added. (106D1928)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Spinner' windows added. (106D19C8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/TabButton' windows added. (106D1A68)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/TabControl' windows added. (106D1B08)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Thumb' windows added. (106D1BA8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Titlebar' windows added. (106D1C48)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Tooltip' windows added. (106D1CE8)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/ItemListbox' windows added. (106D1D88)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/GroupBox' windows added. (106D1E28)
20/01/2011 14:12:30 (Std) WindowFactory for 'CEGUI/Tree' windows added. (106D1EC8)
20/01/2011 14:12:30 (Std) Window type alias named 'DefaultGUISheet' added for window type 'DefaultWindow'.
20/01/2011 14:12:30 (Std) CEGUI::System singleton created. (01D45220)
20/01/2011 14:12:30 (Std) ---- CEGUI System initialisation completed ----
20/01/2011 14:12:30 (Std) ---- Version 0.6.2 ----
20/01/2011 14:12:30 (Std) ---- Renderer module is: CEGUI::OgreRenderer - Official Ogre based renderer module for CEGUI ----
20/01/2011 14:12:30 (Std) ---- XML Parser module is: CEGUI::TinyXMLParser - Official tinyXML based parser module for CEGUI ----
20/01/2011 14:12:30 (Std) ---- Scripting module is: None ----
20/01/2011 14:12:30 (Std) Attempting to load Scheme from file 'TaharezLook.scheme'.
20/01/2011 14:12:30 (Error) Scheme::Scheme - loading of Scheme from file 'TaharezLook.scheme' failed.
20/01/2011 14:12:30 (Error) CEGUI::UnknownObjectException in file src/CEGUIWindowFactoryManager.cpp(180) : WindowFactoryManager::getFactory - A WindowFactory object, an alias, or mapping for 'TaharezLook/Button' Window objects is not registered with the system.
20/01/2011 14:12:35 (Error) CEGUI::UnknownObjectException in file src/CEGUIWindowFactoryManager.cpp(180) : WindowFactoryManager::getFactory - A WindowFactory object, an alias, or mapping for 'TaharezLook/StaticImage' Window objects is not registered with the system.
Where are these schemes located? I think that is the issue!
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: 3D gadgets issue

Post by IdeasVacuum »

I have not worked with 3D Gadgets since this attempt. The failure is the same in 4.51 so I think it is possible that maybe something is missing in the PB distribution or perhaps there is a dependency on a particular version of a VC lib.

Code: Select all

[ERROR] Invalid memory access. (read error at address 32)
Image

The error halts the code execution at line 21

Code: Select all

ImageGadget3D(2, 0, 0, 250, 250, TextureID(1))
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply