Monday, April 09, 2007

A RAY TRACER IN C# 3.0

Recently, some members in the XNA Creators' forums have been asking for an example on ray-tracing. Well, Check LukeH's blog, then.

This guy has posted an interesting project based on the third version of the .NET Framework, which implements a ray tracer by using some of the new features of this framework, like LINQ and lambdas.

From LukeH's post: "... Although we often demo C#3.0 using databases and XML to show off LINQ - it turns out that the new language features really are also great for applications which have little to do with querying. Ray tracing, for example, is certainly not one of the prototypical scenario for query and transformation of data. Nonetheless, I found quite a few places in the code where C#3.0 and LINQ to Objects really improved the code - making it easier to express what the program was doing ...".

Not related to XNA, I admit, but nice screenshot, uh?!

[Again, imagine XNA, XAML, DX10 and .NET Framewor 3.5 ...]

FLUIX: CREATE UI ELEMENTS WITH FLASH FOR XNA

Fluix lets you create user interface elements for your XNA-based project in Flash.

The second release is out and includes:

  • FSCommand implemented,
  • texture alpha being broken in some cases fixed,
  • lines support, including bevels,
  • gradients supported,
  • fix reported bug on not finding helper applications,
  • basic version of Sound object working,
  • fonts/text working with some caveats, and
  • various string manipulation functions implemented.

Worth testing, don't you think?

[Now, I'd like to see the same with XAML. Can you picture that? XNA, XAML and DX10 ...]

TRIGGERS AND OR SCRIPTING SYSTEM?

Until you answer that question for your particular game project, you could check this article on The Code Project.

From the article: "... You know what I miss about the pre .Net days? Script! I liked creating a little script file to do little tasks for me, or to test a small piece of code without having to create a new project or solution. I like having one nice little file to deal with and clean up after, not a solution folder, a project folder and the resulting bin and obj folders. I long for those days, which is why I created Dot Net Script ...".

Pros and cons? Of course, but still worth reading since it uses C# as the scripting language.