Some sample programs won't run

Problems building or running the engine, queries about how to use features etc.
Post Reply
jwwalker
Goblin
Posts: 224
Joined: Thu Aug 12, 2021 10:06 pm
Location: San Diego, CA, USA
x 17
Contact:

Some sample programs won't run

Post by jwwalker »

Ogre Version: 2.3
Operating System: macOS 11.5.2
Render System: Metal

I've found that 8 of the many sample programs won't run, for various reasons. Should I report these problems under Issues in the GitHub repository? If so, should there be a separate issue for each problematic sample?

The problem samples:
  1. Sample_InstancedStereo
  2. Sample_MeshLod
  3. Sample_MorphAnimation (after fixing build errors)
  4. Sample_ScreenSpaceReflections
  5. Sample_Tutorial_Distortion
  6. Sample_TutorialUav01_Setup
  7. Sample_Tutorial_Uav02_Setup
  8. Sample_Tutorial00_Basic
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5299
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1279
Contact:

Re: Some sample programs won't run

Post by dark_sylinc »

Hi!

They probably should go into one ticket and if one of the samples proves to be problematic or advanced that needs its own ticket
jwwalker wrote: Mon Aug 30, 2021 6:57 pm [*]Sample_InstancedStereo
I'm not sure but I think Metal wouldn't support the feature we need. I can't remember. It's low priority because its main use is VR and VR is simply abandoned by Apple.
jwwalker wrote: Mon Aug 30, 2021 6:57 pm [*]Sample_MeshLod
Fixed
jwwalker wrote: Mon Aug 30, 2021 6:57 pm [*]Sample_MorphAnimation (after fixing build errors)
Probably a stupid bug. It should be working. IIRC iOS was working.
jwwalker wrote: Mon Aug 30, 2021 6:57 pm [*]Sample_ScreenSpaceReflections
Sample was not ported to Metal, low priority. There were some stuff needed that Metal API didn't provide back then. I think it does now.
jwwalker wrote: Mon Aug 30, 2021 6:57 pm [*]Sample_Tutorial_Distortion
I was unaware, but on closer inspection the Pixel Shader was simply not ported to Metal (see Samples/Media/2.0/scripts/materials/Distortion).
It should be easy to port (see other pixel shaders under the Samples folder, base it on HLSL which is the closest in syntax).
jwwalker wrote: Mon Aug 30, 2021 6:57 pm [*] Sample_TutorialUav01_Setup
[*] Sample_Tutorial_Uav02_Setup
Metal did not support the features needed. It does now I think, but not on all HW.
jwwalker wrote: Mon Aug 30, 2021 6:57 pm [*] Sample_Tutorial00_Basic
macOS requires more specific/complex initialization thus I preferred to ignore it, because the sample is meant to be as simple as possible "get me a working window as fast as possible without any dependencies or too much code".

The same reason that sample doesn't work on iOS or Android.

If you manage to get it working without much change or redesign then great, we can include that. I'd love if it just works on macOS as well.

Cheers
Matias
Post Reply