Page 11 of 18

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

Posted: Sat Oct 03, 2009 5:12 am
by omniter
Haha, no worries. I didn't mean to blame anyone!

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

Posted: Sat Oct 03, 2009 7:06 am
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:

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

Posted: Sat Oct 03, 2009 11:58 am
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. :)

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

Posted: Mon Oct 05, 2009 7:13 am
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.

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

Posted: Tue Oct 06, 2009 6:04 pm
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?

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

Posted: Tue Oct 06, 2009 10:39 pm
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.

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

Posted: Fri Oct 09, 2009 6:36 pm
by Florin
Is this application available for downloading ? Thank you !

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

Posted: Sat Oct 10, 2009 3:44 pm
by sinbad
It will be merged with trunk once the last platform issues are resolved, which is just iPhone now.

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

Posted: Sat Oct 10, 2009 8:02 pm
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.

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

Posted: Sat Oct 10, 2009 9:50 pm
by sinbad
Great!

Actually shake still sounds reasonable to me, since it 'undoes' your navigation into the sample? Or am I reaching here?

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

Posted: Sat Oct 10, 2009 10:53 pm
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!

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

Posted: Mon Oct 12, 2009 2:11 am
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.

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

Posted: Mon Oct 12, 2009 2:28 am
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.

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

Posted: Mon Oct 12, 2009 3:03 am
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!

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

Posted: Mon Oct 12, 2009 4:11 am
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?

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

Posted: Mon Oct 12, 2009 6:31 am
by omniter
All samples? Or a sample you made?

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

Posted: Mon Oct 12, 2009 6:49 am
by masterfalcon
omniter wrote:All samples? Or a sample you made?
All samples

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

Posted: Mon Oct 12, 2009 6:25 pm
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?

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

Posted: Mon Oct 12, 2009 8:17 pm
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.

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

Posted: Tue Oct 13, 2009 2:08 am
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.

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

Posted: Tue Oct 13, 2009 8:06 am
by Assaf Raman
nice work masterfalcon.

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

Posted: Tue Oct 13, 2009 8:28 am
by omniter
That's great! :D I never even expected to see this on the iPhone, but you did it!

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

Posted: Tue Oct 13, 2009 9:06 am
by Wolfmanfx
can not wait to see this on my iphone :)

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

Posted: Tue Oct 13, 2009 2:46 pm
by masterfalcon
:D

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

Posted: Tue Oct 13, 2009 4:48 pm
by Wolfmanfx
Here are two images from the browser running on my 3g :) http://yfrog.com/4wwrej http://yfrog.com/0q1k3j