Search found 9642 matches

by CuteAlien
Wed May 01, 2024 12:51 pm
Forum: Beginners Help
Topic: addToDeletionQueue and drop() causing my application to crash
Replies: 6
Views: 64

Re: addToDeletionQueue and drop() causing my application to crash

OK, problem in that case is that you add it to the deletion qeue over and over every loop. In theory - in reality it'll crash second time you do that. It doesn't check if what you try to delete still can be deleted, but trusts you there. You could for example set cube1 to 0 after adding it and only ...
by CuteAlien
Tue Apr 30, 2024 3:03 pm
Forum: Beginners Help
Topic: addToDeletionQueue and drop() causing my application to crash
Replies: 6
Views: 64

Re: addToDeletionQueue and drop() causing my application to crash

No, my example doesn't crash. Tested with 1.8 and trunk. If that code crashes then I'd guess something in your setup isn't correct. Like maybe it uses the wrong header/library combination (in case you work with more than one version of Irrlicht).
by CuteAlien
Tue Apr 30, 2024 10:22 am
Forum: Beginners Help
Topic: addToDeletionQueue and drop() causing my application to crash
Replies: 6
Views: 64

Re: addToDeletionQueue and drop() causing my application to crash

I don't think that's the full code. First one shouldn't crash and doesn't in tests here: #include <irrlicht.h> using namespace irr; #ifdef _MSC_VER #pragma comment(lib, "Irrlicht.lib") #endif int main(int argc, char *argv[]) { IrrlichtDevice * Device = createDevice(video::EDT_OPENGL, core:...
by CuteAlien
Sat Apr 27, 2024 6:38 pm
Forum: Open Discussion and Dev Announcements
Topic: Windows windows
Replies: 1
Views: 32

Re: Windows windows

I'm currently working with WTL, which is similar to MFC, but slightly more c++ oriented. Basically a wrapper around the native Windows API. Works mostly OK, thought I do run into some troubles once in a while (but getting Windows UI to do what you expect it to is often surprisingly hard). MFC probab...
by CuteAlien
Sat Apr 27, 2024 6:14 pm
Forum: Open Discussion and Dev Announcements
Topic: CustomPresenter for embedding Irrlicht in GTK etc
Replies: 11
Views: 2562

Re: CustomPresenter for embedding Irrlicht in GTK etc

Qt is open source. You just have to be fine with gpl or lgpl 3.0 license: https://www.qt.io/download-open-source In short - as long as your software is also open source you are free to use it. KDE desktop on Linux does use it for example. edit: Actually the parts under lgpl should also be useable in...
by CuteAlien
Wed Apr 24, 2024 7:07 pm
Forum: Open Discussion and Dev Announcements
Topic: [solved] SVN trunk and 1.9 without dll and Window 7.1 SDK
Replies: 11
Views: 1387

Re: [solved] SVN trunk and 1.9 without dll and Window 7.1 SDK

Tons of differences between 1.8.5 and 1.9, but most stuff works the same.
The .sln files are for different Visual Studio versions. Use the latest unless you have a specific reason to use an older VS (like developing for Window 98 or something).
by CuteAlien
Tue Apr 23, 2024 10:46 am
Forum: Open Discussion and Dev Announcements
Topic: [solved] SVN trunk and 1.9 without dll and Window 7.1 SDK
Replies: 11
Views: 1387

Re: [solved] SVN trunk and 1.9 without dll and Window 7.1 SDK

Good question... please write once you figured it out :-) From what I get from Microsoft website it sounds like legacy Direct X SDK is a bit update version compared to 7.1 SDK. But no guarantees.
by CuteAlien
Fri Apr 19, 2024 1:39 pm
Forum: Code Snippets
Topic: Updated wxIrrlicht
Replies: 18
Views: 4614

Re: Updated wxIrrlicht

Irrlicht should probably user multimedia timers on Windows some day. I'll look into that at some point. But unlikely for Irrlicht 1.9. Falling through floors is an old thing in 3d, not just new engines ;-) And it's sometimes, but not always about timers. The timer part can be avoided by using a fixe...
by CuteAlien
Wed Apr 17, 2024 10:26 pm
Forum: Advanced Help
Topic: How to get reference to active shader program in OpenGLDriver?
Replies: 5
Views: 155

Re: How to get reference to active shader program in OpenGLDriver?

OK. To get back to your original question once more. You can get the IMaterialRenderer* from the video-driver via driver->getMaterialRenderer for a given material (SMaterial::MaterialType). It doesn't pass through the opengl stuff, but as you seem to be allowed to modify sources: in your case IMater...
by CuteAlien
Wed Apr 17, 2024 9:40 pm
Forum: Advanced Help
Topic: How to get reference to active shader program in OpenGLDriver?
Replies: 5
Views: 155

Re: How to get reference to active shader program in OpenGLDriver?

You don't need normals? I tend to need those (edit: thought I learned recenly how specific optimized voxel engines can work when watching this video: https://www.youtube.com/watch?v=40JzyaOYJeY I guess Irrlicht starts getting more in the way than helping once you go that far). May I ask what the Con...
by CuteAlien
Wed Apr 17, 2024 12:01 pm
Forum: Advanced Help
Topic: How to get reference to active shader program in OpenGLDriver?
Replies: 5
Views: 155

Re: How to get reference to active shader program in OpenGLDriver?

Not 100% sure I get what you try to do there, but I think you go a bit against the flow there with Irrlicht. Irrlicht really only has 3 vertex types it supports well, S3DVertex, S3DVertex2TCoords and S3DVertexTangents. Just one of those early design decisions which make some things easier and other ...
by CuteAlien
Thu Apr 11, 2024 10:45 am
Forum: Beginners Help
Topic: Irrlicht doesnt support bitwise opporators?
Replies: 1
Views: 418

Re: Irrlicht doesnt support bitwise opporators?

Note this is about shaders, not directly Irrlicht. I'm not sure when you get that error (seeing the shader code might help). But from what I can see on google it might not be supported by ES1 and ES2 - which are the only drivers Irrlicht supports so far in case you work with GL ES. If it's not about...
by CuteAlien
Fri Mar 29, 2024 12:30 pm
Forum: Beginners Help
Topic: How to create a triangle using a SMeshBuffer?
Replies: 1
Views: 1622

Re: How to create a triangle using a SMeshBuffer?

Maybe check example 23.MeshHandling. The part where it fills the meshbuffer is in the addstrip function. But in short: Meshbuffers have Vertices, Indices and a Material and you need to set those all. Vertices are usually in the S3DVertex format and set the 3 corners of your triangle. Or 4 corners of...
by CuteAlien
Thu Mar 21, 2024 12:50 pm
Forum: Off-topic
Topic: Gonna take a break for another project
Replies: 10
Views: 4223

Re: Gonna take a break for another project

Spell checking maybe in your browser? I don't think we have that in the foorrummm (see?).
Good luck with Sum Up Griddy! ;-)
by CuteAlien
Thu Mar 21, 2024 10:41 am
Forum: Beginners Help
Topic: Do IReadFile->read changes the postion in file?
Replies: 1
Views: 1378

Re: Do IReadFile->read changes the postion in file?

Yes it moves the position, so no need for seek.