[SoC 2009 - Accepted] Unified Samples Framework & Browser

Threads related to Google Summer of Code
Post Reply
User avatar
omniter
OGRE Contributor
OGRE Contributor
Posts: 424
Joined: Thu Mar 19, 2009 8:08 am
Location: Canada
x 44

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by omniter »

Haha, no worries. I didn't mean to blame anyone!
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

omniter wrote:Haha, no worries. I didn't mean to blame anyone!
Oh it's ok. I just got new glasses. Things aren't blurry anymore. I blame the visual clarity. :wink:
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by sinbad »

masterfalcon wrote:
sinbad wrote:
omniter wrote:Somebody broke the branch and I can't compile it. :?
There was a minor Windows compile error which sneaked in with masterfalcon's Mac/iPhone fixes, I've fixed that. It's working fine for me.
Sorry about that. :oops:
Don't sweat it, things get temporarily broken in a minor way between platforms sometimes, after all we don't all test on every platform every single day. One tiny Windows compile error that took 2 minutes to fix is a small price to pay for all the good work you did in the branch for the Mac/iPhone. :)
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

sinbad wrote: Don't sweat it, things get temporarily broken in a minor way between platforms sometimes, after all we don't all test on every platform every single day. One tiny Windows compile error that took 2 minutes to fix is a small price to pay for all the good work you did in the branch for the Mac/iPhone. :)
Thanks! Speaking of iPhone. I'm making progress with the samples browser, but I've got this weird issue. The loading bar looks good, but the browser is shrunk down to 128x128 and I can't figure out why. The viewport and window have the correct dimensions and I think the OverlayManager reports the correct dimensions and scale.

Anyone have any ideas?

EDIT: Upon further investigation, this only happens if the carousel has any items in it. Since this only happens with the iPhone I'm thinking that it's either a bug in the GL ES Rendersystem or iPhone specific Overlay code. Yay!

It's progress at least.

EDIT 2: Turns out that it's a texture state problem.
Attachments
Screen shot 2009-10-04 at 7.53.51 PM.png
Screen shot 2009-10-04 at 7.53.51 PM.png (150.49 KiB) Viewed 2386 times
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by sinbad »

Haha, try poking something that size with your finger and getting what you want :)

Is it a state issue higher up the chain or something specific in the GLES RS?
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

sinbad wrote:Haha, try poking something that size with your finger and getting what you want :)

Is it a state issue higher up the chain or something specific in the GLES RS?
It seems to be specific to GLES. I'm getting loads of other errors with buffer objects...

More research tonight to see if it's an out of video memory issue.
User avatar
Florin
Kobold
Posts: 33
Joined: Thu Mar 19, 2009 3:15 am

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by Florin »

Is this application available for downloading ? Thank you !
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by sinbad »

It will be merged with trunk once the last platform issues are resolved, which is just iPhone now.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

sinbad wrote:It will be merged with trunk once the last platform issues are resolved, which is just iPhone now.
Speaking of which. Had a big breakthrough last night, no more crashes! Just need to resolve some layout issues(font sizes and other things like that). Also, since there's no escape key I need to implement a way to pause. Maybe the shake gesture?

EDIT: Just realized that the shake gesture is meant for undo/redo use only. You can overload it to do other tasks but Apple does not recommend it because it may confuse users. A 2 or 3 finger swipe might be a better route.
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by sinbad »

Great!

Actually shake still sounds reasonable to me, since it 'undoes' your navigation into the sample? Or am I reaching here?
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

sinbad wrote:Great!

Actually shake still sounds reasonable to me, since it 'undoes' your navigation into the sample? Or am I reaching here?
Ya know what? I don't think that's too far of a reach. Anyways, this is just for the sample browser, not for all Ogre or OIS based apps. Shake it is!
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

Has anyone else had trouble getting the penguin texture to show up?

Code: Select all

