Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - egofree

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »
256
Off-Topic / Re: I love Linux
« on: August 17, 2014, 03:06:45 pm »
Freedom ! You have a lot of distros and for each distro you can choose a different graphical interface. With windows, if you don't like their latest version with tiles, you're f***d or you need to install new applications in order to get rid of this crap.
Also, with Linux you don't get virus ! With windows, you need often to re-install your PC, even if you are careful, as the OS is infected all the time ! You have anti-viruses of course, but it's far from being a perfect protection. And finally, i like very much the idea of open-source software.
I've a PC with a dual boot between Linux Mint and Windows. I try to use much as possible Linux. Sometimes it's not possible, as i need to use software like Photoshop.

257
Proposals / Copy and paste in the rooms editor
« on: August 17, 2014, 02:56:23 pm »
After having finished scaling, rotation and colour blending, i think it would be cool to add copy and paste in the rooms editor. I see two major benefits :
- As the instances will have new properties (scale, rotation,etc), it is useful when you want to copy exactly the same instance. No need to add a new instance and modify its properties
- When you will copy the instance, it will automatically set this instance as the new object type in the objects tab. This means that if you want to copy an object several times, you can copy it, and paste it if you need an instance with the same properties, or directly add it with the left button. In this way, you don't have to select the object time every time you want to copy or add new instances. By the way, as you can have a lot of objects, with many folders, it would be useful when you want to add new object to select the object with a window where all the objects are displayed in a graphical ways, but without folders. Think of file explorers where pictures folders are displayed with big icons. Of course it should be possible to select the 'old way' too.

Another benefit of copy and paste will appear when multi-selection when be added. But that's another story.  :)

What do you think of my proposal ?


258
Programming Help / Re: Color values in GM
« on: August 17, 2014, 07:41:06 am »
I posted a new topic on the official forum of Yoyo about this problem. Anyway i have nothing to loose. :D Also, as their new GMX format is saved in XML, this means to me that it should be an open format and easily understandable. :P  :)

259
Issues Help Desk / Re: Linux Requirements
« on: August 15, 2014, 01:31:12 pm »
Also, I did make an attempt at fixing that multiple views issue and there is something funky about it, I did test all the draw clear calls as well as screen refresh and had no success at all with it. I can take another crack at it sometime though.

Thanks for trying. I appreciate.  :)

260
Programming Help / Re: Color values in GM
« on: August 15, 2014, 06:01:33 am »
I've really no ideas how the color is saved. I was thinking seriously to disassemble the exe, but they protected their exe with cryptography (c.f https://www.bouncycastle.org/). My goal is not to become an expert in hacking and cryptography, and i don't want to spend days or weeks to find the color's algorithm in GM Studio :D. I propose the following : for the time being, let's support color blending only in egm format. I will store the color value in ARGB format. If it's a gmx or gmk file, LateralGM will not try to read or write this property.

261
Programming Help / Re: Color values in GM
« on: August 15, 2014, 02:02:59 am »
I can't tell you specifically how it is but I can tell you it is quite whacky, correct me if I am wrong but I believe GMK had the same wonky color format. Specifically take a look at the GMX reader and writer there should be a utility function to convert them. Also here is how it is handled in the C++ CLI.
https://github.com/enigma-dev/enigma-dev/blob/master/CommandLine/programs/emake/main.cpp#L47

Yes, i've seen that in Util.java there is methods to convert colors. For example they are used to read the background color of the room. But all these colors don't take into account the alpha property. I've added two methods to store colors with alpha (e.g colors in the preferences panel), but they are not compliant with GM studio. The method in the C++ CLI is used to convert Blue, Green, Red values into Red, Green, Blue values. But this is not the case here.
The instance's color is a special case. To my knowledge it's the only color in GM which has an alpha property. Currently LateralGm read this property and store it in the instance property as long, but so far it was not necessary to interpret this value.
I've seen that you can also pre-multiply alpha : http://blogs.msdn.com/b/shawnhar/archive/2009/11/06/premultiplied-alpha.aspx. But it doesn't seem to be the case here. I am still investigating.

Edit : one solution would be to disassemble GM Studio exe and see the machine code instructions used to do this conversion. But i am not familiar with Intel CPU ;)

Edit2: or perhaps a better solution, would be to send an email to Yoyo games and explain my problem. As i paid 40$ for a standard version of GM studio, i am sure they will understand.  ;D

