ceGUI for iPhone/iPod

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: ceGUI for iPhone/iPod

Postby CrazyEddie » Thu Oct 15, 2009 09:18

Are you able to dump or otherwise examine the content of the textures? This way we can establish whether the window was drawn to the texture correctly, which then allows us to identify where the issue actually lies (i.e. drawing the window to the texture, or drawing the texture with the window already drawn to the display).

I wonder, do you have movement working or is that waiting for me to do the multi-touch support? If it is working, what happens if you drag the window up and down? If it changes, with a kind of banding effect, this may indicate a viewport direction issue (where the Y axis is upside down, and throws the clipping rect positioning out).

CE.

ShiftZ
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Tue Aug 18, 2009 17:21

Re: ceGUI for iPhone/iPod

Postby ShiftZ » Thu Oct 15, 2009 13:04

Are you able to dump or otherwise examine the content of the textures?


Can you suggest some Windows OpenGL kit for dumping? I have used only NvPerfKit before.

I wonder, do you have movement working or is that waiting for me to do the multi-touch support?

These screenshots taken from Windows platform (thanks to OpenGL ES WinXP emulator - wrapper around original OpenGL), and yes, i can drag the window and nothing interest happens, it looks same.

Today im going to get run it on iPhone and see what happens.

ShiftZ
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Tue Aug 18, 2009 17:21

Re: ceGUI for iPhone/iPod

Postby ShiftZ » Fri Oct 16, 2009 00:09

Damn FreeType2, ugliest thing ever seen. I'd kill in place for such code design. Spent a whole day to get compiled on arm platform.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: ceGUI for iPhone/iPod

Postby CrazyEddie » Fri Oct 16, 2009 12:15

Can you suggest some Windows OpenGL kit for dumping? I have used only NvPerfKit before.

Hmmm, I don't really use Windows much for development (only for playing games :lol:). If you want something that's free, there is BuGLe, that has a debugger that can show textures and what have you, though I think you need MinGW and such to build it for Windows.

Did you resize the window at all? Did that show any change?

CE.

ShiftZ
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Tue Aug 18, 2009 17:21

Re: ceGUI for iPhone/iPod

Postby ShiftZ » Fri Oct 16, 2009 16:31

Yes, its resizeble and showing changes.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: ceGUI for iPhone/iPod

Postby CrazyEddie » Sat Oct 17, 2009 08:44

Showing changes correctly, or incorrectly?

ShiftZ
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Tue Aug 18, 2009 17:21

Re: ceGUI for iPhone/iPod

Postby ShiftZ » Sat Oct 17, 2009 18:39

Ok, i've ripped some pictures for you.

Image

Image

Diagnosis?


Showing changes correctly, or incorrectly?

Well, it looks exactly the same but smaller\bigger. Correctly same buggy window =)

ShiftZ
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Tue Aug 18, 2009 17:21

Re: ceGUI for iPhone/iPod

Postby ShiftZ » Sat Oct 17, 2009 18:48

Btw, im using OGLE http://ogle.eyebeamresearch.org
A very nice win32 ogl extractor. Ripped in 5 minute.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: ceGUI for iPhone/iPod

Postby CrazyEddie » Sat Oct 17, 2009 19:38

Diagnosis?

Looks like a clipping / scissor rect issue.

Thanks for the pointer to OGLE, perhaps I'll try it out sometime :P

CE.

ShiftZ
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Tue Aug 18, 2009 17:21

Re: ceGUI for iPhone/iPod

Postby ShiftZ » Sat Oct 17, 2009 20:13

Looks like a clipping / scissor rect issue.


10 points =)
Commenting glScissor in Geom buffer draw fixes the problem.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: ceGUI for iPhone/iPod

Postby CrazyEddie » Sun Oct 18, 2009 06:43

Though presumably you then lose window clipping? :)

ShiftZ
Not too shy to talk
Not too shy to talk
Posts: 38
Joined: Tue Aug 18, 2009 17:21

Re: ceGUI for iPhone/iPod

Postby ShiftZ » Mon Oct 19, 2009 16:05

i've found that you dont restore FBO binding like texture binding, you just drop it to zero. iPhone for example never uses Frame Buffer directly, it always uses FBO number 1, and then copy it in framebuffer. I believe someone might use FBO for postprocess or something and that could lead to confuse (like i have got). There is GL_FRAMEBUFFER_BINDING value for glGetIntegerv to retrive binded FBO.

PS Check PM

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: ceGUI for iPhone/iPod

Postby CrazyEddie » Tue Oct 20, 2009 08:44

This is something I actually pondered a few times; in my heart of hearts, I knew that restoring the FBO binding to 0 was not technically correct, though hoped I might get away with it - and I would have if it wasn't for those pesky kids :hammer:

Thanks :)

CE.

wolfmanfx
Just popping in
Just popping in
Posts: 4
Joined: Sun Feb 14, 2010 19:19

Re: ceGUI for iPhone/iPod

Postby wolfmanfx » Sun Feb 14, 2010 19:28

Hi,

Have you finished the pvr codec? Because i want to start with an implementation if its not done and hope it will get into cegui trunk. But if you have something it would be nice when you share it :)

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: ceGUI for iPhone/iPod

Postby CrazyEddie » Mon Feb 15, 2010 08:47

Hi,

Both the OpenGL ES renderer and PVR image codec are in current SVN trunk (the pvr coedc is at cegui/src/ImageCodecModules/PVRImageCodec). However, the supporting build systems and some other minor build related tweaks are still missing at the present time - this is something that we need to get to, though at the moment I have been focussing on other areas to the neglect of all thinks in trunk.

CE.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 9 guests