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 - va!n

Pages: 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14 15 ... 57
Projects / Re: Distance field based font render
« on: March 07, 2011 »
Really nice demonstration with a nice result @ 60/61 fps!
Btw, how to change the 'Scale' operator?

Would be nice to have the hotkeys as helppage under the info output ^^
Did i understand you right, that your version is based on XNA?

I found an very impressive video about a GRail (graphical input language) done by the computer pionier named 'Alan Kay' who seems to be the father of OOP too! His work is very interesting and its really hard to believe, that we had such an impressive technology end of the 60th! But just take yourself a look to the video and his project around 1968:

Another very interesting video:

General chat / Re: New look
« on: March 06, 2011 »
do you want use an existing theme or do you want/plane a new/own design/theme?

If you want use an existing theme, a link to available themes would be nice, so ppl can take a look and choose / vote ;)

Ups... yes you could be right.. have not checked yet if it works when using uint... (silly small mistake, i thought about uint but used int ^^).

Wow, thanks for the tiny working codesnip! I didnt knew that C# features commands for this! I am amazed everytime again, what C# has all inbuild to makes coders life easier ^^ So many thanks for your info and working code!

I will try to fix my source! Its nice to see C# has inbuild commands for this... But i would like to know the stuff behind this and how does it works which could be very useful.

I have checked the website a bit... seems they are just only using the name "Amiga"... really sad

General chat / Sorry but i have to lol about this
« on: March 02, 2011 »
As the topic says... everytime when reading something about "a new amiga" system will come out i have to laught... Why? I am not really sure, but probaly because i read and heared this since 1993 when i really wished we got a new amazing and killing system! But thats now nearly 20 years ago. OMG, i got really old men ^^

Today i found an announcement about (again) new amiga devices like TV and phone. I am sure that all the photos are again - like all the things in the past - just only nice faked images of products we will never see... And if this products may really available one day for the public, i am sure its really to late and only for nostalgic friends.

