Horde3D

Next-Generation Graphics Engine
It is currently 21.12.2024, 14:45

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 18.02.2013, 04:57 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
Anyone here get Newton Game Dynamics working with the horde engine?

I'm retrieving the mesh data from Horde fine, and loading it apparently fine into Newton, but my collisions seem off. More so than just scaling would explain.


Top
 Profile  
Reply with quote  
PostPosted: 18.02.2013, 13:31 
Offline

Joined: 08.06.2010, 14:17
Posts: 63
I'm using H3D with Newton and it works fine. And yes, I had some offset collisions when extracting mesh data.
The problem was that H3D outputs "raw" vertex coordinates, without any transformation applied. So, you either have to apply it manually or make sure the model has no transformations.


Top
 Profile  
Reply with quote  
PostPosted: 18.02.2013, 19:50 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
Thanks, maybe that's it.

Have you implemented any sort of collision debug view with the CollisionIterator callback? Are you using dynamic geometry, or raw OpenGL?


Top
 Profile  
Reply with quote  
PostPosted: 20.02.2013, 11:02 
Offline

Joined: 08.06.2010, 14:17
Posts: 63
No, sorry, never used debug view, just dumping variables to console, maybe someone else can answer?


Top
 Profile  
Reply with quote  
PostPosted: 05.04.2013, 05:20 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
Did you have to apply any scaling? Right now working with a simple plane, it looks like I need to scale the collision by 4.


Top
 Profile  
Reply with quote  
PostPosted: 05.04.2013, 05:41 
Offline

Joined: 19.01.2012, 21:01
Posts: 55
Nevermind, looks like while I didn't scale the visual mesh in Horde, I was scaling in Blender when I exported.


Top
 Profile  
Reply with quote  
PostPosted: 06.12.2016, 15:38 
Offline

Joined: 02.12.2016, 12:30
Posts: 23
I also have the same scaling problem with Bullet Physics........... And i can't using debugDraw(); function because i didn't find any function on H3D to draw primitive 3d lines......... :cry: i also tried raw Opengl call,But its appear that the world of horde space is different from my raw Opengl 3d lines or vertics...... can any one tell me how to draw 3d Lines on horde 3d.........

_________________
~@AlmahmudRony@~


Top
 Profile  
Reply with quote  
PostPosted: 07.12.2016, 20:51 
Offline

Joined: 17.11.2009, 17:00
Posts: 205
Location: Russia, Moscow
Check Horde3DEditor GLWidget.cpp and GameEngine BulletPhysics module for reference:
http://mm-werkstatt.informatik.uni-augs ... e3DEditor/
http://mm-werkstatt.informatik.uni-augs ... inePlugIn/
http://mm-werkstatt.informatik.uni-augs ... Component/

Currently Horde does not support rendering with lines, so you'll need to use raw gl calls. You will also need to save GL states before raw calls and restore states after drawing.


Top
 Profile  
Reply with quote  
PostPosted: 10.12.2016, 16:27 
Offline

Joined: 02.12.2016, 12:30
Posts: 23
Thank you so much..... :D

_________________
~@AlmahmudRony@~


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group