Search found 79 matches

by lumirion
Fri Mar 03, 2017 1:20 am
Forum: Open Discussion and Dev Announcements
Topic: A way to do safe portable asynchronous loading
Replies: 2
Views: 1517

Re: A way to do safe portable asynchronous loading

Oh! Yah. You're right. Storing an empty scene node till the data is available does seem pointless. Plus would need some sort of mutex on storage access or else limit it to a single asynchronous loader thread. By the way thanks for updating your git repo. I have been looking forward to browsing your ...
by lumirion
Wed Mar 01, 2017 12:51 am
Forum: Open Discussion and Dev Announcements
Topic: A way to do safe portable asynchronous loading
Replies: 2
Views: 1517

A way to do safe portable asynchronous loading

I think this would be a safe way, with minimal modification, to use a list of functors and an openmp parallelized function to asynchronously load meshes. openmp is included in most compilers. we could test for availability and enable it. An asyncronus loading process could work like this. { smgr cre...
by lumirion
Sat Jan 21, 2017 1:54 am
Forum: Open Discussion and Dev Announcements
Topic: How to tell if a mesh was animated this frame
Replies: 10
Views: 2766

Re: How to tell if a mesh was animated this frame

Sorry, I'll explain better. What I want to do is find the most efficient way to tell if a mesh's animation during the current frame has invalidated the meshes position in the render sequence. Then I will be able to adjust when it renders by moving it's position in the render que. The way it works in...
by lumirion
Fri Jan 20, 2017 8:35 am
Forum: Open Discussion and Dev Announcements
Topic: How to tell if a mesh was animated this frame
Replies: 10
Views: 2766

Re: How to tell if a mesh was animated this frame

That could be useful for when I write an animation managing class. at the moment I was thinking more like detecting morphological changes or movement reletive to the active camera. I'm hoping to sort render order based the interrelation of the scene elements, and only change the sequence when animat...
by lumirion
Wed Jan 18, 2017 1:34 am
Forum: Open Discussion and Dev Announcements
Topic: How to tell if a mesh was animated this frame
Replies: 10
Views: 2766

How to tell if a mesh was animated this frame

What would be the best way to tell if an animated mesh has moved or deformed since the last frame?
by lumirion
Tue Jan 17, 2017 10:18 pm
Forum: Advanced Help
Topic: (solved) Problem updating from irrlicht 1.7. Rotation?
Replies: 20
Views: 4514

Re: (solved) Problem updating from irrlicht 1.7. Rotation?

To fix the rotations in the m2's animations I edited src/Viewer/CM2MeshFileLoader.cpp at line 608. This line assigns a joint's animation frame's rotation key to the joint. I changed  rot->rotation=tempQ;   to  rot->rotation=tempQ.makeInverse(); this made the direction quaternion point the opposite w...
by lumirion
Tue Jan 17, 2017 1:55 am
Forum: Advanced Help
Topic: (solved) Problem updating from irrlicht 1.7. Rotation?
Replies: 20
Views: 4514

Re: Problem updating from irrlicht 1.7. Rotation?

Success! :D I managed to invert my rotations as they are passed into the joints.
by lumirion
Thu Dec 15, 2016 8:24 am
Forum: Advanced Help
Topic: (solved) Problem updating from irrlicht 1.7. Rotation?
Replies: 20
Views: 4514

Re: Problem updating from irrlicht 1.7. Rotation?

Here we go. Lets try this https://gitlab.com/Lumirion/M2Viewer/repository/archive.zip?ref=master . That link should download my working directory. I pulled most of the changes out of the irrlicht code and moved them into viewer.cpp. The only modifications remaining in Irrlicht are adding my cm2mesh ...
by lumirion
Thu Dec 01, 2016 9:02 pm
Forum: Advanced Help
Topic: (solved) Problem updating from irrlicht 1.7. Rotation?
Replies: 20
Views: 4514

Re: Problem updating from irrlicht 1.7. Rotation?

Aww crap. Ok I'll find a better host and re-upload. I included irrlicht so that my cmake project works. I'm a little overly proud of it. Lol. The changes are minimal. Just a texture loader and support for cm2mesh type.
by lumirion
Mon Nov 28, 2016 7:50 am
Forum: Advanced Help
Topic: (solved) Problem updating from irrlicht 1.7. Rotation?
Replies: 20
Views: 4514

Re: Problem updating from irrlicht 1.7. Rotation?

I have an example M2Viewer program and a sample mesh to load. It demonstrates the defective animation. It can be found at http://www24.zippyshare.com/v/u9oq4EGA/file.html . The M2Viewer also exhibits an incorrect submesh render order, so please ignore that. I included a copy of irrlicht 1.8.3 modifi...
by lumirion
Wed Nov 16, 2016 12:56 am
Forum: Advanced Help
Topic: (solved) Problem updating from irrlicht 1.7. Rotation?
Replies: 20
Views: 4514

Re: Problem updating from irrlicht 1.7. Rotation?

Working on a minimal example, but I'm short on time. Doing fall yard work. I'll post it when I cut it down to size.
by lumirion
Fri Sep 30, 2016 5:41 pm
Forum: Advanced Help
Topic: (solved) Problem updating from irrlicht 1.7. Rotation?
Replies: 20
Views: 4514

Re: Problem updating from irrlicht 1.7. Rotation?

It is still not working. The source code for the loader and mesh, prior to my attempts to fix them, can be viewed at https://github.com/shlainn/pseuwow/tree/master/src/Client/GUI in case anyone can see what's wrong. I know the mesh is based on an older version of skinned mesh. The files to look at a...
by lumirion
Tue Sep 20, 2016 8:51 pm
Forum: Advanced Help
Topic: (solved) Problem updating from irrlicht 1.7. Rotation?
Replies: 20
Views: 4514

Re: Problem updating from irrlicht 1.7. Rotation?

Thank-you, I will try when I get home. :)
by lumirion
Sun Sep 18, 2016 6:27 am
Forum: Advanced Help
Topic: (solved) Problem updating from irrlicht 1.7. Rotation?
Replies: 20
Views: 4514

Re: Problem updating from irrlicht 1.7. Rotation?

First I want to say thanks for helping. Ok, so following your tip about IRR_TEST_BROKEN_QUATERNION_USE, I set it to 1 and tried to recompile. Compile flagged the line   core::matrix4 rotationMatrix = Joint->Animatedrotation.getMatrix;   in my previously posted code with an error. how do I fix this? ...
by lumirion
Fri Sep 16, 2016 8:36 pm
Forum: Advanced Help
Topic: (solved) Problem updating from irrlicht 1.7. Rotation?
Replies: 20
Views: 4514

Re: Problem updating from irrlicht 1.7. Rotation?

Oh, fixquaternion just switches from y up coordinates to z up, irrlicht, stile coordinates.