Search found 4 matches

by azerty
Thu Oct 24, 2024 7:43 pm
Forum: Beginners Help
Topic: Compilation errors
Replies: 2
Views: 107

Re: Compilation errors

Hello,

I've found the error. It was a typo error.

Code: Select all

Instead of: cubeTex[i] = driver->getTexture(cubeTexPath[i]);
I've written: cubeTex[i] = driver->getTexture(cubeTex[i]);
This is why irrString was lost :)

Happy coding,
azerty
by azerty
Sun Oct 20, 2024 10:12 am
Forum: Beginners Help
Topic: Compilation errors
Replies: 2
Views: 107

Compilation errors

Hello, I use VS 2019 with SDK version 142 and Irrlicht version 1.8.5. I can't compile my program because of two strange errors. Erreur C2451 une expression conditionnelle de type 'const B' est non valide STU C:\Users\User\source\repos\STU.Irrlicht\STU\include\irrString.h 364 Erreur C2440 'cast de ty...
by azerty
Thu Aug 08, 2024 8:50 am
Forum: Beginners Help
Topic: Should be obvious
Replies: 2
Views: 417

Re: Should be obvious

Hello,

Thank you for your reply. Using EmissiveColor helped.

Thanks again,
azerty
by azerty
Wed Aug 07, 2024 11:27 pm
Forum: Beginners Help
Topic: Should be obvious
Replies: 2
Views: 417

Should be obvious

Hello, I try to create an array of 3D boxes and give them a particular color. My problem is that the boxes stay gray. // Add a light. scene::ILightSceneNode* dirLight = smgr->addLightSceneNode(0, camera.getPosition(), video::SColorf(.5f, .5f, .5f), 50.f); // Create 3D array of boxes. for (int x = -5...