Richard Redcroft


About Me

Not Specified
Not Specified


Recent Forum Posts

[Solved] OpenCL setup for 17? Oct. 15, 2018, 6:42 a.m.

Still no luck with OpenCL. I upgraded from 39x to 416 Nvidia drivers for my 1060 without any effect.

I have various ENV variables in Windows 10 related to the CUDA toolkits being used for Tensorflow and Pytorch, and I suspect perhaps that or the CUDA version(s) installed are preventing H from seeing what it needs.

PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\libnvvp;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\cuda\bin;"

No Configured OpenCL Device


CUDA_PATH C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0
CUDA_PATH_V8_0 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0
CUDA_PATH_V9_0 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0
CUDA_PATH_V9_1 C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1

NVCUDASAMPLES8_0_ROOT C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0
NVCUDASAMPLES9_0_ROOT C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0
NVCUDASAMPLES9_1_ROOT C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.1
NVCUDASAMPLES_ROOT C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0
NVTOOLSEXT_PATH C:\Program Files\NVIDIA Corporation\NvToolsExt\

Not really sure whats happening, as openCL just works out of the box for me, but it isnt related to CUDA, cuda is its own thing, openCL is an open alternative. All i can suggest is a clean uninstall of the driver and re-install?

Problems with rotation matrix June 4, 2018, 5:40 a.m.

Hi Redcroft,

Nothing wrong with the code there, the problem was to do with the timeshift and getting the prev_pos value. With the timeshift set to $F-1, the rot wrangle will only compute the dist travelled over the last timestep, which is why you'll notice the ball straighten up when it changes direction - the dist is very small. You can get you're existing setup to work by changing the timeshift to use the first frame (as I've done in the file), but this of course only gives you the right motion when moving in a straight line through the origin, as the dir will always be computed from there. I stuck a curve based animation in there to see that clearly.

All you need to do is take your existing setup and stick it in a Solver SOP, this way we can continuously update the dir and the distance based upon the previous frame (which I'm guessing was you're instinct ).

I swapped around the prev_pos and cur_pos in the ‘rot’ node within the solver, just to make accumulating the rotation a bit simpler.

Hope that's useful

PS Forgot to mention one of the perks of using the solver sop is that we can increase substeps to improve the accuracy of the rotation, super handy for fast motion!

Thank you so much, that's exactly what i was after! It also makes much more sense with swapping the cur and prev position over.

Problems with rotation matrix June 1, 2018, 6:59 a.m.


I'm having an issue making an automatic rolling ball, not sure if my maths is wrong or my use of the rotate vex command. Anyone mind giving a hand please?


vector cur_pos = detail(0, "cen");
vector prev_pos = detail(1, "cen");

float dist = distance(cur_pos, prev_pos);
float circum = detail(0, "circum");
float angle = radians((dist/circum)*360);

vector up = {0,1,0};
vector dir = normalize(prev_pos-cur_pos);
vector axis = normalize(cross(dir, up));

matrix3 m = ident();
rotate(m, angle, axis);

@P -= cur_pos;
@P *= m;
@P += cur_pos;