Here is an example that deforms a sprite into a 3d sphere using the mesh deform feature. It also has horizontal 3d rotation.
ucbae269cb02a5de9b608cca7b47.dl.dropboxusercontent.com/cd/0/get/Ch77Iwfk2czs4GXnIHeRMTQTEdtDRK20VUANaD3kaHQRKiPufJfIviX6Fmmd9uGunqxBM2-9SBMd3Rse_FKFPKQNV8vU3Bv8VkNzFfDP_Whe6SmTPFn7LbSNXTXaQHldVinoq9tpLucz34_Sx2pMUmEN/file
Notes:
- it's done by utilizing spherical coordinate equations.
- you could get cones, cylinders, and torii in a similar way.
wow
very cool !!
so you'Re saying you could make paperparft 3D models? image.freepik.com/free-vector/papercraft-old-man_3837-29.jpg
Heh.
i.imgur.com/n3cI1Mz.png
A question
What is the use of 3dshape here? (I know without it does not works properly)
He likely put it in to trip the 3d render trigger. The editor is set up to do it automatically when an object has a 3d z. Otherwise you would have to go in to project properties, advanced and set it manually.
You could also trigger it by making a mesh and giving a point a z.
The 3d shape was to enable the depth buffer on the layer. It's not needed if you change a project setting though.
The trick here was to wrap a sprite with a 2d mesh into a sphere, but you could do other shapes too.
Here's a cube. Pardon the events. I packed the vertex data in numbers 0-7. Can rotate around x and y axis, and still is one sprite. The trick was to collapse parts of the mesh that were not needed.
uc137cdeb7d0cba52af4d7314ca8.dl.dropboxusercontent.com/cd/0/get/Ch4p5C3qBp0kvWa8g4GjWNBFRHRzLcrk7cvYaeD6MZXS3lsL9DurU4BEWftGHYsq_orYOsO70Bt28Od5a7Z-nDs9AUEAzsCcMY5FqVR7B_AiACAydqc5oa73ZxfbZYUusfe6Q1pT-JOqDVlddaUrn5lQ/file
So it would be possible to do papercraft, you'd just need multiple sprites, and you'd need to specify uv's.
Heyyyy Rojo !!! a big question for you my friend !! How do SPLIT SCREEN in MODE 7 !!?? I did in a way But I would like to know how can you do it with your own Capx >> construct.net/en/forum/construct-2/your-construct-creations-23/mode7-via-webgl-javascript-155359
Thank you and I'll appreciate an answer.
Hi, Thanks for this example.
I need controle the rotX and rotY for example the same time, so, the "sphere" need rotate in "x" and "y".
Best,
Maxi.
Another test. It does 3d rotation in a more generic way. Also tried out doing some rolling physics.
ucc41d8abfbd5e942c8c713ab4c1.dl.dropboxusercontent.com/cd/0/get/Ch7DXzDR9F49Dc1AAz_IeVVjdIR7MuBzgzVgWE-co5M7Q6xcz0ZvS_xfTF0ldnRwb1NgXuJ-IB7omYmUtzJJ4VWsmk0Bo8qeF__wKKdeJHyNa8-oJw0u2DTSiY_1Z42Zf2lgO1FaKLmOi1hf0PiZSyj6/file
Nice. 3D 8 Ball games incoming.
Amazing!
Develop games in your browser. Powerful, performant & highly capable.
As ever, cool
Super Monkey Ball , incoming ?
I probably won't make a game with this.
Anyways, here's the balls rolling on a 3d terrain (they can't get airborne).
Also, figured out a way to do per vertex shading. Just with a direct light currently (point lights would be tricky*).
ucc4f81f657ace937d7448d848ab.dl.dropboxusercontent.com/cd/0/get/Ch7meYAU8-9zl3vQguuK9sJ9_O8VxF_b-9SzRsRnzvEvPB7XdjurEWYvwkl6iKa6sd4WT3odnLJbHVDXgMYMTuyaxh2WWIEXYiy-U5yhJo5sfsCO13F8uKp3bcB_eae6CfgETImPHmY1zmGfPF4h9zU0/file
There are a few annoyances I've found with 3d.
*The main one is distort meshes have their own coordinate system which is different than the layout's coordinate system. Overall that makes everything more fiddly.
When objects have the same zelevation they seem to lose depth? not sure.
I'd be happy with plane old rotation.
No seriously, rotation of a plane... for billboarding.
The interpolation on the grass is brilliant btw.