Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / DarkGDK and Bullet Physics

Author
Message
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 1st Jan 2011 03:24
Hey everybody, I'm wanting to integrate Bullet Physics into my DarkGDK project. I started small with the physics engine and DarkGDK running separately, but I've hit a brickwall. I've properly setup my code, and the Bullet code, but LoopGDK() will not return. Here's my code:


Any ideas?


Benjames8
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 1st Jan 2011 04:52
This look complex and genius to me, want to be my friend
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 1st Jan 2011 04:59 Edited at: 1st Jan 2011 05:20
If you can help me out, sure.

EDIT: Until I get some help or magically figure this out, I'm going to use Irrlicht, as I can't afford to let this project stagnate.


Benjames8
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 1st Jan 2011 05:38 Edited at: 1st Jan 2011 05:41
I am not familur with <btBulletDynamicsCommon.h> and I also don't know the definition of LoopGDK(), but perhaps it has to do with what LoopGDK() is returning.. Idk just a thought.

[edit] Irrlicht.. is that something worth looking into, it seems good. do you use it often, and what do you recommend it for?
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 1st Jan 2011 07:35
I use Irrlicht when I'm frustrated with DarkGDK or Ogre3D as it's the first graphics renderer I tried way back when I first got into C++ programming. It's pretty fast, very modifiable and advanced-user friendly, while being easy for beginners. I'd recommend it for anything not requiring the absolute bleeding edge in graphics and for beginners.

For a look at how easy it is here's the irrlicht version of the DarkGDK rotating cube example:


It's more complicated than DarkGDK, but still a lot simpler than most other graphics libraries out there.


Matty H
15
Years of Service
User Offline
Joined: 7th Oct 2008
Location: England
Posted: 1st Jan 2011 12:47
It could be the semi-colon here:

Try:


Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 1st Jan 2011 15:27
It was the semi-colon after the while statement. Totally missed it.

Thanks matty halewood.


Benjames8
14
Years of Service
User Offline
Joined: 6th Jan 2010
Location: Your Nightmares
Posted: 1st Jan 2011 20:14 Edited at: 5th Jan 2011 01:07
lol shouldn't it told you that in an error message. I hate simple mistakes like that, it happens to me alot. Im sure it happens to alot of programmers alot.

VVVI SEEVVV
Mireben
16
Years of Service
User Offline
Joined: 5th Aug 2008
Location:
Posted: 2nd Jan 2011 13:22
Quote: "shouldn't it told you that in an error message"


No, because an empty statement is a valid statement too. Well, maybe it could do us the favour of issuing a warning, but from the compiler's point of view it's valid code, so you just need to watch out.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 7th Jan 2011 04:05 Edited at: 7th Jan 2011 04:06
Now that I'm adding triangle mesh collision shapes to Bullet, I've hit an access violation on this line


I have no idea why it says I'm violating access, here's the rest of the relevant code


Again, any help is greatly appreciated!


Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: &lt;script&gt; alert(1); &lt;/script&gt;
Posted: 7th Jan 2011 14:46
change
(void**)vertexLock
to
(void**)&vertexLock

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size

Login to post a reply

Server time is: 2024-09-28 14:07:40
Your offset time is: 2024-09-28 14:07:40