Search found 9652 matches

by CuteAlien
Tue Mar 19, 2024 4:18 pm
Forum: Code Snippets
Topic: Updated wxIrrlicht
Replies: 18
Views: 4677

Re: Updated wxIrrlicht

Link gives me a 404, maybe not public?
by CuteAlien
Tue Mar 19, 2024 11:34 am
Forum: Beginners Help
Topic: How to get last characters of a string?
Replies: 2
Views: 1455

Re: How to get last characters of a string?

Easiest is to use the functions in coreutil.h like irr::core::hasFileExtension or irr::core::isFileExtension
You can also take a look how it's implemented.
by CuteAlien
Mon Mar 18, 2024 10:57 am
Forum: Code Snippets
Topic: Updated wxIrrlicht
Replies: 18
Views: 4677

Re: Updated wxIrrlicht

@Noiecity: Yeah - it's about Windows timer in general which are used for example in Windows sleep(). Irrlicht uses those for it's device->sleep(). Which I don't recommend using anymore therefore. Up to (including) Irrlicht 1.8 we also used sleep(1) for device->yield(), so that was just as bad. But t...
by CuteAlien
Sun Mar 17, 2024 11:50 am
Forum: Beginners Help
Topic: How to draw solid material, wireframe and point cloud at the same time?
Replies: 1
Views: 1390

Re: How to draw solid material, wireframe and point cloud at the same time?

On OpenGL you can do it by rendering the model 3 times. First time as usual. Second time with a material which has material.Wireframe true and a bigger has material.Thickness. And third time with material.PointCloud true and even bigger Thickness. But it's unlikely to work well on other renderers as...
by CuteAlien
Sat Mar 16, 2024 4:41 pm
Forum: Bug reports
Topic: [not supported]Issue with obj reader
Replies: 8
Views: 5493

Re: Issue with obj reader

Another very old thing... I've looked on this a few times over the years without knowing what to do with it. svn trunk [r6602] (Irrlicht 1.9) has now some changes related to this: The bump textures in robmars example which start with a number were messed up in Irrlicht as the number was assumed to b...
by CuteAlien
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: 2403

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...
by CuteAlien
Wed Mar 13, 2024 4:24 pm
Forum: Beginners Help
Topic: Simple question about parenting an object to a camera?
Replies: 7
Views: 1570

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 ;-)
by CuteAlien
Wed Mar 13, 2024 10:56 am
Forum: Beginners Help
Topic: Simple question about parenting an object to a camera?
Replies: 7
Views: 1570

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.
by CuteAlien
Mon Mar 11, 2024 11:04 am
Forum: Open Discussion and Dev Announcements
Topic: Looking at model exports
Replies: 7
Views: 1458

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.
by CuteAlien
Mon Mar 11, 2024 10:57 am
Forum: Beginners Help
Topic: How to fix fps?
Replies: 25
Views: 4321

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...
by CuteAlien
Sat Mar 09, 2024 4:26 pm
Forum: Open Discussion and Dev Announcements
Topic: Looking at model exports
Replies: 7
Views: 1458

Re: Looking at model exports

Noiecity recently made a tutorial video about that, maybe it helps? viewtopic.php?p=307310
by CuteAlien
Sat Mar 09, 2024 11:12 am
Forum: Beginners Help
Topic: How to disable this thing?
Replies: 4
Views: 1403

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.
by CuteAlien
Tue Mar 05, 2024 1:44 pm
Forum: Beginners Help
Topic: IGUIElements and IReferenceCounted
Replies: 2
Views: 1291

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...
by CuteAlien
Sat Mar 02, 2024 7:30 pm
Forum: Beginners Help
Topic: Editable pathfile in Open Dialog Box
Replies: 6
Views: 1415

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.
by CuteAlien
Sat Mar 02, 2024 4:39 pm
Forum: Beginners Help
Topic: load file with source file and output exe
Replies: 4
Views: 1394

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.