I'm going to start posting miscellaneous capx projects I have here from time to time.
Here is simple way to rotate a bunch of 3d points. It also utilizes the paster object to generate a cube image.
This is a simple programming language and interpreter test. It has boolean variables, if's and goto. Kind of has an assembly like feel to it. I kind of fudged on error checking but it works well.
Example script that moves from wall to wall:
if angry forward
ifnot wall goto end
That 3D cube is insane!! Thank you for sharing!
Wow. thanks for this, this will help a lot of us.
I added a cheap perspective ability to the 3d rotate capx as a test. Ended up working decently.
I just added a tint effect and set all its parameters to change to the sprite's z value in event 14.
Develop games in your browser. Powerful, performant & highly capable.
The custom draw plugin also does not seem to have a set Z-order option.
Also I set up a discord where I can I ask you for help. If you are interested in joining (and the burden)
discord.gg/vV7nD8 (link expires in a day, so if you see this later it won't work)
If not I understand.
Pandy Joined your discord.
I don't have a plugin needed to open the capx, but it seems to mostly just be the original example?
Custom Draw isn't finished but I'm also not working on it, so it's missing some features like z-order.
Here are some more tests.
Simple terrain generator. Wrapped it onto a circle to see how that would look.
Next I was doing some more tests with distorted quads. Uses Custom Draw plugin, which can be found here:
First I was trying various ways to animate various distortions.
Modified the above a bit. It's a bit cleaner, and you specify the function to use to do the distortion.
Finally here's a 3x3 bezier patch to do the distortions. It's more usable without dealing with math parameters. Seems decent at doing shears, tapers, bends and such. On cool thing you can do is make a square into a circle pretty easily.
This one is is based on the idea you can make any triangle from two right triangles. The result is being able to draw any filled triangle with vanilla C2 without using js. It also includes my favorite new use of a modification of qarp() to make a curve through 3 points.
This takes a polygon and triangulates it. Mostly alogrithmic stuff.
Here are some things I've posted elsewhere that might be more useful to find here.
Some custom webgl to draw 3d inside C2. Makes heavy use of js via the browser
Yet another 3d test. Event based this time.
Some tests of custom physics to do bubbles.
I have only played with the trifill test (so far) and that curve through 3 points is AWESOME!!