Search found 9662 matches
- Thu Mar 14, 2024 8:40 pm
- Forum: Bug reports
- Topic: [fixed]meshes with static flag don't release memory on deletion
- Replies: 4
- Views: 2410
Re: [fixed]meshes with static flag don't release memory on deletion
OK, just noticed I still had this one on my todo. This got fixed recently in svn [r6599], so will work be in Irrlicht 1.9 Was actually rather trivial to fix - hardware buffers don't have to wait 20.000 frames when they keep the last reference to a meshbuffer. This won't release hw-buffers in all cas...
- Wed Mar 13, 2024 4:24 pm
- Forum: Beginners Help
- Topic: Simple question about parenting an object to a camera?
- Replies: 7
- Views: 1589
Re: Simple question about parenting an object to a camera?
Ah, yes - mixture of animation and movement. Always a challenge. And can get super complicated once you have crazy stuff like walk into water and start swimming ;-)
- Wed Mar 13, 2024 10:56 am
- Forum: Beginners Help
- Topic: Simple question about parenting an object to a camera?
- Replies: 7
- Views: 1589
Re: Simple question about parenting an object to a camera?
I wouldn't worry too much about speed of camera calculations. You don't run many of those, so it's unlikely to ever be a bottleneck.
- Mon Mar 11, 2024 11:04 am
- Forum: Open Discussion and Dev Announcements
- Topic: Looking at model exports
- Replies: 7
- Views: 1474
Re: Looking at model exports
X can animate (there is an animated dwarf.x model in Irrlicht media), but there's hardly any support for that format out there anymore. I have unfortunately no examples for non-working animated .x models, so not sure what problem there was with the one there.
- Mon Mar 11, 2024 10:57 am
- Forum: Beginners Help
- Topic: How to fix fps?
- Replies: 25
- Views: 4353
Re: How to fix fps?
Note about sleep and yield in Irrlicht. Basically sleep() on Window is really a bad idea for games as it always is around 15ms minimum. So one call and you limit your game to ~65 FPS which people with 144hz screens these days won't like. Yield in Irrlicht 1.8 was just as bad as it used sleep(1) so i...
- Sat Mar 09, 2024 4:26 pm
- Forum: Open Discussion and Dev Announcements
- Topic: Looking at model exports
- Replies: 7
- Views: 1474
Re: Looking at model exports
Noiecity recently made a tutorial video about that, maybe it helps? viewtopic.php?p=307310
- Sat Mar 09, 2024 11:12 am
- Forum: Beginners Help
- Topic: How to disable this thing?
- Replies: 4
- Views: 1415
Re: How to disable this thing?
Hm, mip-maps are usually good. Try setting AnisotropicFilter to 16 and enable TrilinearFilter for your texture layer in SMaterial. Both are off by default.
- Tue Mar 05, 2024 1:44 pm
- Forum: Beginners Help
- Topic: IGUIElements and IReferenceCounted
- Replies: 2
- Views: 1304
Re: IGUIElements and IReferenceCounted
Hm, it could have focus and still be hovered. Hovered can have 2 grabs. So next mouse-event the hovered should be gone. Focus can stay until you clear focus or something else gets it (sadly remove doesn't handle this in Irrlicht, very old todo...). So to be really safe with current Irrlich you shoul...
- Sat Mar 02, 2024 7:30 pm
- Forum: Beginners Help
- Topic: Editable pathfile in Open Dialog Box
- Replies: 6
- Views: 1430
Re: Editable pathfile in Open Dialog Box
Yeah, that's a problem. Irrlicht has no file-save dialog so far. I've searched around the forum a bit and it seems someone had written one in the past: viewtopic.php?p=151961
But can't tell you much about it, I haven't really checked it out.
But can't tell you much about it, I haven't really checked it out.
- Sat Mar 02, 2024 4:39 pm
- Forum: Beginners Help
- Topic: load file with source file and output exe
- Replies: 4
- Views: 1405
Re: load file with source file and output exe
Yeah, worry about it later. For a start just make sure your media-path is variable or function and not hardcoded all over the place. Then you can do things like: mediaPath + "some_folder/files" and fixing it later means only modifying a single place.
- Sat Mar 02, 2024 2:34 pm
- Forum: Beginners Help
- Topic: load file with source file and output exe
- Replies: 4
- Views: 1405
Re: load file with source file and output exe
Yes, kinda the reason why Irrlicht has that folder structure I think ;-) In svn trunk we switched to a tool function called getExampleMediaPath. But basically paths always depend on the working directory you are in at the moment you call a file-function. Independent of library or programming languag...
- Sat Mar 02, 2024 11:28 am
- Forum: Beginners Help
- Topic: Editable pathfile in Open Dialog Box
- Replies: 6
- Views: 1430
Re: Editable pathfile in Open Dialog Box
The problem is you return always true for event.EventType == irr::EET_KEY_INPUT_EVENT.
"true" means: this event is handled and Irrlicht shouldn't use it any further. So you prevent any key input to reach the gui.
"true" means: this event is handled and Irrlicht shouldn't use it any further. So you prevent any key input to reach the gui.
- Sat Mar 02, 2024 1:15 am
- Forum: Beginners Help
- Topic: Editable pathfile in Open Dialog Box
- Replies: 6
- Views: 1430
Re: Editable pathfile in Open Dialog Box
You already mentioned this in your other thread. And after my answer you just wrote "Correctly" and posted some code which didn't seem related to the problem. So I thought it works now. My guess is still that you catch the key-input in your event-handler (by returning true), so it's no lon...
- Fri Mar 01, 2024 12:14 am
- Forum: Beginners Help
- Topic: Select toolbar button or mesh from map
- Replies: 10
- Views: 1516
Re: Select toolbar button or mesh from map
Why not use your GUIisHover function when it works? Those checks are cheap, so speed shouldn't be a worry.
You can pass the gui environment to your event-receiver then you can use every function from it in there.
You can pass the gui environment to your event-receiver then you can use every function from it in there.
- Thu Feb 29, 2024 8:10 pm
- Forum: Beginners Help
- Topic: Select toolbar button or mesh from map
- Replies: 10
- Views: 1516
Re: Select toolbar button or mesh from map
GUIisSelected only updates on mouse-up so it's set when you *release* the mouse button. But you want to know if it's pressed. Your mousePress is true *before* GUIisSelected is set. GUIisHover on the other hand checks where the mouse is. So left-mouse-click-down: GUIisSelected is false. mousePress is...