Bitmapmirror

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Bitmapmirror // Scriptorium

1  |  

Post by Wigand // Jan 4, 2008, 7:52am

Wigand
Total Posts: 462
pic
While working on my UDP-Functions, I developed a small

but for you maybe useful object.


You can drag and drop a bitmap into the input picture, and you

get the mirrored picture in the output picture

Post by 3dvisuals dude // Jan 5, 2008, 11:34pm

3dvisuals dude
Total Posts: 1703
pic
While working on my UDP-Functions, I developed a small
but for you maybe useful object.

You can drag and drop a bitmap into the input picture, and you
get the mirrored picture in the output picture

Thank you Wigand, yes, this is indeed useful.:)

This made me think of an interesting variation of this too.

The way this now works it takes the input image and mirrors it horizontally. I wonder if there is a way to also mirror it vertically and then using all four images (a/input image, b/horizontal mirror of a, c/vertical mirror of a, and d/horizontal mirror of c) combine them into one single output image which would essentially be a 4-way mirror of the input image, like a kaleidoscope?

Just a thought... not sure how useful that would be. On the other hand, if the input image was a live feed like the D3DTRT Camera uses it could serve as a cool 4-way realtime special effects display perhaps.:)

Thanks!

- Mark

Post by Wigand // Jan 6, 2008, 12:19am

Wigand
Total Posts: 462
pic
My intention was to send a bitmap or other stuff (audio,video) via UDP from

one TS to an other, so I needed to analyse the TS bitmaps.

And the mirrorer was the small result.


I am still trying UDP connections, but it seems to fail cause I tried to

send my bitmap as a string. And the string seems to be to large.


Any idea?

Post by 3dvisuals dude // Jan 6, 2008, 12:54am

3dvisuals dude
Total Posts: 1703
pic
My intention was to send a bitmap or other stuff (audio,video) via UDP from
one TS to an other, so I needed to analyse the TS bitmaps.
And the mirrorer was the small result.

I am still trying UDP connections, but it seems to fail cause I tried to
send my bitmap as a string. And the string seems to be to large.

Any idea?

Wow. That's some groundbreaking stuff you're trying there and I hope you succeed. I'm not familiar with the format of UDP but I assume it is a string format rather than binary if you attempted to transfer it that way already.

My first thought would be to parse the bitmap binary format into several alphanumeric strings within an array, and then parse it again at the receiving end from the alphanumeric strings in the array back into the original binary format for input.

My second thought would be to send the output to a network file of some format and then retrieve it from the network.

I have no idea myself how to do that, but it seems plausible. Hopefully someone else here with a better or easier method can help you on that.

- Mark

Post by Wigand // Jan 6, 2008, 1:41am

Wigand
Total Posts: 462
pic
Wow. That's some groundbreaking stuff you're trying there and I hope you succeed. I'm not familiar with the format of UDP but I assume it is a string format rather than binary if you attempted to transfer it that way already.



Most applications use string format, but it is also possible to transfer

binary arrays. I think the problem is ,again and again, the event handling.


winsock_DataArrival(ByVal bytesTotal As Long)


This function I use in the DLL to receive the data. It's an event handler.

In TS I always have to poll for the coming data. That is really boring and

ineffective. If I have a really large string, I have problems, and

if I cut the data in small pakets there are other problems. :o




My first thought would be to parse the bitmap binary format into several alphanumeric strings within an array, and then parse it again at the receiving end from the alphanumeric strings in the array back into the original binary format for input.



First, I look for the resolution of X and Y. And send them as two

numbers. So the receiving unit knows the limits.

Then I read the 8bit color of every pixel to get a triplet of data.

And send it as sting numbers




My second thought would be to send the output to a network file of some format and then retrieve it from the network.



Yes, maybe like a ftp- connection.

But I would like to do something like streaming data, like video or

Skype do.



I have no idea myself how to do that, but it seems plausible. Hopefully someone else here with a better or easier method can help you on that.



- Mark

Post by 3dvisuals dude // Jan 6, 2008, 8:54am

3dvisuals dude
Total Posts: 1703
pic
Yes, maybe like a ftp- connection.
But I would like to do something like streaming data, like video or
Skype do.

I definitely hope you succeed at this, we do need that data streaming capability from external servers, in fact I have one very marketable project on hold right now directly because of that one issue. I just wish I was able to help with it but my experience level with that is inadequate for your current needs.

Hopefully one of the more method-savvy talented folks here can help with this soon here, we all do need this right away.

- Mark
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn