Search found 12 matches
- Tue May 08, 2018 1:37 pm
- Forum: Code Snippets
- Topic: Angle controlled camera
- Replies: 1
- Views: 3270
Angle controlled camera
Because of the recent discussion about camera rotation and up vectors, and because of my own requirements I wrote a camera animator that controls camera movements by angles. For a demonstration, I implemented this animator to the Sydney example. The demonstration animator is controlled by the follow...
- Tue Mar 06, 2018 7:53 am
- Forum: Beginners Help
- Topic: How can i let diffuse lighting work?
- Replies: 12
- Views: 1531
Re: How can i let diffuse lighting work?
What happens, when you switch off both light sources, ambient and directional?
And how do you make the shadows?
And how do you make the shadows?
- Mon Mar 05, 2018 4:24 pm
- Forum: Beginners Help
- Topic: How can i let diffuse lighting work?
- Replies: 12
- Views: 1531
Re: How can i let diffuse lighting work?
The first thing: Which video driver do you use? It seems to me that the software driver as well as the burningsvideo driver seems not to support direct lighting. The second thing is a little bit tricky and it took me some time to understand this effect: With the coordinates of your light source (-10...
- Mon Mar 05, 2018 9:48 am
- Forum: Beginners Help
- Topic: How can i let diffuse lighting work?
- Replies: 12
- Views: 1531
Re: How can i let diffuse lighting work?
Diffuse illumination means that light comes from all space directions on your mesh object. So the brightness of a mesh is completely independent of normal directions. This is exactly the situation you show in your first image, so your diffuse illumination works pretty well. To get a brightness that ...
- Sun Jan 21, 2018 5:50 am
- Forum: Beginners Help
- Topic: decal texture
- Replies: 2
- Views: 491
Re: decal texture
There is an error in your code calculating the texture coordinates: When you calculate float(x/m_TempSize.Width) and x and m_TempSize.Width are integers, this is an integer division. According to C conventions, the result is the nearest integer below the resultof a float division. In your case this ...
- Fri Jan 12, 2018 1:52 am
- Forum: Beginners Help
- Topic: setUpVector for Maya camera
- Replies: 1
- Views: 697
Re: setUpVector for Maya camera
The Maya camera is controlled by its animator CSceneNodeAnimatorCameraMaya that responds to mouse events. A look to the code of the animateNode method shows that camera position and up vector are overwritten: pos = translate; pos.X += nZoom; pos.rotateXYBy(nRotY, translate); pos....
- Thu Nov 03, 2016 9:58 am
- Forum: Bug reports
- Topic: [no bug, but changed now] string::split, another error
- Replies: 11
- Views: 4636
Re: [no bug, but changed now] string::split, another error
I agree completely with you concerning the downward compatibility and I have the following thoughts about this: If the flag ignoreEmptyTokens is set to true, all is compatible with the old version, If the flag ignoreEmptyTokens is set to false, the old version didn't work at all (see my post from 10...
- Wed Nov 02, 2016 8:05 pm
- Forum: Bug reports
- Topic: [no bug, but changed now] string::split, another error
- Replies: 11
- Views: 4636
Re: [no bug, but changed now] string::split, another error
I think less about the effort to test a flag, but about the user friendliness of the interface. As you mentioned, it is not only hard to find a name, but also to explain its effect to the user. As I see so far, the only difference between this two split interpretations is an empty string at the end ...
- Wed Nov 02, 2016 12:38 pm
- Forum: Bug reports
- Topic: [no bug, but changed now] string::split, another error
- Replies: 11
- Views: 4636
Re: [no bug, but changed now] string::split, another error
It is the behaviour of split routines I know from other libraries with string manipulation (e.g. Qt), so I expected that this will work in the same way.
I don't know if it makes sense to introduce a new parameter.
I don't know if it makes sense to introduce a new parameter.
- Wed Nov 02, 2016 5:07 am
- Forum: Bug reports
- Topic: [no bug, but changed now] string::split, another error
- Replies: 11
- Views: 4636
Re: [no bug, but changed now] string::split, another error
I think there was a missunderstanding of the problem, sorry for my bad explanation. With the new code from trunk I used the following test code: #include <irrlicht.h> #include <iostream> using namespace irr; using namespace core; int main(int argc, char *argv[]) { array<string<c8> > spli...
- Tue Oct 25, 2016 6:35 am
- Forum: Bug reports
- Topic: [no bug, but changed now] string::split, another error
- Replies: 11
- Views: 4636
[no bug, but changed now] string::split, another error
When the flag ignoreEmptyTokens is set to false and the part of the string after the last separator is empty, no empty string is pushed back to the array. I changed the last three lines of code as follows: // if ((used - 1) > lastpos) // changed to: if (!ignoreEmptyTokens ||...
- Tue Sep 27, 2016 6:43 am
- Forum: Bug reports
- Topic: [fixed in trunk]string::split
- Replies: 3
- Views: 997
[fixed in trunk]string::split
The method string::split doesn't work correctly if the flag ignoreEmptyTokens is set to false and there are consecutive separators in a string. u32 split(container& ret, const T* const c, u32 count=1, bool ignoreEmptyTokens=true, bool keepSeparators=false) const { if (!c) ...