Skip to main content
removed blacklisted tag
Link
Pikalek
  • 13.4k
  • 5
  • 49
  • 54
edited tags
Link
Polar
  • 874
  • 8
  • 23
Tweeted twitter.com/#!/StackGameDev/status/135633012523151360
image
Source Link
Robin Rodricks
  • 2.8k
  • 3
  • 29
  • 53

I understand the benefits of GPU rendering and such, but for a certain limited application I need to render textured triangles purely using CPU.

I've built a 3D engine capable of object handling, transform, projection, culling and the likes ... now all I need is a little code snippet that draws a single textured triangle onto a bitmap... any language accepted!

  • Inputs: Texture bitmap, Triangle U/V/W coords, Triangle X/Y screen coords

    Inputs: Texture bitmap, Triangle U/V/W coords, Triangle X/Y screen coords

  • Output: The textured triangle drawn at the given screen coords

    Output: The textured triangle drawn at the given screen coords

enter image description here

I've currently been using a platform functionplatform function to draw triangles to screen, but I'm looking to handle it myself to speeden up the process.

I understand the benefits of GPU rendering and such, but for a certain limited application I need to render textured triangles purely using CPU.

I've built a 3D engine capable of object handling, transform, projection, culling and the likes ... now all I need is a little code snippet that draws a single textured triangle onto a bitmap... any language accepted!

  • Inputs: Texture bitmap, Triangle U/V/W coords, Triangle X/Y screen coords
  • Output: The textured triangle drawn at the given screen coords

I've currently been using a platform function to draw triangles to screen, but I'm looking to handle it myself to speeden up the process.

I understand the benefits of GPU rendering and such, but for a certain limited application I need to render textured triangles purely using CPU.

I've built a 3D engine capable of object handling, transform, projection, culling and the likes ... now all I need is a little code snippet that draws a single textured triangle onto a bitmap... any language accepted!

  • Inputs: Texture bitmap, Triangle U/V/W coords, Triangle X/Y screen coords

  • Output: The textured triangle drawn at the given screen coords

enter image description here

I've currently been using a platform function to draw triangles to screen, but I'm looking to handle it myself to speeden up the process.

Source Link
Robin Rodricks
  • 2.8k
  • 3
  • 29
  • 53
Loading