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.
dropbox.com/s/yb88xggzokotev5/3d_rotate.capx
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.
dropbox.com/s/xcmd72wq8zme91p/proglang_parser_and_interpreter.capx
Example script that moves from wall to wall:
forward if angry forward ifnot wall goto end log ouch set angry right right :end
Develop games in your browser. Powerful, performant & highly capable.
That 3D cube is insane!! Thank you for sharing!
R0J0hound
Wow. thanks for this, this will help a lot of us.
Thanks!
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.
i.imgur.com/fw77tOE.gifv
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.
Thanks
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.
dropbox.com/s/tuc8s5u9mi12sz0/terrain_midpoint.capx
Next I was doing some more tests with distorted quads. Uses Custom Draw plugin, which can be found here:
construct.net/en/forum/extending-construct-2/addons-29/r0j0hound-plugin-list-135781
First I was trying various ways to animate various distortions.
dropbox.com/s/koljyea1m4k9atj/customDraw_test3.capx
Modified the above a bit. It's a bit cleaner, and you specify the function to use to do the distortion.
dropbox.com/s/bv721i9d2ucvh4e/customDraw_test4.capx
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.
dropbox.com/s/nhmp81cqcwql5az/bezier_patch.capx
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.
dropbox.com/s/2t8s5qeaxb3txnj/triFill.capx
This takes a polygon and triangulates it. Mostly alogrithmic stuff.
dropbox.com/s/hs0e6xqioym6kkw/trianglate.capx
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
construct.net/en/forum/construct-3/how-do-i-8/how-do-i-get-this-example-to-w-140574
Yet another 3d test. Event based this time.
construct.net/en/forum/construct-3/how-do-i-8/how-do-i-make-ball-movement-li-140735
Some tests of custom physics to do bubbles.
construct.net/en/forum/construct-2/general-discussion-17/can-we-make-natural-effect-lik-139909
I have only played with the trifill test (so far) and that curve through 3 points is AWESOME!!
fantastic work!