Jump to content

  • Log In with Google      Sign In   
  • Create Account

WarAmp

Member Since 06 Sep 2000
Offline Last Active Yesterday, 12:10 PM

Topics I've Started

Atmospheric Scattering - Out-scattering integral solution?

23 September 2011 - 02:09 PM

I'm not sure if this should be here or in the Math & Physics forum, if the mods want to move it, I won't complain. :)

I think I may have solved the Out-scattering integral as given in the GPU-Gems 2 article on atmospheric scattering.

I've written a solution and explanation on my crappy blog.

I would love it if some of you fine folks could go over my solution for me and let me know if I'm right, and perhaps even figure out how to apply it to solving the full In-scattering integral as well.

Thanks!

Converting UTF-8 to UTF-16

07 July 2004 - 04:49 AM

Does anyone here have any experience in converting between UTF-8 and UTF-16 strings? I am getting data in UTF-8 format but my font rendering library requires a UTF-16 formatted string. I'm not entirely sure what to google for, as the majority of my results are other forum posts around the web asking the same question with no good results. Are there any windows libraries or c/c++ library functions to do this? I have found MultiByteToWideChar but passing a parameter of CP_UTF8 either isn't working the way i expect (translating a UTF-8 to UTF-16) or my incoming data is bad (I am assured that it is just fine). Anyone?

PARTNERS