Search found 12 matches

by Suthiro
Sun Feb 24, 2019 18:08
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Widget rotation bug?
Replies: 17
Views: 28132

Re: Widget rotation bug?

Absolutely nothing, iti s a typo Ok 8) I would suggest to just use an orthographic projection if that is what you would expect. Already and it works. I added code to be able to change projection matrix of render target, with perspective as default. And there is no way to steal it from the rendering...
by Suthiro
Sun Feb 24, 2019 10:39
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Widget rotation bug?
Replies: 17
Views: 28132

Re: Widget rotation bug?

Is this bug or expected behavior? ..what I observed there was a totally normal and expected distortion as given by a perspective projection. We do not use a orthographic projection here. That was the question! And my initial guess was about projection matrix, so .. played with glMatrixMode(), gluPe...
by Suthiro
Sat Feb 23, 2019 20:36
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Widget rotation bug?
Replies: 17
Views: 28132

Re: Widget rotation bug?

Yes, that is. You posted while I was writing :)
My thoughts for now:
The transform matrix looks good to me, checked it in OpenGLGeometryBufferBase::updateMatrix().
The bug is renderer independent.
It is connected with wrong rotation pivot.
by Suthiro
Sat Feb 23, 2019 20:30
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Widget rotation bug?
Replies: 17
Views: 28132

Re: Widget rotation bug?

Yes, the size / position on the screen affects rotation in general. For example, use intact HelloWorld example. In HelloWorldDemo::initialise set a rotation to 90 degrees around x-axis, wnd->setRotation(CEGUI::Quaternion::eulerAnglesDegrees(90, 0, 0)); launch, and you will see nothing. It is right b...
by Suthiro
Fri Feb 22, 2019 19:26
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Widget rotation bug?
Replies: 17
Views: 28132

Re: Widget rotation bug?

I've built CEGUI with Directx 9 and tested rotation. The results are identical.
by Suthiro
Fri Feb 22, 2019 16:58
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Widget rotation bug?
Replies: 17
Views: 28132

Re: Widget rotation bug?

So, I figured what is wrong exactly. Either in glfw template, or in samples framework everything is the same. Sorry for misleading. The rotation depends on Area property. I use <Property name="Rotation" value="x:90 y:0 z:0"/> and set <Property name="Area" value="{{...
by Suthiro
Wed Feb 20, 2019 15:31
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Widget rotation bug?
Replies: 17
Views: 28132

Re: Widget rotation bug?

That is extremely odd. Glfw just sets up the host window and some OpenGL stuff but this should not have any effect whatsoever on mathematical computations on the GPU, especially with OpenGL3 core profile. Did you say the application_templates with glfw3 is always broken, already as it is in the rep...
by Suthiro
Tue Feb 19, 2019 17:57
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Widget rotation bug?
Replies: 17
Views: 28132

Re: Widget rotation bug?

Do you have any guesses? I did quick tests, and found that the rotation in samples built with glfw2 & OpenGL3 works as expected. Moreover, glfw3 & OpenGL3 works as expected too! :oops: Now I wonder what is wrong/different, when one (like me) use \application_templates\glfw3.cpp as a start :...
by Suthiro
Mon Feb 18, 2019 15:01
Forum: Bug Reports, Suggestions, Feature Requests
Topic: Widget rotation bug?
Replies: 17
Views: 28132

Widget rotation bug?

I think I encountered a bug in widget rotation. If the rotation value is set to "x:A y:0 z:0" or "x:0 y:B z:0", either by setRotation() or by XML property, where A and B is non-zero positive values, the widget is rotated in strange manner. When point is rotated around any axis in...
by Suthiro
Sun Feb 10, 2019 16:17
Forum: Help
Topic: Hit test decoupled from alpha transparency
Replies: 6
Views: 14119

Re: Hit test decoupled from alpha transparency

... One solution we were considering is doing an inside-outside polygon test, which would be quite efficient (especially on memory) and you would just need to somehow be able to easily draw these hit polygons in a tool for your widgets. Unfortunately, tooling is what takes time and what makes this ...
by Suthiro
Sat Feb 09, 2019 13:44
Forum: Help
Topic: Hit test decoupled from alpha transparency
Replies: 6
Views: 14119

Re: Hit test decoupled from alpha transparency

Hi again! So I ended with wrapper class for CEGUI::BasicImage. The code is below: //a simple wrapper class to expose protected members. class OverridenImage : public CEGUI::BasicImage { public: CEGUI::Texture* getTexture() const { return d_texture; }; const CEGUI::Rectf& getArea() const { return...
by Suthiro
Fri Feb 08, 2019 18:25
Forum: Help
Topic: Hit test decoupled from alpha transparency
Replies: 6
Views: 14119

Hit test decoupled from alpha transparency

Hello, I implemented an AlphaHitWindow widget using http://cegui.org.uk/wiki/Hit_testing_of_non_rectangular_windows_with_CEGUI_0.7.x for 0.8.7 with minor changes to satisfy new function names. While this class is a great and simple way to achieve non-rectangular windows, it has significant drawback:...

Go to advanced search