Search found 8 matches

by Gothi[c]
Sun Mar 02, 2008 8:33 pm
Forum: Code Snippets
Topic: Irrlicht wxWidgets driver?
Replies: 9
Views: 3981

Yep, I did add a #define so you can add a compiler switch to compile in the wx stuff.
I haven't had much time lately, but I'm still working on the events.
I'll upload here when finished.
by Gothi[c]
Sat Mar 01, 2008 4:57 pm
Forum: Code Snippets
Topic: Irrlicht wxWidgets driver?
Replies: 9
Views: 3981

It worked :)
I created my own irrlicht driver which doesn't create it's own x11 context and window, and I used wxWidgets' GL canvas ->SetCurrent() to set the rendering context. I have a rotating cube working sofar. Now i'll have to see if i can port the events.
by Gothi[c]
Thu Feb 28, 2008 9:05 am
Forum: Code Snippets
Topic: Irrlicht wxWidgets driver?
Replies: 9
Views: 3981

Irrlicht wxWidgets driver?

I was working on trying to get Irrlicht to show inside a wxWidgets widget on Linux. So far all methods proposed only work on windows. I tweaked the irrlicht linux driver so i could pass the x11 window & display, and commented out the x11 window creation parts. This worked to some degree. I was able ...
by Gothi[c]
Wed Mar 22, 2006 5:04 am
Forum: Code Snippets
Topic: (C++) Making a Newton Convex hull from an IMesh
Replies: 2
Views: 2518


But the function doesn't work for meshes with multiple mesh buffers.


Right. to prevent that you have to prevent the array pointer to be overwritten. maybe add another dimension to the array or something. Though your idea sounds better :p


And the delete itself uses the wrong operator ...
by Gothi[c]
Tue Mar 21, 2006 5:14 pm
Forum: Code Snippets
Topic: (C++) Making a Newton Convex hull from an IMesh
Replies: 2
Views: 2518

(C++) Making a Newton Convex hull from an IMesh

This function makes a newton Convex hull from an Irrlicht mesh for collision testing.

requires nWorld global (newton world)
I was too lazy to put it as a function argument but i guess you could do that.





/////////////////////////////////////////////////////////////////////////////

struct ...
by Gothi[c]
Tue Mar 21, 2006 5:07 pm
Forum: Advanced Help
Topic: Converting IMesh to Newton Convex Hull.
Replies: 4
Views: 988

Fixed it now with the help of bitplane (thanks).



CollisionMesh CreateNewtonCollisionConvex(IAnimatedMesh *Mesh)
{

// Check if the animated mesh passed exists.

if (!Mesh)
{
debugout << "CreateNewtonCollision : error : mesh passed to the function does not exist.";
}

// get a mesh from ...
by Gothi[c]
Tue Mar 21, 2006 9:00 am
Forum: Advanced Help
Topic: Converting IMesh to Newton Convex Hull.
Replies: 4
Views: 988

Well, I found the problem that made my code crash,... it was rather obious, that loop was all wrong.

fix:


CollisionMesh CreateNewtonCollisionConvex(IAnimatedMesh *Mesh)
{

// Check if the animated mesh passed exists.

if (!Mesh)
{
debugout << "CreateNewtonCollision : error : mesh passed to ...
by Gothi[c]
Fri Mar 17, 2006 10:13 pm
Forum: Advanced Help
Topic: Converting IMesh to Newton Convex Hull.
Replies: 4
Views: 988

I am only handeling 2 of them for testing, both the same model!
Most of the time it works, sometimes it doesn't, on the same model files.

getMesh(0) should deffinitly return something, as the same file and the same mesh is loaded and it only sporadically fails.

getMeshBuffer(bi) would return ...