HackerTrans
トップ新着トレンドコメント過去質問紹介求人

Egorich42

no profile record

投稿

Innovation Doesn't Die. It Just Misses Its Moment

medium.com
2 ポイント·投稿者 Egorich42·8 か月前·2 コメント

When a “feature” is worse than a bug

medium.com
18 ポイント·投稿者 Egorich42·8 か月前·8 コメント

You Can't Mock Reality: Testing a 3D Rendering Pipeline in Blender

medium.com
8 ポイント·投稿者 Egorich42·9 か月前·1 コメント

[untitled]

1 ポイント·投稿者 Egorich42·10 か月前·0 コメント

コメント

Egorich42
·10 か月前·議論
A few months ago I started a task which I thought would take a week or two. You know, the classic “20-minute adventure – in and out!”

The goal: write a Python script to auto-scale any imported 3D model in a prepared .blend scene. Users could upload anything — a 300m spaceship, a 20m cannon, a 2m rifle, or even a 1cm coin — and the model had to be scaled so it filled the camera view with maximum detail, without clipping, and with consistent results.

At first it sounded easy. My first idea was to split a golden dataset (300+ models) into geometry types by dimensions — “cube”, “thin and tall”, “flat and wide” — then create dedicated bounding boxes for each type and fit the models accordingly.

But iteration after iteration, the task evolved into something much harder. It ended up taking me two months and led to a very different solution: a more flexible and adaptive approach, based on one complex custom collision shape, ray casting, and outer boundaries to fine-tune the final scale.