Skip to content

Yih Horng

Programmer and Gamer

Floating Lightning Effect Implement multiple moving jagged lines using Godot

靜態的閃電 (Jagged Line) 作法很單純,做一條直線,亂數在中間取幾個點,在取得的點上加上亂數的振幅,重複上面步驟就可以做出各種效[…]

Continue reading …

Glow Effect using Godot Understanding the Blur Glow Demo in GDQuest Shader Secret

這篇的圖片和範例出處是 GDQuest shader secret 的 BlurGlowDemo 目標是用 shader language […]

Continue reading …

2D Shockwave Effect in Godot three different approaches - enlarge single sprite, particle system and shader

2D 衝擊波 (shockwave) 最常在爆炸時當輔助特效用,有時會在動作遊戲的收刀效果看到,就是一個擴散的圓環表現出空氣震波的感覺,下面[…]

Continue reading …

Make a Common “Damage Number” Animation Using Godot, PaintNet and Bitmap Font Generator

這篇文章講的是如何做一個遊戲中常見的會跳動的傷害值動畫,長得像下面的圖示。 會用到的有 Bitmap Font Generator Pain[…]

Continue reading …

Node/Scene structure in Godot C++ Programmer Perspective

Godot 裡的最基本元素是 Node,概念上等同 C++ Class。 當我們為一個 Node 附加 GDScript 時,就是準備在 s[…]

Continue reading …

Callback in C++ Different Implementation between Old Style and Modern C++

古早 C++ 的 Callback 實作一般是這樣的。 class Callback { virtual void handler( int[…]

Continue reading …

Get precise text width and height for IDWriteTextLayout Combine GetOverhangMetrics() and GetMetrics()

單用 GetMetrics() 所取得的物件高度 (metrics.height),在畫小寫的 y 或類似的字元時會發生誤差。而且字元上方也[…]

Continue reading …

Direct2D, draw partial geometry how to implement scrolling area with text and geometry

[2021/02/26 Update] These is a much easier way to handle this kind of […]

Continue reading …

Draw text using DirectWrite in Game UI IDWriteTextFormat / IDWriteTextLayout / IDWriteTextRenderer

這篇筆記是紀錄用 DirectWrite 在遊戲或一般 application UI 中寫文字會用到的東西。 IDWriteFactory […]

Continue reading …

IWICBitmap from IStream (windows imaging component) Why CreateDecoderFromStream returns WINCODEC_ERR_COMPONENT_NOT_FOUND?

這問題卡了我整整一天半,差點要開一個 Daily WTF catalog 來放這篇文章了。 問題很簡單,我要開一個 Direct2D 的 B[…]

Continue reading …

文章分頁

較舊的文章
較新的文章
  • Github
  • Linkedin
  • Email
  • Facebook

分類

  • C/C++ Tutorial
  • Computer Graphics
  • Daily log
  • Direct2D
  • Godot
  • Programming
  • Shader
  • Uncategorized
  • win32 api
Proudly powered by WordPress | Theme: Oblique by Themeisle.
  • Github
  • Linkedin
  • Email
  • Facebook