262
Programming Help / Color values in GM (solved)
« on: August 14, 2014, 03:08:34 pm »
In the rooms editor i want to support the instance's color. I am trying to figure out how the colors are stored in a gmx file. A very common format is ARGB (c.f http://en.wikipedia.org/wiki/ARGB). In this format, a 32-bit unsigned integer is used with the highest byte for the Alpha value, and the following bytes for the Red, the Green, and the Blue value. Unfortunately, this is not exactly the same in GM. If the set the alpha value to zero, it seems that the first three lowest bytes are used to store the RGB values. I tried the following colors : (int value and the corresponding binary)

blue : 255 -> 11111111
green : 65280 -> 1111111100000000
red : 16711680 -> 111111110000000000000000

But when i set the alpha value to 255 :

blue : 427819033 -> 11001100000000000000000011001
green : 4278255360 ->11001100000000001100110000000
red : 429490176 -> 11001100110011000000000000000
white : 429496729 -> 11001100110011001100110011001
black : 427819008 -> 11001100000000000000000000000

Does anybody has an idea how the color codes are stored ?

263
Issues Help Desk / No checking in the instance creation code
« on: August 14, 2014, 12:43:06 pm »
You can put whatever you want in the instance creation code, the compiler will never complain.

264
Issues Help Desk / Re: Linux Requirements
« on: August 14, 2014, 02:47:32 am »
Robert, let's make a deal  :D :  when i will have finished the new instance's properties (scaling, rotation, alpha) in the rooms editor, i will work again on this problem. Now i would be very grateful if you could work on the multiple views problem in OpenGL. I know that you are very busy, but you said that this is a very simple problem to fix : it is just the buffer which needs to be swapped. What do you think ?  :D

265
Issues Help Desk / Re: Linux Requirements
« on: August 14, 2014, 02:18:33 am »
egofree, did you prepare a patch with a custom comparator? If that solves the error I'd like to go ahead and pull that for now, or since you have commit access go ahead and do that as it is better than no solution and the software being unusable, so go ahead and fix it. If you want of course, please, lol :)

Well, first, recently you said you were still thinking about a good solution for this. :D Then, the focus manager i've found on internet is not really ready, as the focus is no more functioning on the toolbar. So this means there is more work needed on this. I spent already many hours on this problem, and for the moment i don't feel very motivated to work on this. :(

266
General ENIGMA / Re: New functions available in the rooms editor.
« on: August 13, 2014, 02:24:31 pm »
I've finished to implement scaling, rotation and alpha property. It was a pain in the *** to integrate correctly all these properties, especially with the sprite's origin. :D
If some people would like to test my latest version : https://dl.dropboxusercontent.com/u/29802501/lateralgm.jar. This is work in progress and it is made just to test the new properties in the rooms editor. It is not working yet within ENIGMA, and i need to add missing features, like the undo. I need also to be sure that they are saved correctly in project files. I am working right now on the image blending with colors.

267
Issues Help Desk / Re: Linux Requirements
« on: August 13, 2014, 02:12:00 pm »
I can't answer to your question, but i can tell you that it's not possible for the moment to use ENIGMA with KDE based distros : https://github.com/IsmAvatar/LateralGM/issues/124

268
Proposals / Re: Flipping, scaling and rotating instances
« on: August 13, 2014, 02:07:29 pm »
You forgot about image_blend but ince I don't use that in the room editor personally I could care less if that's added. As for scaling, that would be amazing. I look forward to using it (if it's ever added)

I started this morning to work on the image blending. Yesterday evening i've seen that in gmx files the alpha value is stored in the color code, so i told to myself that it would be better to take also into account the color. I am trying to see how to display correctly the image blending in the rooms editor with Java.

269
Proposals / Re: Flipping, scaling and rotating instances
« on: August 12, 2014, 11:27:56 am »
I think i've finally found why the methods for scaling and rotating instances didn't seem to work in the creation code of an instance. It's because in my project the object has a draw event and a script with the following line :

Code: [Select]
draw_sprite(sprite_index,image_index,x,y);
This is a normal behavior, and it works the same in ENIGMA and GM.

270
General ENIGMA / Re: The Times They Are A Changin'
« on: August 11, 2014, 04:13:42 am »
I have now found an optimization for OpenGL1 static models that we were originally utilizing

This optimization seems great Robert, but i wonder : does it apply only to OpenGL 1.1 ? I am not sure if it is worth working on a version of a technology which is 17 years old ! (OpenGl 1.1 was released in 1997).

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »