Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
Ok. 3DPhysic for WebGl

jaimezegpi
Registered User
Quote
2015-06-22 00:33:02

This is a small engine integration "cannon.js" to web.gl

What you see in the example are physical 3D in real time.

Form of integration: Plugin
1. Make World Vitual physics to CopperCube
2. Add items to interact in.

a. You can add new items in real time.
b.- RAGDOLLS can generate complex collisiones.

This plugin can be used webGl aplications .
(can be ported to .exe, mac etc....)

Link for see the example-
New link 2022
https://jaime.zegpi.cl/lab/coppe...

🔎︎



jaimezegpi
Registered User
Quote
2015-06-22 03:30:52

Now... how i can get euler angle from quartenion????
Any idea..
Or better , how to add a quartenion values to coppercube?


niko
Moderator
Quote
2015-06-22 06:59:35

Nice! But it doesn't support collisions with arbitrary polygon soups, meaning 3D worlds, right?

For convertions from and to euler values, see this class here, it can do both: http://www.ambiera.com/copperlic...


jaimezegpi
Registered User
Quote
2015-06-22 14:33:06

Hi niko.
"But it doesn't support collisions with arbitrary polygon soups, meaning 3D worlds, right?"
Nup.. for that i play using ccb collision, but they have a funny bouncing effect . In others engines you can get the collision angle in ccb i don't know how get this values... :'(

Any "example" how add quartenion values to a object in ccb.. pliiiiiiis???
:)

---------------- UPDATE ------------


float Quaternion::getPitch()
{
return atan2(2*(y*z + w*x), w*w - x*x - y*y + z*z);
}

float Quaternion::getYaw()
{
return asin(-2*(x*z - w*y));
}

float Quaternion::getRoll()
{
return atan2(2*(x*y + w*z), w*w + x*x - y*y - z*z);
}


NEW DEMO
https://jaime.zegpi.cl/lab/coppe...

Now i can walk into terrain detecting collision


bob
Guest
Quote
2015-06-23 10:38:21

WOW, nice job...did you think to release this plugin?


jaimezegpi
Registered User
Quote
2015-06-23 14:42:52

thanks bob..
First i need make a better terrain detector, i can get topology of terrain, but i like add more complex poligon collisions.
And i try to get more efficient fps in android target


Chris
Guest
Quote
2022-12-06 13:44:23

Anyone got a backup version of this plugin?
Thanks

jaimezegpi wrote:
This is a small engine integration "cannon.js" to web.gl

What you see in the example are physical 3D in real time.

Form of integration: Plugin
1. Make World Vitual physics to CopperCube
2. Add items to interact in.

a. You can add new items in real time.
b.- RAGDOLLS can generate complex collisiones.

This plugin can be used webGl aplications .
(can be ported to .exe, mac etc....)

Link for see the example-
http://www.brainxcode.cl/brain/3...

🔎︎



santito
Registered User
Quote
2022-12-06 15:48:21

The link to the example is broken, I'm getting a "404 Not Found".


jaimezegpi
Registered User
Quote
2022-12-28 21:33:35

https://jaime.zegpi.cl/lab/coppe...


gree
Registered User
Quote
2022-12-30 22:40:27

@jaimezegpi - thanks!!! this is awesome. I'm trying to add these commands on my bullet object. But for some reason it won't "clone" the physics effect. Anything you can suggest I could do to get this working?

I've also tried to get a parent/child constraint relationship by simple drag-dropping. But it looks like the constraint is not cloned.

Can you give me hint what to look at to get this up running - this is really major and your code should be part of the CCB!


Again, thanks!


gree
Registered User
Quote
2022-12-30 22:44:03

PS: Basically I'm trying to build something similar (speaking in terms of physics) like Colin built there:
https://www.youtube.com/watch?ti...
@in 30 second


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact