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 ... 57
61
General chat / schwerer verkehrsunfall
« on: February 23, 2012 »
Hallo Leute.
Möchte auf diesem weg nur mitteilen,dass ich wohl schon wieder für längere Zeit nicht mehr hier sein werde,da ich am SO Abend als Mitfahrer einen schweren Verkehrsunfall hatte.

so waren wir auf einer landstrasse unterwegs,wo plötzlich blitzeis war.wagen hat sich plötzlich mehrmals gedreht,seitlich mit 100 kmh vor einem Baum geknallt und direkt mehrmals überschlagen in einem graben/böschung herunter und vor nächsten Baum.

Die anderen beiden säßen Links und hatten verdammt viel glück und nur ein paar Prellungen.bin froh das wir dort überhaupt lebend herausgekommen sind,da PKW Totalschaden.

Ich hatte leider nicht so viel glück und kann hals/nacken/rücken nicht mehr bewegen.diagnose drei Brüche der Halswirbel  lt Ärzte ist es ein wunder,dass ich nicht querschnittsgelähmt bin,da ich genau das gleiche - auch von der schwere her habe,wie Samuel koch.

Ansonsten geht es mir soweit gut... Ich kann laufen,bin ansprechbar und kann sprechen!! Schöne grüße aus Klinikum Minden (200 km von zuhause entfernt)

Genug geschrieben,anstrengend genug...

62
i am using C# as language (not sure if there is something different) and i use byte as data type for the array and its values.

     public byte[] iData1 = new byte[ 32768 ];
     public byte[] iMask1 = new byte[ 32768 ];

63
Thanks for your fast replay. I have tried myself something without luck, so i have tried your ideas....

Code: [Select]
iMask1[i] = iData1[i] > 0;
iMask1[i] = (iData1[i] > 0);

VS2010 C# Error - Can't convert type bool into byte... and writing (byte) == converting costs time too and it still does not works/compile ^^


Btw never saw something like       > 0    without an If() codition before... So what happens here exactly?

64
When having an array filled with values between 0 and 255 and reading its values... i want just only get 0 if the value is 0 or 255 if the value is > 0.
At the moment i do this with a If() condition and save the result into a temp array, because for my needs the If() condition is to CPU expensive (very low machine).

So i thought if there is any way without a temp array and without the need of an If() codition to do the same thing, for creating a mask?


Code: [Select]
This works... (suprised)

                if (iData1[i] > 0)
                {
                    iMask1[i] = 0;
                }
                else
                {
                    iMask1[i] = 255;
                }

while this ends up wrong results for later processing...

                if (iData1[i] > 0)
                {
                    iMask1[i] = 255;
                }
                else
                {
                    iMask1[i] = 0;
                }


65
General chat / Happy New Year 2012
« on: January 03, 2012 »
Cant find any happy new year 2012 topic. So i starts this one and wish you all and esp the team behind dbfinteractive-forum all the best for 2012. Best regards

66
General chat / Re: Converting mp3 to ogg?
« on: January 03, 2012 »
Just try Aimp  (www.aimp.ru) its a nice player like Winamp but 1000 times better! It has a Tool-Package with a very nice and comfortable converter from any format to ogg/wav/mp3...

67
@Raizor:
Just wow !!! Rally impressive and very cool entry! Great Textures, Design and cool Music! *thumb up* and K++
Many thanks for the greetings! It made me really happy and smile =) Thx!

68
General chat / Re: Happy Birthday Shockwave!
« on: October 30, 2011 »
Hey :)
Happy birthday Nick and have a nice day. Best wishes..  :cheers:

69
Projects / Re: Fast line rout!
« on: September 29, 2011 »
Here is my personal purebasic version i did in 2002 - http://forums.purebasic.com/english/viewtopic.php?t=3653

Code: [Select]
;--------------------------------------------
;
; PureBasic - How does a Line() command work
; by va!n
;
;--------------------------------------------
;
    Procedure MyLine(x1,y1,x2,y2)
        ;
        x = x1
        y = y1
        StartDrawing(ScreenOutput())       ; ### START DRAWING ###
          Plot (x,y)                       ; Hopefully faster DXPlot() for DirectX support soon :wink:
        StopDrawing()                      ; ### STOP DRAWING ###         
        f = 0
        ;
        Repeat
            f1 = f + Abs(x2 - x1)
            f2 = f - Abs(y2 - y1)
            ;
            ;------------------------
            ;
            If Abs(f1) >= Abs(f2)
               f = f2
               x = x + Sgn(x2 - x1)       ; Still miss Sgn() math command as standard function in PureBasic!
            Else
               f = f1
               y = y + Sgn(y2 - y1)
            EndIf
            ;
            ;------------------------
            ;
            Plot x,y
        Until x = x2 And y = y2
        ;
    End Procedure
;   
;--------------------------------------------

70
Here is the official microsoft press news about windows 8 and build.

 
Quote
Editor’s Note – Sept. 13, 2011 –The release was updated with information about BUILD attendees receiving a Samsung prototype PC with Windows 8 Developer Preview.

LOS ANGELES — Sept. 13, 2011 — Today at its developer-focused BUILD conference, Microsoft Corp. showcased a detailed preview of the next major release of Windows, code-named “Windows 8.” The company also detailed new tools for developers to help write applications for more than 1 billion people around the world who use Windows every day.

“We reimagined Windows,” said Steven Sinofsky, president of the Windows and Windows Live Division at Microsoft, in his keynote address to the thousands of developers in attendance. “From the chipset to the user experience, Windows 8 brings a new range of capabilities without compromise.”

The company also highlighted a variety of new features in Windows 8, including the following:

Touch-First User Interface
•   

Metro style. Windows 8 introduces a new Metro style interface built for touch, which shows information important to you, embodies simplicity and gives you control. The Metro style UI is equally at home with a mouse and keyboard as well.
•   

Touch-first browsing, not just browsing on a touch device. Providing a fast and fluid touch-browsing experience, Internet Explorer 10 puts sites at the center on new Windows 8 devices.

More Ways to Engage With Powerful, Connected Apps
•   

Powered by apps. Metro style apps built for Windows 8 are the focal point of your experience, filling your entire screen so there are no distractions.
•   

Apps can work together. Apps communicate with each other in Windows 8. For example, you can easily select and email photos from different places, such as Facebook, Flickr or on your hard drive.
•   

Your experience syncs across your devices. Live roams all the content from the cloud services you use most — photos, email, calendar and contacts — keeping them up-to-date on your devices. With SkyDrive, you can access your files, photos and documents from virtually anywhere with any browser or with Metro style apps in Windows 8.

Enhanced Fundamentals
•   

The best of Windows 7, only better. Windows 8 is built on the rock-solid foundation of Windows 7, delivering improvements in performance, security, privacy and system reliability. Windows 8 reduces the memory footprint needed — even on the lowest-end hardware — leaving more room for your apps.
•   

Preserving power-user favorites and making them better. For those who push the limits of their PC, Windows 8 features an enhanced Task Manager and Windows Explorer and new, flexible options for multimonitor setups.

New Developer Opportunities
•   

Windows Store. The Windows Store will allow developers to sell their apps anywhere Windows is sold worldwide, whether they’re creating new games or familiar productivity tools.
•   

Build using more languages. Windows 8 lets you leverage your existing skills and code assets to create great experiences using the programming language you prefer.
•   

Rich hardware integration leads to richer experiences — particularly for games. DirectX 11 gaming power underlies Windows 8, allowing the easy creation of full-screen games with smooth, flicker-free action.

New Generation of Hardware
•   

One Windows — many shapes and sizes. Support for ARM-based chipsets, x86 (as well as x32 and x64) devices, touch and sensors means Windows 8 works beautifully across a spectrum of devices, from 10-inch tablets and laptops to all-in-ones with 27-inch high-definition screens.
•   

Always connected. With Windows 8, new ultrathin PCs and tablets turn on instantly, run all day on a single charge and stay connected to the Internet so your PC is ready when you are. Next-generation system on a chip (SoC) support will also enable greatly extended standby and low-power states.
•   

Tap the full power of your PC. Windows 8 runs on PCs and is compatible with the devices and programs you use today on Windows 7, without compromise, to deliver the performance you expect of a PC.

Beyond seeing highlights of the work done on devices by partners including AMD, Intel, NVIDIA, Qualcomm and Texas Instruments, attendees at BUILD also received a Samsung prototype PC with Windows Developer Preview to aid them in creating and testing apps. Developers will also be able to download the Windows Developer Preview via the new Windows Dev Center later this week. Webcasts of sessions will be posted on the BUILD site as well.

Founded in 1975, Microsoft (Nasdaq “MSFT”) is the worldwide leader in software, services and solutions that help people and businesses realize their full potential.

Some information relates to a prerelease product, which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Note to editors: For more information, news and perspectives from Microsoft, please visit the Microsoft News Center at http://www.microsoft.com/news. Web links, telephone numbers and titles were correct at time of publication, but may have changed. For additional assistance, journalists and analysts may contact Microsoft’s Rapid Response Team or other appropriate contacts listed at http://www.microsoft.com/news/contactpr.mspx.

71
@Hotshot and Slinks:
Who says less compatibilty?

As me wrote before:
Quote
Wrong! Windows 7 programms still works under Windows 8 !

72
Tell me what Window 8 got that Window 7 Havant?

+ Extrem fast booting
+ Less system usage - see picture 118
+ Better system security
+ Metro style with hubs for fast access
+ Integrated facebook and other comunication stuff
+ Programms for Win8 can be coded in nearly any language - see picture 093
+ Runs on x86/x64 and even ARM
+ There are a lof of nice news, esp for developers!

Just watch the video...

Less compatibility

Wrong! Windows 7 programms still works under Windows 8 !

73

With big interest i followed the online stream about windows 8 from the build conference. I have tried to take screenshots from interesting / important parts about windows 8. So you can download the screenshots as ZIP from here:

Pictures - 16,2 MB Zip

Btw you can download and test the first version of windows 8 in 32 and 64 bit without activation code ;)

[ Added: ]
[ The very interesting keynote video can be watched here - http://www.buildwindows.com/ ]








74
General chat / Re: I'll be Back Soon
« on: September 10, 2011 »
Get well asap! Best wishes

75
General coding questions / Re: Purebasic vs Freebasic
« on: September 09, 2011 »
PureBasic comes with libs which are compiled to libs and they are closed source, so you cant fix a bug in a lib. Afaik freebasic comes with no precompiled libs and include the full source of the needed lib. So compilation time may take an eye blink longer but you can fix and extend existing libs. Btw, the stuff i saw over the years, PureBasic will be used mainly for Appz/GUI and FreeBasic more more Gfx things!? (I know only the FB related intros/demos/sources on this forum, so dont see what apps with GUI are coded in Freebasic on the other side)

76
Projects / Re: Scroller wavelength
« on: September 07, 2011 »
You guys are working with PureBasic under XP, right? Because i tried to compile your source under Windows7 x64 and it doesnt works. Afaik PureBasic DX is made for the very old and outdated DX7. So it may no longer work, esp under Windows7. Btw, i have tried to compile it using OpenGL... PB OpenGL does not support 3D.

77
Is this C?
If you have arraydata[12*12], then arraydata[x,y] is incorrect C (it will compile and give you arraydata[y]).
You either need
Code: [Select]
arraydata[x+y*12]
or you need
Code: [Select]
arraydata[12][12]
and
arraydata[x][y]

Jim

Hello Jim,
yes, the code snip is C#... Btw, i dont want a 1D array like array[12*12] for something like a map.... A 2D array like array[12,12] is more easy to handle and i dont need MULs to get/set x/y position.

In C# i have to write following for a 2D array, which works all fine:

Code: [Select]
int[,] arraydata = new int[12, 12];     // Works fine and easy to use for (level)maps i.e.

    ...fill arraydata with random values between between 0 and 1

// -------- Find first top/left position of wanted object/value

selectedObject = 1;

for (int y = 0; y < 12; y++)
{
    for (int x = 0; x < 12; x++)
    {
        if (arraydata[x, y] == selectedObject)
        {
            startPos.X = x;
            startPos.Y = y;
            x = 13;
            y = 13;
        }
    }
}

Now i have the startPos.X and startPos.Y of the first top/left object. Until here all works fine as i want/need... 

Next i will check if there are neighboars filled with 1 and if so, how many. I will get the startPos and endPos of all neighboars (horizontal and vertical). This is what makes me crazy, even its so easy in theory. In a basic language i used a Repeat/Until loop for this and tried the same in C#, where it does not works. Maybe my fault.

Take a look at the three images which should represent my arraydata[12,12]... All white fields may be value 0... the red and blue fields may be value 1... My first step is to get the first top/left block (with value 1) - Until here all works fine.

My second step is to check if there are direct horizontal or vertical neighboars and if so to check where the last position is. So i have tint the wanted fields blue.. So i should get following results:


Map1:
--------------
startPosX = 3
startPosY =1
endPosX = 6
endPosY = 3


Map2:
--------------
startPosX = 3
startPosY = 3
endPosX = 7
endPosY = 3

Map3:
--------------
startPosX = 3
startPosY = 3
endPosX = 4
endPosY = 7

Following code to check of endPos will not work.
Code: [Select]
do
{
    endPos.X = startPos.X + tempX ;
    tempX++;
} while (leveldata[endPos.X, startPos.Y] == selectedObject);

do
{
    endPos.Y = startPos.Y + tempY ;
    tempY++;
} while (leveldata[startPos.X, endPos.Y] == selectedObject);

78
I have a small problem to solve normaly a very simple codition but i dont really get it work which makes me silly. Lets try to explain. Just say we have a 2 dimensional array like [12,12]...
This array is filled with 0... On some randomized [x,y] coordinates there will be filled with value 1.

With following workring loop i check the [x,y] array to get the first top left position of a field with 1:

Code: [Select]
                               selectedObject = 1;

                                for (int y = 0; y < 12; y++)
                                {
                                    for (int x = 0; x < 12; x++)
                                    {
                                        if (arraydata[x, y] == selectedObject)
                                        {
                                            startPos.X = x;
                                            startPos.Y = y;
                                            x = 13;
                                            y = 13;
                                        }
                                    }
                                }

Now i have the startPos.X and startPos.Y of the first top/left object. Now i will check if there are neighboars filled with 1 and if so, how many. I will get the startPos and endPos of all neighboars (horizontal and vertical). This is what makes me crazy, even its so easy. In basic i used for this a Repeat/Until loop and tried it in C#, where it does not works. Maybe my fault. However here is what i have tried:

Code: [Select]
                                do
                                {
                                    endPos.X = startPos.X;
                                    endPos.Y = startPos.Y + bla;
                                    bla++;
                                } while (arraydata[endPos.X, endPos.Y] != selectedObject);

I have tried some other codes too..  like..

Code: [Select]
                                while (arraydata[endPos.X, startPos.Y] != selectedObject)
                                {
                                    endPos.X = startPos.X + tempX;
                                    tempX++;
                                }

But at least i dont get the correct results for the endPos, while startPos works fine!

Code: [Select]
000000000000
010010000000
010000000000
010000100000
010000000000
010000000000
000000000000
010001001000
000000000000

Should return for vertical scan:
startPos.X = 1
startPos.Y = 1
endPos.X = 1
endPos.Y = 5


79
General coding questions / Re: Old Amiga Effect Please
« on: September 03, 2011 »
You mean the scroller with the tinted background copperlist effect, right? I am not really sure how to code, but if you draw the font pixel by pixel, i would use a mask layer (black == background black, 1 == your font (white)... On Another buffer i would create/use the copperlist (gradient)... if you draw now pixel by pixel, you have just to check on the mask if there is the color white and save its pixel coordinate .... Now just pick the color from the given pixel coordinate on the gradient and draw it to your final screen.

If you want do this effect without drawing pixel by pixel, i have no real idea for good performance. I have one idea but that would really suxx. Good luck

80
Thanks for the info and for the link. Seems not really so easy as i thought.
I will try to follow and understand the link.

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