Search found 9649 matches
- Wed Apr 17, 2024 10:26 pm
- Forum: Advanced Help
- Topic: How to get reference to active shader program in OpenGLDriver?
- Replies: 5
- Views: 173
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...
- Wed Apr 17, 2024 9:40 pm
- Forum: Advanced Help
- Topic: How to get reference to active shader program in OpenGLDriver?
- Replies: 5
- Views: 173
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...
- Wed Apr 17, 2024 12:01 pm
- Forum: Advanced Help
- Topic: How to get reference to active shader program in OpenGLDriver?
- Replies: 5
- Views: 173
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 ...
- Thu Apr 11, 2024 10:45 am
- Forum: Beginners Help
- Topic: Irrlicht doesnt support bitwise opporators?
- Replies: 1
- Views: 430
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...
- Fri Mar 29, 2024 12:30 pm
- Forum: Beginners Help
- Topic: How to create a triangle using a SMeshBuffer?
- Replies: 1
- Views: 1627
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...
- Thu Mar 21, 2024 12:50 pm
- Forum: Off-topic
- Topic: Gonna take a break for another project
- Replies: 12
- Views: 4284
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! ;-)
Good luck with Sum Up Griddy! ;-)
- Thu Mar 21, 2024 10:41 am
- Forum: Beginners Help
- Topic: Do IReadFile->read changes the postion in file?
- Replies: 1
- Views: 1385
Re: Do IReadFile->read changes the postion in file?
Yes it moves the position, so no need for seek.
- Wed Mar 20, 2024 6:28 pm
- Forum: Code Snippets
- Topic: Updated wxIrrlicht
- Replies: 18
- Views: 4674
Re: Updated wxIrrlicht
Great. One day we'll add 3rd party integration examples I hope :)
- Wed Mar 20, 2024 11:35 am
- Forum: Beginners Help
- Topic: Answer for array(u32 start_count)
- Replies: 3
- Views: 3262
Re: Answer for array(u32 start_count)
The my_mat() case... don't use the brackets. Just my_mat; Otherwise it looks like a function call for this to c++. And yeah it's a bit confusing as it works with parameters but not with an empty constructor. Just a c++ thing, stackoverflow has more info about that: https://stackoverflow.com/question...
- Wed Mar 20, 2024 10:47 am
- Forum: Open Discussion and Dev Announcements
- Topic: Support, donate....
- Replies: 5
- Views: 2843
Re: Support, donate....
Thanks, but seriously, no need. I totally selfishly work on Irrlicht because I actually use the engine myself.
- Wed Mar 20, 2024 1:31 am
- Forum: Code Snippets
- Topic: Updated wxIrrlicht
- Replies: 18
- Views: 4674
Re: Updated wxIrrlicht
Ah thanks for the video. I didn't realize when browsing quickly over the code earlier what m_windowIsActive really was (I thought it was some wxWidget variable if the window is active...). Too late here right now to really test things, but on another quick view at sources I notice you also render in...
- Tue Mar 19, 2024 5:31 pm
- Forum: Code Snippets
- Topic: Updated wxIrrlicht
- Replies: 18
- Views: 4674
Re: Updated wxIrrlicht
Thanks. Code looks actually pretty similar to code in my current project (except we use WTL instead of wxWidgets in our project). Using timers should on Windows allow ~65 FPS. No idea really about wxWidgets on Linux and timers, thought I would have expected it to be rather a better resolution (usual...
- Tue Mar 19, 2024 4:18 pm
- Forum: Code Snippets
- Topic: Updated wxIrrlicht
- Replies: 18
- Views: 4674
Re: Updated wxIrrlicht
Link gives me a 404, maybe not public?
- 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.
You can also take a look how it's implemented.
- Mon Mar 18, 2024 10:57 am
- Forum: Code Snippets
- Topic: Updated wxIrrlicht
- Replies: 18
- Views: 4674
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...