LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 02-25-2014, 04:33 AM   #1
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,762
Blog Entries: 23

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Smile Terrain collision in webgl


hi gang,

This one's a techy one, a verrry techy one...
Consider a cube falling down, towards a landscape. The landscape was loaded as a Collada scene and is now fully rendered.
To avoid the cube falling through the landscape, collission needs to be detected. Several challenges:
- Thee js' own Raycaster, and letting that cast ONE ray down from the falling cube. make it stop falling (in the refresh loop) if the ray hits something (intersects witht the landscape) - snag: mr Doob (yep, that is his nick) and C do not really bebieve in documentation...
- extracting the X/Y coords of the cube and figuring out how high the underlying triangle in the landscape (at the same X/Y coords) is and stopping the "fall" if these two are (almost) the same..., snag : how do I extract the right triangle...
Any light would be welcome...I'm just looking and shopping around...
Personally, I't go for the wegbl-only approach, but that means I'll end up with my own framework anyway, on the other hand, a stable one (not changing too much in a too short period) would be great...

Thanks
Thor
 
Old 02-25-2014, 01:34 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,542

Rep: Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623Reputation: 2623
not webGL but ...
have you been able to do this in Blender 2.69
 
Old 02-28-2014, 03:14 AM   #3
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,762

Original Poster
Blog Entries: 23

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Wink hmm...good ol' Blender

Hi!!

Quote:
have you been able to do this in Blender 2.69
...not as such since the target (desktop) is not quite what I have in mind, but if you're interested, there are some great tuts around, one I found in youtube looks promissing...
My target is the web, just to globalise the spread a bit
I have some avenues of thought, but I wanted to filter out the usual dead ends

Thor
 
Old 03-01-2014, 07:49 AM   #4
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,762

Original Poster
Blog Entries: 23

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
I have decided to ditch three.js...it's way too alpha, has way too bad documantation and is too unstable...
If this could be any help to anyone, dont use three.js, for all the great it is (really, it is great) there is way too few documantation and all (almost) the examples are either way too outdated or totally underdocumented...
Sorry...
Thor
 
  


Reply

Tags
collada, webgl


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The all-terrain, solar powered Linux sport utility laptop! LXer Syndicated Linux News 0 08-08-2013 07:50 PM
LXer: Unigine Now Does A-Sync Terrain Data Streaming LXer Syndicated Linux News 0 06-08-2013 11:33 PM
[SOLVED] What formats can be handles by WebGL? ButterflyMelissa Linux - Games 2 02-27-2013 02:47 AM
webgl doesn't function in FF 5.0 entz Linux - Software 15 07-09-2011 08:19 PM
We may have some tough terrain to cover soon.... robgig1088 Linux - General 6 12-26-2006 10:45 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration