Toggle Navigation
  • Home
  • Graphics
  • About
  • Books
  • Useful Links

Publishing Code

08/20/2018

I recently decided to take some of the code I've been working on (and off) over the years and push it up to a public GitHub (I have lots of code still sitting in my private GitHub). The ultimate plan is to eventually make this all open source, but for now I am not giving any rights to the code until I figure out what license to put it under.

If you want to see the progress you can follow here:

https://github.com/pat-sweeney/Caustic

I will be adding a lot more (although I've been rewriting a lot of what I had and trying to clean up more of it).

Large Scene files

07/09/2018

This is pretty cool. Disney has released the entire dataset from their movie "Moana":
https://www.disneyanimation.com/technology/datasets

MathJax Support

05/04/2018

This is cool. It was a pretty simple change to update my default Joomla Template to incorporate MathJax into this website. All the relevant changes can be found on: https://joomla.stackexchange.com/questions/399/adding-mathjax-to-a-joomla-website

Now I can do things like:

\$\sum{\sum{\chi{_i}{_j} \| \lambda{_i}{_j} \bold{x}{_i}{_j} - P_i X_j \|^2}}\$

to get nice formulas such as:

$\sum{\sum{\chi{_i}{_j} \| \lambda{_i}{_j} \mathbf{x}{_i}{_j} - P_i X_j \|^2}}$

 

Unity as a debugging tool

06/14/2018

Unity rocks!

I recently built a calibration tool (for calibrating a multi-camera system here at work).  Basically the app allows you to capture a set of calibration boards and then compute the intrinsics and extrinsics for the cameras. Here is a screen shot:

The problem I was having is that my intrinsics were coming out great (< 0.7 pixel error) but the extrinsics were coming out crap. I was trying to debug this but having a hard time visualizing what exactly was happening. Origiinally I decided I would just output the data using Collada and Visual Studio's builtin Collada viewer. This was okay, but a major pain (since if I wanted something as simple as a sphere in my scene I had to generate it). Instead, I flipped it over to Unity and just output a simple script that dynamically adds stuff to the scene. For instance, here is the start of one script:


using System.Collections;
using UnityEngine;
public class NewBehaviourScript2 : MonoBehaviour {
    // Use this for initialization
    void Start() {
        GameObject sphere0 = GameObject.CreatePrimitive(PrimitiveType.Sphere);
        sphere0.transform.localScale = new Vector3(10.0f,10.0f,10.0f);
        sphere0.GetComponent().material.color = new Color(1.000000f, 0.000000f, 0.000000f);
        sphere0.transform.position = new Vector3(-244.190948f, -165.309082f, 1257.367798f);
        ...

 Then just attach this script (which is thousands of lines long as it creates various debug objects I want to visualize) to an empty game object. Start Unity's player and now I get stuff like:

which makes it very easy to visualize what is happening.

 

Page 5 of 5

  • 1
  • 2
  • 3
  • 4
  • 5
  • You are here:  
  • Home

Latest Articles

  • ImGui Dockable Windows
  • Arbitrary Shaped Windows
  • Numpy without Python
  • Video on iOS
  • Commenting Code

Login Form

  • Forgot your username?
  • Forgot your password?

Back to Top

© 2025 Caustic