> The project is found at: http://rapidshare.com/files/141433944/13.zip.html > > Line 418 in xyzim.cpp is the beginning of where it goes 2d. > > I'm not sure if it is my code being buggy or the new event system. I just > know that this code used to work well in the old event system. I tried moving > all my 2d stuff to the beginning of frame() in case it exited out and never > got to draw it, but it still flickers there. > > My CRYSTALSPACE version is the latest stable release. > > I tried to code through the flicker, but it seems like it becomes more intense > as it has more 2d images to draw. > > Thank you, > Jim Sager
Hi Jim, I had some troubles getting your project to build, so I stuff the code in a jamtemplate structure, which you can find at: http://ecksdee.sourceforge.net/testing/xyzim.tar.bz2 Carefully check nothing is missing, since I left aside files with "old" in their name, and used xyzim.cpp/h for filling appxyzim.cpp/h instead of oxyzim*. I also had to add a check for iImage pointer in setred(), otherwise it would crash. I some place I replaced /this/data with /appdata, but there are more left. You'll want to check saving and all is still ok with that. For the pixmap drawing, I simply put it at the end of Frame(), and there it draws without flicker. I guess I'll have to add some method or comment for 2D drawing in the jamtemplate, emphasizing that 2D stuff should be done after 3D. Some other notes: - for better readability, try to use proper indentation :-) - I think NULL should not be used in C++, use 0 instead. - for saving you could look at the persistence stuff, there are Save() and Load() methods for most mesh plugins. - try using csString and friends instead of str* functions, would help for cleaner code - you could also consider using CS' document system to construct your XML stuff That's all for now, have fun :-) > PS: This tool will be very cool when it is done before mid September. It > showcases some neet things: 1: An animation maker alternative. 2: A windowing > system. I've finished this back in 2003 already. I just need to remake it > because the old version wouldn't compile with GCC and Crystal Space updates. > I learned that I need to stay current or risk going extinct. Mind you, it seems people from Egoboo still use a map-maker tool made with CS 0.96 or so, and although its source code was lost (if I'm correct), the binary is still used and works... ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Crystal-main mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-main Unsubscribe: mailto:[EMAIL PROTECTED]
