What I did today

You have this.


vec3 unproject( vec2 tc, float depth ) {
        return vec3( (tc * 2.0 - 1.0) * frustumCorner, -1) * depth;
}

You can precalculate 2.0* frustumCorner and optimize it to this.


vec3 unproject( vec2 tc, float depth ) {
        return vec3(tc * frustumCorner2 - frustumCorner, -1) * depth;
}

Started porting SimplyCpp from .Net C# to wxWidgets C++ so I could make it run natively on Mac OS. Also, my lecturer said it would be nice to use C++ to write a C++ editor. So I started laying out the interface in wxAUI.

The good thing is, the program remembers the locations and sizes of the panes, and the user can move them where ever he likes. Will implement tabbed multi document editing now.

@SHC
Nice. You may be interested to embedd scintilla at some point: http://www.codeproject.com/Articles/14722/Building-a-simple-C-script-compiler-from-Scintilla

wxWidgets already wrap Scintilla editor into a wxScintilla project and provides wxStyledTextCtrl which wraps scintialla component into a wxWidgets widget. The good news for me, it also has a built in C++ lexer.

i made a lens-dirt texture :


http://memleaks.net/things/lens_dirt1.jpg


http://memleaks.net/things/lens_dirt2.jpg

if you’re interested the texture is here. compared to UE or BF 4 this is much more uniform. works nice with 2D and 3D.

o/

Today (or rather, this morning), I wrote an ASCII art generator. It takes any image, and outputs an ASCII copy of it. You choose the desired width (although it will choose the closest width that the math work for).
Here’s a picture of the results vs the original (output width 200)

As long as the editor has enough room (and doesn’t have line-wrapping), you can have it create really complex outputs.

Here’s a link to the program package (https://www.dropbox.com/s/ngr5szsn174d4nq/ASCIIGenerator.rar?dl=0)

More simplifications.

You have this.


 // find horizon angle
float x = diff.z / length(diff.xy);
float elevationAngle = x * inversesqrt(x*x + 1); // ORIGINAL, SLOWER --> atan(diff.z / length(diff.xy));

But you can reduce this to just this.


float elevationAngle = diff.z / length(diff.xyz); // And luckily you have already calculated diffLength so just reuse that.

Wolfram alpha suggested this altenate form but it said that ā€œAssumming x,y,z are positiveā€ but I don’t see any reason for that restriction. At least we know that diff is always non zero so I think that should be enough.

Added syntax highlighting and multi pane editing to SimplyCpp:

I discovered I may have ASPD, or to use the more common term, a sociopath. Not really sure how I feel about that. It explains many things, but… It’s interesting to think about.

A fully sociopathic person wouldn’t feel anything about it…other than perhaps to find it funny. We’re all nuts…we just need to self-aware of our faults.

I read somewhere something like this: ā€œIf you think you are sociopath you are not.ā€

uploaded another flick to youtubes. just goofing around with the lens dirt texture.

kNLJwJJiaq4

o/

It’s not a self diagnosis. I’ve been seeing a psychiatrist for about a year now and he had me go see a psychologist. I’m not sure of the entire process, but it’s definitely not a final diagnosis. They just said it’s a possibility, which honestly wouldn’t affect me if I was. I’m still the same person.

@basil_ What you do is always so stunning! Do you plan on making a project out of this all, or are they just tests?

I was an extra in a movie today. It was being shot at my office. I had to sit my desk and code while dancers whirled about. :slight_smile:

It is going to be shown in cinemas here in Holland.

thanks! some are tests, but most of them are not more then just for fun, learning and self therapy. :slight_smile:

The real question here is, did you managed to get some work done during that time? :point:

@basil_ I see very well what kind of game you could be making out of all that! The kind that makes your eyes thank you for playing it!

I got in a couple of hours of real official paid work, but we moved to the developer section later in the day and I couldn’t access my work any more. So later in the shoot I am working off my laptop, and working on Vangard!

Sounds like a Tuesday for me

Wrote a custom [icode]TerminalWidget[/icode] class to embed CMD in a [icode]wxPanel[/icode]. See this in action:

I tried to read input from the same text control, but I can’t seem to find a char typed event. So I just used two different text controls.