# sakura_ubuntu **Repository Path**: weimingtom/sakura_ubuntu ## Basic Information - **Project Name**: sakura_ubuntu - **Description**: No description available - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-08-05 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sakura Sakura=OpenTK+PSSSDK ## History * 2018-05-15: HelloWorld done. * 2018-03-23: PuzzleGameDemo done. * 2018-03-22: ActionGameDemo done. * 2018-03-21: FeatureCatalog done. * 2018-03-17: HelloSprite done. * 2018-01-28: PersistentMemorySample done. * 2018-01-27: StorageSample done. * 2018-01-27: SystemParametersSample done. * 2018-01-27: SystemEventsSample done. * 2018-01-27: ShellSample done. * 2018-01-27: DialogSample done. * 2018-01-27: ClipboardSample done. * 2018-01-27: SocketSample done. * 2018-01-27: SocketSample done. * 2018-01-27: HttpSample done. * 2018-01-26: ImageSample done. * 2018-01-26: FontSample done. * 2018-01-26: TouchSample done. * 2018-01-26: MotionSample done. * 2018-01-26: GamePadSample done. * 2018-01-26: SoundPlayerSample done. * 2018-01-26: BgmPlayerSample done. * 2018-01-25: ShaderCatalogSample done. * 2018-01-21: PixelBufferSample done. * 2018-01-17: MathSample done. * 2018-01-17: PrimitiveSample done. * 2018-01-16: SpriteSample done. * 2018-01-15: TriangleSample done. ## References * PSSSDK PlayStation Suite SDK ver 0.98 PSSuiteSDK_098.exe * OpenTK opentk-2014-07-23 https://github.com/opentk/opentk https://sourceforge.net/projects/opentk/files/opentk/opentk-1.1/stable-5/opentk-2014-07-23.exe/download https://github.com/opentk/opentk/issues/425 * OpenTK GLES generated source https://raw.githubusercontent.com/weimingtom/gwen-dotnet/master/GwenCS/lib/OpenTK/OpenTK.dll https://github.com/weimingtom/gwen-dotnet/tree/master/GwenCS/lib/OpenTK Use ILSpy to decomple OpenTK.dll: see OpenTK.Graphics.ES20.GL * ANGLE https://github.com/CoherentLabs/angle https://gitee.com/weimingtom/angle * NAudio NAudio-NAudio\_1.7.2\_Release https://github.com/naudio/NAudio https://github.com/naudio/NAudio/releases/tag/NAudio_1.7.2_Release * Work https://gitee.com/weimingtom/TriangleSample * cgc http://developer.download.nvidia.com/cg/cgc.html * #region OpenTK https://masuqat.net/programming/csharp/OpenTKindex.php https://github.com/occar421/region_OpenTK ## Bug / TODO * HelloWorld: USE_SampleDraw * HelloWorld: USE_COLORMASK * HelloWorld: // if (!UISystem.StoredGraphicsState.ColorMask.Equals(UISystem.GraphicsContext.GetColorMask())) * HelloWorld: //UISystem.RestoreGraphics(); //FIXME:??? * HelloWorld: class TextRenderHelper: public ImageAsset DrawText...Image image = new Image(ImageMode.A/*(ImageMode)1*/ //alpha not implemented * PuzzleGameDemo: Draw text wrong, bubble not shown. * ActionGameDemo: ColorBuffer and SetColorTarget(ColorBuffer buffer) not implemented * FeatureCatalog: BlendMode.None not work (black bg, not white bg, search '//drawing.Clear(_backColor); //FIXME:???for png file background'). * FeatureCatalog: different fonts make some white pixels around the text. * FeatureCatalog: public Texture2D (int width, int height, bool mipmap, PixelFormat format, PixelBufferOption option, bool supportNPOT) should be removed * SpriteSample: The sprite is not center, larger than original size * SpriteSample: NPOT, see Texture2D.SetPixels, see __supportNPOT * SampleLib : Font size * search FIXME:not used * ShaderCatalogSample : in Texture2D, if (fileName.Contains("renga.png")), 256 is changed to 250 * ShaderCatalogSample : in GraphicsContext, global textureDic is clear in SwapBuffers(), but global vertexBuffer is clear in SetShaderProgram() * SpriteSample: GL.Clear(ClearBufferMask.DepthBufferBit); //FIXME:??????in SpriteSample, for sprite black bg problem * SpriteSample: __supportNPOT can be set true if REPEAT wrap mode not used * Data files not found error. * BgmPlayerSample: if (Status == BgmStatus.Stopped || Status == BgmStatus.Paused) //FIXME: Can restart??? * GamePadSample, ...: //SampleDraw.ClearSprite(); //FIXME:modified, for preventing memory overflow * GamePadSample: AnalogLeftX, AnalogLeftY, AnalogRightX, AnalogRightY not implemented * in Texture2D, public void SetPixels(...) { __supportNPOT = true; //NOTE:bug for repeat wrap mode //FIXME: for SampleDraw.DrawText() * in Font, * 0.70f), _style); //FIXME:???0.8 * Render() memory leak * MotionSample: MotionData not set * Check OpenAL dll in Windows XP * SocketSample: in SampleButton, return; //FIXME: for textures overflow * HelloSprite: DebugFlags.Navigate not implemented (20180318:fixed, Key A and W + drag). * HelloSprite: DebugFlags.DrawGrid not implemented (20180318:fixed). ## cgc cgc.exe "BlinnPhong.fcg" -profile glslf -o "BlinnPhong.glslf" cgc.exe "BlinnPhong.vcg" -profile glslv -o "BlinnPhong.glslv" cgc input_f.txt -profile glslf -o a.txt python cg_glsl_to_es20_glsl.py a.txt > output_f.txt cgc input_v.txt -profile glslv -o a.txt python cg_glsl_to_es20_glsl.py a.txt > output_v.txt ## cg to glsl mod //gl_TexCoord[0].xy = a_TexCoord.xy; -> removed vec2 _v_TexCoord1; -> varying vec2 _v_TexCoord1; uniform sampler2D xxx:TEXUNIT0 -> Texture0 uniform sampler2D xxx:TEXUNIT0 -> Texture1