Can't assign material Penguin to SubEntity of Penguin because this Material does not exist. Have you forgotten to define it in a .material script?
I've looked around and can't find the material defined anywhere.
User avatar
omniter
OGRE Contributor
OGRE Contributor
Posts: 424
Joined: Thu Mar 19, 2009 8:08 am
Location: Canada
x 44

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by omniter »

Ah, sorry about that. I forgot to commit the Penguin.material file. :) It's added now. Tell me if you have any more problems.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

omniter wrote:Ah, sorry about that. I forgot to commit the Penguin.material file. :) It's added now. Tell me if you have any more problems.
That was quick! Looks great, thanks!
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

I do actually have one question. Mouse events in samples are not being processed. They work in the main menu but it seems like they never make it to the samples. No yaw/pitch, no check boxes being checked, etc. Any hints or ideas about what may be going on?
User avatar
omniter
OGRE Contributor
OGRE Contributor
Posts: 424
Joined: Thu Mar 19, 2009 8:08 am
Location: Canada
x 44

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by omniter »

All samples? Or a sample you made?
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

omniter wrote:All samples? Or a sample you made?
All samples
User avatar
omniter
OGRE Contributor
OGRE Contributor
Posts: 424
Joined: Thu Mar 19, 2009 8:08 am
Location: Canada
x 44

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by omniter »

Update: All the mouse processing code seems fine. I have a feeling it has something to do with a ghost dialog :evil: somewhere, hogging the mouse input. It sounds a lot like the progress bar bug you told me about a while back. Is it anything like that?
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

omniter wrote:Update: All the mouse processing code seems fine. I have a feeling it has something to do with a ghost dialog :evil: somewhere, hogging the mouse input. It sounds a lot like the progress bar bug you told me about a while back. Is it anything like that?
i bet it is. maybe even the main menu. i'll have to check it out again tonight. i think this is the only remaining issue. the GUI elements are a little small on the iPhone but it is usable.
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

Alright, got that fixed! I'm gonna do a once over on the code, reconfigure, build from scratch on both mac/iphone here. If no errors show up then I'll commit my changes tonight.

UPDATE: Changes committed in r9155. Here's a copy of the notes:

- iPhone support including touch input. There are devices created for the accelerometer but it is not currently used.
- Shake is the replacement for escape to bring you back to the sample browser
- Altered thumbnails. Changed to 128x128 and added an alpha channel. Required for GL ES. Needing alpha could possibly be a bug in the GL ES PixelFormat class but I haven't had a chance to try to figure it out.
- Resized some widgets for iPhone
- Added support for statically linked apps
- Fixed a couple minor Mac OS X issues in the CMake files.
- Added check to the Terrain demo for vertex and fragment shaders. The material generation requires them.
- Sprinkled around some export defines that were missing.
- ogredance.zip was missing from a couple resources.cfg templates

Please let me know if I broke anything. Mac and iPhone work for me. But unfortunately I don't have Windows or Linux boxes to test on.
User avatar
Assaf Raman
OGRE Team Member
OGRE Team Member
Posts: 3092
Joined: Tue Apr 11, 2006 3:58 pm
Location: TLV, Israel
x 76

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by Assaf Raman »

nice work masterfalcon.
Watch out for my OGRE related tweets here.
User avatar
omniter
OGRE Contributor
OGRE Contributor
Posts: 424
Joined: Thu Mar 19, 2009 8:08 am
Location: Canada
x 44

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by omniter »

That's great! :D I never even expected to see this on the iPhone, but you did it!
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by Wolfmanfx »

can not wait to see this on my iphone :)
User avatar
masterfalcon
OGRE Team Member
OGRE Team Member
Posts: 4270
Joined: Sun Feb 25, 2007 4:56 am
Location: Bloomington, MN
x 126
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by masterfalcon »

:D
User avatar
Wolfmanfx
OGRE Team Member
OGRE Team Member
Posts: 1525
Joined: Fri Feb 03, 2006 10:37 pm
Location: Austria - Leoben
x 99
Contact:

Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser

Post by Wolfmanfx »

Here are two images from the browser running on my 3g :) http://yfrog.com/4wwrej http://yfrog.com/0q1k3j
Post Reply