Yuu Diagram Editor “wannabe”

Sniffing on my backups i found this program i made back in WinDev 11 when i was learning WinDev. I’ve converted it to WinDev 15.

It’s not complete, it just let you draw Actors and Use Cases and it doesn’t even allow you to change it’s names. But i think it work very well as a base to create a diagramming tool, it is programmed in OOP, and is very easy to extend and complement new features. It was created to support unlimited Undo/Redo but i don’t remember if that was implemented.

It is mostly in spanish, but i know u’r smart people that can manage that.

Here is the binary demo.

Here is the source code.

Again, it’s released under the HPL v1.0 license.

C’yall

WinDev: Horde3D Bindings

I have started this bindings some time ago (since December 2009). Back then i started them on WinDev 14.

I didn’t released the bindings back then because i had a very strange and annoying bug that i couldn’t solve. I tryed to solve the bug agean on February with bad luck.

This week was released WinDev 15, so i tryed agean (maybe a newer version could help)… The new version didn’t helped, the bug was still there, so i decided to debug the problem with Visual Studio C++.

And yes, the problem was mine, i was sending 8-byte reals instead of 4-byte reals, so the problem is solved now, and everything is working as expected.

I have ported the Knight Sample and the Chicago Sample to WinDev.

You can download the binarys here.

You can download the source code here.

DISCLAIMER: As with other products i release, MY code is released under the Hilario Public License. This means YOU can change the Author name and say it’s yours, i won’t blame you. Just dont call me if it chashes your computer or burns your house. Oh, and any donation is welcome :) .

Another note: The code will ONLY work with WinDev 15. I won’t change it to work with newer versions. So you can contact me to upgrade from previous versions :) .

Another note: The source code archive DOES NOT contain the Content folder nor the Horde3D libraries. The binary DOES contains these files.

Another note: Horde3D was NOT made by me. It was made by a very cool guys here. I just wrote the bindings for WinDev 15.

Another note: The binary version contain files from Horde3D engine. Please read their license here.

Hope you like it.

C’yall

WinDev: FLVEncoder

Hi, today i’m posting a FLV Video Encoder written in W-language…

It works on WinDev, WebDev and WinDev Mobile.

It is not meant to be fast, it was just the first iteration, another proof that you can do anything on WinDev.

You can find the Download here.

It uses the ScreenVideo codec, and it has been tested with flvcheck, and passed all tests.

NOTE: It creates FLV files, not SWF files, and with the ScreenVideo codec, this means that you cannot play the FLV file on all players, for example, i couldn’t played it with VLC, GOM and Windows Media Player… But i played it well with an SWF player named EasyFLV FLV Player.

Currently the source code is a mix between english and spanish… sorry for that, i’ll polish it latter…

Here is a code snippet on how to use the code:


// First step is to create our Encoder... The FLV Encoder is tought
// to support multiple encoders
// But right now only ScreenVideo is finished...
// We need to tell the Encoder that the image is on IMG_Captura,
// and the difference mask between
// the current image and the last image is on IMG_Mascara
// Also we specify the width and height of each box (internal ScreenVideo encoder workings...)
// Just be sure to specify 64, 128, 256, 512
Senc is ScreenVideoEncoder dynamic = new ScreenVideoEncoder(IMG_Captura..Name, IMG_Mascara..Name, 256, 128)

// Now we create the actual FLV Encoder, and we tell him that
// it would encode the video using the ScreenVideoEncoder that we just created
// We also tell him that the total video time is 8 seconds
FlvEnc is FLVEncoder dynamic = new FLVEncoder(Senc, 8 )

// We Start the Encoding (initialize global state)
FlvEnc.StartEncode()

// Previous image used
sNomAnt is string = ""

// 9 frames, frame for second 0, 1, 2, 3, ... 8, 8 seconds in total
FOR i = 0 _TO_ 8
// We name our actual image: SSHOT_0001.png
sNomImg is string = "SSHOT_" + NumToString(i, "04d") + ".png"

// Routine for generating the IMG_Mascara
// And assigning IMG_Captura, its something like this:
// IMG_Referencia = sNomAnt
// IMG_Captura = sNomImg
// dCopyBlt(IMG_Referencia, IMG_MascaraSaved)
// dCopyBlt(IMG_Captura, IMG_MascaraSaved, copySrcInvert)
// dCopyBlt(IMG_MascaraSaved, IMG_Mascara, copySrcCopy)
GenerarImagenes(sNomAnt, sNomImg)

// We move the time... It's measured in milliseconds
FlvEnc.SetTimestamp(i * 1000)

// Check if it's the first frame
IF i = 0 THEN
// If it's the first frame, render all the frame
FlvEnc.EncodeFrame(VideoEncoder::Keyframe)
ELSE
// If it's NOT the first frame, render only the differences
// using IMG_Mascara as the Mask image
FlvEnc.EncodeFrame(VideoEncoder::Interframe)
END

sNomAnt = sNomImg
END

// Encode the final video to "video.flv"
FlvEnc.EndEncode("video.flv")

Currently the FLVEncoder only encodes Video, i’ll program the Audio part later…

As i said, it’s VERY slow, i made this in about 5 hours, most of the time reading the FLV spec pdf… Use it at your own risk, you can use it in any project, it doesn’t have any license restrictions, but i would like to recive a notice that you are using, or that it was useful for your project.

C’yall