The Amiga was a rally great amazing computer i really loved... So let it be in mind as this great computer was before the company died :-( Btw, i am really happy with windows (even i dont rally understand, why only the OS need so much space on HDD... but who cares in times when having up to 3TB harddrives? ^^

No no... i know about the sign bit... 0 == positive and 1 == negative value.... and i have tried to add something like your codeline... but i got always the positive number instead the negative... I am still trying to check it atm... pls wait while trying to solve this problem, maybe i really need a break? XD

[Edited - Added:]
Sorry guys... i will give up now and make a big break for some hours before i look again to the source.

For my actually project i need to store int32 and float values into an int32 array! While some researching and reading on web about the float format, i have tried to code a small piece of code as example how it can be done.

For positive float values it works well... But there is something wrong, when it comes to negative float values... I know i have to do something with the variable called s which stay for signed! 0 == positive number.... 1 == negative number. Atm i am not really sure how but i will try to fix this small bug and i will try to how to do the full way backwards (also writing a float as int32)

I have tried to check if v is not 0, then result-(result*2)... But maybe i just need a small break to think again about it and to solve the problem ^^

However here is my peace of code in C#...

Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;

// Small test to read a saved float value as long and convert the long value back to
// the save float value! So you can save float values even in int arrays and just
// need to convert the int back to the original float.
// Researched on web for infos about float format and tried to code this small piece of code
// Coded by Thorsten Will ('Mr.Vain of Secretly' 01.03.2011)

namespace ConsoleApplication1
    class Program
        static void Main(string[] args)
            // -------- Please define this first !!!

            string filename = @"d:\FloatTest.dat";
            float valueFloat = -3.14f;
            int valueInt32 = 32;

            bool saveValueAsFloat = true;

            // -------- Save float value to a testfile

            if (saveValueAsFloat == true)
                BinaryWriter binWriter = new BinaryWriter(File.Open(filename, FileMode.Create));
                BinaryWriter binWriter = new BinaryWriter(File.Open(filename, FileMode.Create));

            // -------- Load value as float and as int from testfile

            BinaryReader binReader = new BinaryReader(File.Open(filename, FileMode.Open));
            int value = binReader.ReadInt32();

            // -------- Lets start the magic :)

            //int value = 0x42285375;
            Console.WriteLine("InputValue Long: " + value.ToString() + "    Hex: " + value.ToString("x"));

            int s = (value >> 31);
            Console.WriteLine("v: " + s.ToString());
            int e = (value >> 23);
            Console.WriteLine("e: " + e.ToString());
            int f = (value & 0xffffff);
            Console.WriteLine("f: " + f.ToString());

            e = e - 127;
            Console.WriteLine("e: " + e.ToString());
            float mantise = (1 + (float)(f / Math.Pow(2, 23)));
            Console.WriteLine("mantise: " + mantise.ToString());

            float result = (float)Math.Pow(2, e) * mantise;

            if (s == -1)
                result = -result * 2;

            //if (s) result=-result;

            Console.WriteLine("OutputValue Float: " + result.ToString());


Blitz / Re: Blitz Monkey Demo is Out!
« on: February 28, 2011 »
Thanks for the info and for the link! I will d/l it take a look! Platformindependent for so much platforms sounds very interested!

However i probaly will not really use BlitzMonkey myself in future... Is the syntax again not compatible to the old blitz versions like to BlitzMax? ^^

I have tested the free version, which is sadly only for HTML5 (with Javascript). I have only tried some examples and they are all working fine! But there is not really an impressive demo effect or any other gfx related example in my eyes. Would have tried to compile/run for Windows, iOS and others. From my first test, its a nice language for ppl wanting to code for different OS.

Projects / Re: Plane9 v1.7 released
« on: February 27, 2011 »
Clipboard thing as been added to todo. Need a way to inform the user about this fact since otherwise they will probably not know. A popup isn't an option since it would be disruptive. I'll see what I can come up with.

Nice to hear. Just add an option in the Config/OptionWnd, so the user can config, if screenshot should be copied to clipboard too or not (enable/disable), so no need to inform the user and no popup required ^^

The user can config how the "F9 Create Screenshot" should be handled too. For example:

[enable/disable] Auto save screenshot by pressing F9 (F9 = one actually screenshot)
[save path] User can define the path, where the screenshots should be saved to.

Good idea! The plan for the flowchart area is to completely rewrite it and render it using the 3d engine/opengl. So it would be much faster, allow smooth zoom and would allow me to do some other neat tricks. But this is still a good idea even with that rebuild.

I had the idea for zooming in/out the flowchart and probaly another nice idea too! This feature would be really nice. I have to think again about the other idea i had in mind for the flowchart soon.

I think they can indirectly do this. I dont have two soundcards in any machine so I can test it. But I capture from the "Default device" as defined by microsoft api so I would guess it's changeable using the normal windows sound mixer. Added it to the todo list never the less.

Ok, you can ofcourse select the default soundcard, when having more as one! But i had mind when for example a VJ want to mix music from two inputs. So two soundcards are required (or a mixer ^^). The idea was, that the user can swap anytime between (all) available sound devices. But this isnt so important atm i think.

That would probably be a application ontop of the existing one so to speak. So you would create your scenes individually but then have a composer type editor where you got to pick different scenes and for how long they should be shown. Added to todo list.

Yes... i had something in mind, how this could be added and very user friendly... I have to think again about it and let you know.

Some more ideas and improvement will follow
best regards

General chat / Re: Birthday thread...
« on: February 27, 2011 »
Happy birthday Pixel Outlaw and Zawran :)

Thanks for sharing your sources, WindowMaker ;) K+

Projects / Re: Plane9 v1.7 released
« on: February 27, 2011 »
Hi Xetick:
I' am back with probaly some more ideas and improvements for plane9.

When starting the editor, the plane9 windows looks to me a bit like there is something wrong / unfinished or still missing... Sure its not really... but i think the reason for this, is the empty lightblue area in the middle of the screen. So here we start with a probaly first imrprovements which gives plane9 even at start a more looking professional tool, isnt it?

Just take a look how it looks yet when running the app and how it could look like, when having already an empty FlowEdit or FlowChart window...(or however you want name it)

[Click link to see images in full size]

So the app starts with empty projects but the user (even for newbies to this tool) see, how to start and how things are ordered. Btw when starting v1.7.0 the properties window apears empty - i changed this in my idea graphics. Adding a new scene could look something like following image:

Another thing is the MenuBar of the MainWindow. I thought a litle bit and changed the menu structure a little bit, which hopefully is more user friendly.

Some ideas and thoughts:

When using the menu or F9 to take a screenshot,it would be nice to have this even in the Clipboard... Another thing, mabye it makes sence to autosave screenshots (image++) in a seperate "screenshot" folder with a suffix like  screenshot_0000.jpg, screenshot_0001.jpg?

FlowChart / FlowEditor Window:
Something i really miss atm, are scrollbars when the tree is bigger as the shown area. So i added scrollbars to the images as idea too.

Capture Sound:
Atm it seems (under Vista/Win7) the app is capturing the background audio of the standard soundcard... So what about a config, where the user can use and select between more as one available soundcards? For example users could have two soundcards (even as external USB soundcard device)

Creating a scene:
If people want to create a scene (like a music video with special visualisations), something like an timeline window would be nice... So the user can compose his viualisation video... In fact of this, it would be nice to select the wanted audiofile (MP3, OGG, WAV etc) - Its just an idea...

Atm the user can save it screenshot... So what about exporing a defined timelenght or timeline-project as video? (this could be really cool i think)

Have a nice day! I really like your tool more and more ;)

[Edited - Added:
Sorry, ofcourse it makes sence to leave the properties window empty/clean on ScreenshowNew1 - when no project is loaded! ^^

Hmmm... so its not possible in C#? I have to think about... Using uint for my array and shifting around to set/get a  channel color works well..

Yes drawing in C# using GDI/GDI+ is really slow. However i tried from the first second to do all stuff in a big array and bringing the result very fast to a bitmap/on screen! I found a way to draw the array result very fast - a lot faster as C# drawings! From performance issue i have no problem yet. Just only thought how to have cleaner code and....

thanks for your info...

[Edited - Added:]
In one of my very firsts tests i tried to draw and generate 5 different simple textures (each 256x256)... Needed time:  ~ 20 ms (i think this is great)

I think its must be possible, but i am not really sure how to use/write it in C#. What i need is an array where i can read/write RGBA values and just direct access to RED, GREEN, BLUE, ALPHA.

Code: [Select]
        // Init

        public struct ARGB  // RGBA or ARGB ^^
            public byte A;
            public byte R;
            public byte G;
            public byte B;

        public uint[] arTexture;

        // Methode

        public void TestStructArray()
            arTexture = new uint[64 * 64];

Later something like following should be possible:

Code: [Select]
// Set (byte) value for any color channel
arTexture[ position ].A = 255
arTexture[ position ].R = 255
arTexture[ position ].G = 255
arTexture[ position ].B = 255

// Set (uint) value for ARGB pixel value
arTexture[ position ].ARGB = 0xFF224466

// Get (byte) value of any color channel
valueA = arTexture[ position ].A
valueR = arTexture[ position ].R
valueG = arTexture[ position ].G
valueB = arTexture[ position ].B

ValueARGB = arTexture[ position ].RGBA

Any idea how this can be done (array with struct)?  And yes, i know this can be done by using C#'s COLOR... But i want to use my own for some reasons ;)

[Edited - Added:]
Atm i am using an uint[] where i read/write the full pixelcolor as ARGB and using SHL/SHR operators to get/set the value of the wanted color channel! This works but i want to have a cleaner code and being more flexible.

General chat / Re: Twitter visualization
« on: February 25, 2011 »

ASM / Re: Sections
« on: February 25, 2011 »
Any windows exe has x numbers of sections! The type of sections is very important, due fact we dont want mix code with data, so we have sections! There are ways to merge sections but that is another topic.

Sections are part of each windows PE header! Just google for Win32 PE headers and filealignments to get deeper into what sections are and how they are working.

Maybe this is a first start and helps a bit: Website by T$ (german)

At least just check out the great fasm forum where you will find a lot of informations and examples.

[Edited - Added:]

Projects / Re: Plane9 v1.7 released
« on: February 25, 2011 »
I have probaly still some more ideas and improvements in mind.

FileTexture1 Operator:
Its nice that the user can select any texture in the properties window but sadly you are wasting a lot of space in the window. So what about having a preview of the selected/used texture - or maybe more userfriendly, just add a ListView where all available textures are listed with a preview as thumbnail? I think this would be a nice feature - esp when having a lot of textures, people dont must search so long to get the wanted texture ^^

[Click link to see images in full size]

Input fields for values
Its nice to click in any editbox/texbox and type in the wished numbers. There is one small problem when wanting to type things like the viewport of screen, which is "0 0 1 1"... By the way there is no auto formating and just only one editbox to type all four values in, the user dont have to mistype. So what about splitting such fields, to have one editfield for each value (you can autoformat this too like for float inputs).

Another thing is to play aroung with values, it would be nice to change the values easy and fast by having a numberbox, to add/sub values by clicking by mouse. Here is just an idea, how it could look like:

[Click link to see images in full size]

Some more ideas and improvement will follow soon... Best regards

Thorsten aka Mr.Vain/Secretly!

ASM / Re: ASM starter questions
« on: February 24, 2011 »


For Amiga, AsmPro is really great and comes with a nice GUI/IDE!

Pages: 1 2 3 4 5 6 7 [8] 9 10 11 12 13 14 15 ... 57