Web Toolbar by Wibiya

A minor success on Ubuntu Linux


Topic related to current development efforts on the core engine and demos

Regular

Posts: 34

Joined: Sat Jun 02, 2007 12:07 am

Post Sat Mar 22, 2008 7:04 pm

A minor success on Ubuntu Linux

For the record, the colors were screwed up when I used the OpenGL render on Vista too, so I think its something about my models and OpenGL.

http://www.robotechmmo.com/image/Screen40.png

Regular

Posts: 34

Joined: Sat Jun 02, 2007 12:07 am

Post Sun Mar 23, 2008 12:31 am

Fixed the texture problem for the mesh files.

User avatar

Team Member
Team Member

Posts: 1588

Joined: Thu Mar 02, 2006 11:29 pm

Location: Boston, MA, USA

Post Sun Mar 23, 2008 7:37 am

Very nice, so what dd you have o do to fix it? Or is the second shot from before?
Borrillis
The Steward of Axiom

Regular

Posts: 34

Joined: Sat Jun 02, 2007 12:07 am

Post Sun Mar 23, 2008 10:53 am

I was being a noob and didn't reference DevILCodecs so my textures were not being loaded.

This was easily discovered when I looked at the Axiom log.

While I have your attention, I would like to get some guidance on how you see the window events support working.

I tried to use...

  Code:
root.Initialize(false);
renderWindow = Root.Instance.CreateRenderWindow("AxiomLab", 900, 900, false);

WindowEventMonitor.Instance.RegisterWindow(renderWindow);
WindowEventMonitor.Instance.RegisterListener(renderWindow, new WindowListener());


RegisterWindow(...) throws an exception under OpenGL/SDL. I looked at the RegsiterWindow(...) code a bit and my impression was that it was built to expect windows handles (I'm not an SDL expert)

therefore, I have been using...

  Code:
// outter loop ommited for clarity

while (Sdl.SDL_PollEvent(out sdlEvent) != 0)
{
    switch (sdlEvent.type)
    {
        case Sdl.SDL_KEYDOWN:
        case Sdl.SDL_KEYUP:
            Console.WriteLine("Keyboard Event");
        break;

        case Sdl.SDL_VIDEORESIZE:
        {
            ParentResized(sdlEvent.resize.w, sdlEvent.resize.h);
        }
        break;

        case Sdl.SDL_QUIT: shutDown.Set(); break;
    }
}


This requires me to reference Tao.SDL directly.

Keep in mind that my next step is to get keyboard / mouse working.
User avatar

Team Member
Team Member

Posts: 1588

Joined: Thu Mar 02, 2006 11:29 pm

Location: Boston, MA, USA

Post Sun Mar 23, 2008 11:16 am

RE : SDL Keyboard and Mouse support, use this

The WindowEventSystem in crickhollow, really only works on windows so far.
Borrillis
The Steward of Axiom

Regular

Posts: 34

Joined: Sat Jun 02, 2007 12:07 am

Post Sun Mar 23, 2008 12:45 pm

SharpInput won't help with window resize events, which I still need. I can get the window resize events from SDL, but the viewport doesn't seem to be resizing properly. Or, more likely, I am not using it correctly. I will update when I have more info.

Just curious, why did you put SharpInput on CodePlex? I am definitely not a MS hater, but an open source site without SVN support in 2008 is not to be take seriously in my opinion.

Passer-by

Posts: 4

Joined: Wed Jan 17, 2007 2:24 am

Post Thu Apr 24, 2008 9:39 am

Amazing Kamujin! Did you have to do any special modifications to Ubuntu to use Axiom?

Regular

Posts: 34

Joined: Sat Jun 02, 2007 12:07 am

Post Fri Apr 25, 2008 3:24 pm

daedius wrote:Amazing Kamujin! Did you have to do any special modifications to Ubuntu to use Axiom?


No, Ubuntu 7.10 already had most if not all of the dependent libs. There are/were a decent number of issues with the SDL Render System, but there are not Ubuntu specific.

I gave Borrillis a patch with a few fixes and I know he's been working on some architectural changes to strengthen the code.

I am still seeing some issues with DXT compressed textures. This is what I am currently trying to fix. I have them working correctly in a pure OpenGL/SDL test app, so now I just have to figure out what Axiom is doing different.

Return to Engine Development

Who is online

Users browsing this forum: No registered users and 1 guest

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.