[SoC 2009 - Accepted] Unified Samples Framework & Browser
- omniter
- OGRE Contributor
- Posts: 424
- Joined: Thu Mar 19, 2009 8:08 am
- Location: Canada
- x 44
Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser
Haha, no worries. I didn't mean to blame anyone!
- masterfalcon
- 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
Oh it's ok. I just got new glasses. Things aren't blurry anymore. I blame the visual clarity.omniter wrote:Haha, no worries. I didn't mean to blame anyone!
- sinbad
- 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
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.masterfalcon wrote:Sorry about that.sinbad wrote: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.omniter wrote:Somebody broke the branch and I can't compile it.
- masterfalcon
- 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
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.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.
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 (150.49 KiB) Viewed 2393 times
- sinbad
- 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
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?
Is it a state issue higher up the chain or something specific in the GLES RS?
- masterfalcon
- 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
It seems to be specific to GLES. I'm getting loads of other errors with buffer objects...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?
More research tonight to see if it's an out of video memory issue.
- Florin
- Kobold
- Posts: 33
- Joined: Thu Mar 19, 2009 3:15 am
Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser
Is this application available for downloading ? Thank you !
- sinbad
- 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
It will be merged with trunk once the last platform issues are resolved, which is just iPhone now.
- masterfalcon
- 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
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?sinbad wrote:It will be merged with trunk once the last platform issues are resolved, which is just iPhone now.
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.
- sinbad
- 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
Great!
Actually shake still sounds reasonable to me, since it 'undoes' your navigation into the sample? Or am I reaching here?
Actually shake still sounds reasonable to me, since it 'undoes' your navigation into the sample? Or am I reaching here?
- masterfalcon
- 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
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!sinbad wrote:Great!
Actually shake still sounds reasonable to me, since it 'undoes' your navigation into the sample? Or am I reaching here?
- masterfalcon
- 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
Has anyone else had trouble getting the penguin texture to show up?
I've looked around and can't find the material defined anywhere.
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?
- omniter
- OGRE Contributor
- Posts: 424
- Joined: Thu Mar 19, 2009 8:08 am
- Location: Canada
- x 44
Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser
Ah, sorry about that. I forgot to commit the Penguin.material file. It's added now. Tell me if you have any more problems.
- masterfalcon
- 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
That was quick! Looks great, thanks!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.
- masterfalcon
- 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
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?
- omniter
- OGRE Contributor
- Posts: 424
- Joined: Thu Mar 19, 2009 8:08 am
- Location: Canada
- x 44
Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser
All samples? Or a sample you made?
- masterfalcon
- 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
All samplesomniter wrote:All samples? Or a sample you made?
- omniter
- OGRE Contributor
- Posts: 424
- Joined: Thu Mar 19, 2009 8:08 am
- Location: Canada
- x 44
Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser
Update: All the mouse processing code seems fine. I have a feeling it has something to do with a ghost dialog 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?
- masterfalcon
- 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
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.omniter wrote:Update: All the mouse processing code seems fine. I have a feeling it has something to do with a ghost dialog 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?
- masterfalcon
- 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
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.
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.
- Assaf Raman
- 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
nice work masterfalcon.
Watch out for my OGRE related tweets here.
- omniter
- OGRE Contributor
- Posts: 424
- Joined: Thu Mar 19, 2009 8:08 am
- Location: Canada
- x 44
Re: [SoC 2009 - Accepted] Unified Samples Framework & Browser
That's great! I never even expected to see this on the iPhone, but you did it!
- Wolfmanfx
- 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
can not wait to see this on my iphone
- masterfalcon
- OGRE Team Member
- Posts: 4270
- Joined: Sun Feb 25, 2007 4:56 am
- Location: Bloomington, MN
- x 126
- Contact:
- Wolfmanfx
- 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
Here are two images from the browser running on my 3g http://yfrog.com/4wwrej http://yfrog.com/0q1k3j