Search found 47 matches

by Linaxys
Thu Mar 05, 2009 12:57 pm
Forum: Beginners Help
Topic: Fixing memory leaks
Replies: 11
Views: 558

I fixed for the last scene manager, I have to drop the triangleSelector each time I don't need it, I understand now the ->drop() usage. But isn't there a problem with irrXML's memory ? Detected memory leaks! Dumping objects -> .\irrXML.cpp(86) : {7675} client block at 0x0D129FB8, subtype 0, 16 bytes...
by Linaxys
Thu Mar 05, 2009 12:17 pm
Forum: Beginners Help
Topic: Fixing memory leaks
Replies: 11
Views: 558

Mmm Ok I've dropped the triangleSelector of my plane, now it shows Detected memory leaks! Dumping objects -> {10238} normal block at 0x0D866C08, 432 bytes long. Data: < A A> 00 00 20 C1 00 00 00 00 00 00 20 41 00 00 20 41 .\CSceneManager.cpp(1500) : {10237} client block at 0x0CFDA1D8, subtype 0, 44 ...
by Linaxys
Thu Mar 05, 2009 8:05 am
Forum: Beginners Help
Topic: Fixing memory leaks
Replies: 11
Views: 558

Fixing memory leaks

Hello, I am using Irrlicht for a DLL plugin, and I get some weird memory leaks error when I close the program which has loaded the DLL. I would like to know if there's a way to clean up everything correctly (I don't know how to do that to ITriangleSelector, IMesh,...) Here's the paste, it contains m...
by Linaxys
Thu Mar 05, 2009 6:30 am
Forum: Beginners Help
Topic: [SOLVED] Mesh disappears...
Replies: 7
Views: 456

bitplane wrote:You have to call recalculateBoundingBox on the mesh buffer and then on the mesh. Recalculating the mesh bbox just updates it from the mesh buffers.
Thank you guys, it solved my problem !
by Linaxys
Thu Mar 05, 2009 12:00 am
Forum: Beginners Help
Topic: [SOLVED] Mesh disappears...
Replies: 7
Views: 456

Hmm yeah, I debugged it, and recalculateBoundingBox doesn't seem to work, it always returns 1,1,1 instead of 10,0,10...

Is there another way to get the highest vertex to get the bounding boxes ?

Thanks.
by Linaxys
Wed Mar 04, 2009 11:49 pm
Forum: Beginners Help
Topic: [SOLVED] Mesh disappears...
Replies: 7
Views: 456

Err I've never tried to extend the bouding box, how should I do that ?
Because I don't really see how much I would have to extend it...

Thanks for your reply.

--

EDIT: Oh yes, it looks like working, do I have to set it to the double of it's size ? What happens if the bouding box is too high ?
by Linaxys
Wed Mar 04, 2009 11:41 pm
Forum: Beginners Help
Topic: [SOLVED] Mesh disappears...
Replies: 7
Views: 456

[SOLVED] Mesh disappears...

Hello, When I move on my floor and rotate at some angles, it disappears sunddenly... I don't really know where it could come from, maybe my graphics card (Intel GMA 950) under OpenGL, here's the video : http://www.youtube.com/watch?v=VkR92r7sFh0 Here's the code I am using : SMesh *mesh = new SMesh()...
by Linaxys
Wed Mar 04, 2009 8:41 pm
Forum: Beginners Help
Topic: [SOLVED] Porting another model format...
Replies: 2
Views: 261

Thank you for your suggestion, it's indeed easier to understand than 3DS and Collada :)
by Linaxys
Wed Mar 04, 2009 8:16 pm
Forum: Beginners Help
Topic: [SOLVED] Porting another model format...
Replies: 2
Views: 261

[SOLVED] Porting another model format...

Hello, I would like to port Renderware model format into my project, here's a sample RWX model, a floor : ModelBegin #stone3 Surface .5 .3 0 Color .6 .6 .6 ClumpBegin Vertex -.4 0 .4 UV 0 0 Vertex .4 0 .4 UV 4 0 Vertex .4 0 -.4 UV 4 4 Vertex -.4 0 -.4 UV 0 4 Quad 4 3 2 1 Texture stone3 TextureModes ...
by Linaxys
Tue Mar 03, 2009 6:52 pm
Forum: Beginners Help
Topic: [SOLVED] Exported mesh texture problem
Replies: 1
Views: 260

[SOLVED] Exported mesh texture problem

Hello, I am trying to set a texture on my exported blender mesh (it does the same thing with Sketchup), it's COLLADA 1.4, when I put a texture like this : http://img18.imageshack.us/img18/9744/conc001xr3.jpg With this : IMesh *floorMesh = cynScene->getMesh("./assets/models/floors/floor001.dae&q...
by Linaxys
Mon Mar 02, 2009 4:11 pm
Forum: Beginners Help
Topic: [SOLVED] Image quality problem
Replies: 2
Views: 306

Thanks a lot, it works like a charm right now !
by Linaxys
Mon Mar 02, 2009 3:59 pm
Forum: Beginners Help
Topic: [SOLVED] Image quality problem
Replies: 2
Views: 306

[SOLVED] Image quality problem

Hello, I want the GUI to draw an image, then I do the following : char logoPath[1024]; sprintf(logoPath, "%s/assets/watermark.png", Path); Driver->setTextureCreationFlag (ETCF_CREATE_MIP_MAPS, false); Driver->setTextureCreationFlag (ETCF_OPTIMIZED_FOR_QUALITY, true); waterMark = GUI->addIm...
by Linaxys
Mon Mar 02, 2009 3:45 pm
Forum: Beginners Help
Topic: [SOLVED] Oh My Camera...
Replies: 4
Views: 409

Thanks a lot, it was that indeed :D
by Linaxys
Mon Mar 02, 2009 10:53 am
Forum: Beginners Help
Topic: [SOLVED] Oh My Camera...
Replies: 4
Views: 409

Ok I got it : // update position vector3df pos = cam->getPosition(); // Update rotation vector3df target = (cam->getTarget() - cam->getAbsolutePosition()); vector3df relativeRotation = target.getHorizontalAngle(); target.set(0,0, core::max_(1.f, pos.getLength())); vector3df movedir = target; matrix4...
by Linaxys
Mon Mar 02, 2009 9:57 am
Forum: Beginners Help
Topic: [SOLVED] Oh My Camera...
Replies: 4
Views: 409

[SOLVED] Oh My Camera...

Hello, I would like to make a really customized camera, like a FPS one but without freelook... I try with addCameraSceneNode, and can someone please tell me how the hell can I seriously get rid off that autorotating to the target function everytime I move forward and stuff please ??? I tried this, i...