Skip to content

Instantly share code, notes, and snippets.

View rotoglup's full-sized avatar

Nicolas Lelong rotoglup

View GitHub Profile
rotoglup / CMake
Last active December 20, 2022 12:02
Some notes about CMake constructs I had to use here and there
View CMake

IMPORTED library

add_library(NvGPUDirect::DVP SHARED IMPORTED)
target_include_directories(NvGPUDirect::DVP INTERFACE "${NV_GPU_DIRECT_INCLUDE_DIR}")
rotoglup / 201909 - a look into threejs
Last active December 2, 2022 11:55
201909 - a look into threejs raycaster
View 201909 - a look into threejs

A look into threejs raycaster

I've been looking at the current master source code, not a specific version : github commit b3ce68b4 on sept. 2019.

The source code is located in src/core/Raycaster.js, and the doc is online.

A Raycaster instance is constructed given a ray (origin point + direction vector) and a range on this ray (near, far distances), and offers the following API :

  • intersectObject( object, recursive, optionalTarget ) : Array
rotoglup / Blender scripting
Last active September 26, 2022 10:19
Some Blender 2.80+ scripting notes
View Blender scripting

Scene, view, collections, etc.

Create a new collection

collection =
if collection is None:
    collection =
View 202005 - notes about system

In an administrator PowerShell console

  • Get-NetConnectionProfile
  • Set-NetConnectionProfile -InterfaceAlias "Ethernet" -NetworkCategory Private


  • Set-NetConnectionProfile -Name "Ethernet" -NetworkCategory Private
View 202006 - notes about

Conan (on Windows)

  • conan search <name> -r conan-center

What I liked :

  • easy install through python's pip

What I don't like :

rotoglup / 201909 - a look into threejs
Last active February 10, 2022 10:26
201909 - A look into threejs editor app
View 201909 - a look into threejs

A look into threejs editor

My notes while reading the source code from threejs Editor app, as I've been curious about :

  • the editor architecture
  • the undo/redo system
  • the camera control behaviour & code
  • the object transform gizmos behaviours & code
rotoglup /
Last active May 20, 2021 08:10
Minimal OSX Metal Application, single file
#include <Cocoa/Cocoa.h>
#import <Metal/Metal.h>
#import <MetalKit/MetalKit.h>
#import <simd/simd.h>
// BUG: on OSX 10.15.6, the App menu is not clickable at the first activation, but becomes so after switching to another app
rotoglup / Code refactor,
Last active December 7, 2020 18:00
Code refactor, thoughts
View Code refactor,

Some thoughts about code structure, as I read code, and find some things some hard to follow than others.

Booleans are values

(m_ui.SomeCheckBox->checkState() == Qt::CheckState::Checked) ? true : false

Should probably just be

View 202011 - Inspiring
rotoglup / GIT
Last active November 24, 2020 14:37
Notes about my usage of GIT
View GIT

My GIT habits :

  • On Windows, through GIT bash

  • No UI, except occasional gitk --all& to visually check branches and commits

  • Use git fetch then git merge --ff-only origin/master

    • I don't like git pull auto-merging feature that messes up the history
  • Use git add -p to :

  • make a quick review of changes before commit