Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8576431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:55:20+00:00 2026-06-11T19:55:20+00:00

I would like to write a simple ray tracer using WPF. It is a

  • 0

I would like to write a simple ray tracer using WPF. It is a learning project and thus I favour configurability over performance (otherwise I’d go for C++).

I still want relatively fast pixel drawing. A previous question on StackOverflow contains code to achieve this in WPF, by obtaining a GDI bitmap. From the relatively little I know about Windows programming,

  1. GDI is slow
  2. DirectX is fast
  3. WPF uses DirectX underneath (not sure which parts of WPF though)

Is it possible to obtain pixel-level access using DirectX (not GDI) through the WPF Canvas (or similar)?

I will also consider suggestions for incorporating DirectX API calls within a WPF window (alongside other WPF controls) if that is possible.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T19:55:22+00:00Added an answer on June 11, 2026 at 7:55 pm

    Interesting, but with raytracing, writing the pixels to the screen will (should) not be the slow part. You can use WriteableBitmap for the purpose, though. It’s certainly quick enough for what you want.

    http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.writeablebitmap.aspx

    (For info, I use it in this emu/IDE – http://0x10c-devkit.com/ – and it can refresh a low res display with great performance. There’s the source to that on the github repository, the LEM1802 plugin.)

    Ah, this bit: https://github.com/kierenj/0x10c-DevKit/blob/master/PluginAPI/NyaElektriska.LEM1802/GPU.cs – see UpdateDisplay.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to write some simple Mario-like game from scratch using language C.
I would like to write simple programs (console input/output) for Windows using x86 assembly,
I would like to write a hql query using a dynamic instantiation with a
i would like to write a simple line of code, without resorting to if
I would like to write a rather simple content application which displays a list
I would like to write an asynchronous server using Java 7 and NIO 2.
I'm going to write simple c++ application, server-client, client-client. I would like to develop
Very simple problem: I'm reading from one SocketChannel and would like to write the
I would like to write a simple C++ program for Linux (Ubuntu) to control
I would like to write a simple Ant task that would interact with an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.