x-post Belkin HiSpeed USB DVD Creator and Director

2004-01-29 Thread Berndt Garbotz
A question from a mate not on lingo-L:
---
Hi folks,

list, we have a problem.

Has anyone reading this list ever worked with Director (MX) AND a Belkin 
"HiSpeed USB DVD creator"? This device takes a video signal a input and 
delivers it via USB to the computer - I'd say it's an A/D converter for 
video signals (coming along with some DVD creation software, why I 
assume they call the device "DVD creator").

We use it within an application that grabs the actual video signal on 
every frame and does some mathematics with it using the TrackThemColors 
Xtra (we've tried the free WebCam Xtra before, but this was too slow for 
our app).

First it was running on a W2k pro-PC with an Athlon XP 3000+ and 1Gig 
RAM, now it's running on a WinXP pro (on the same machine).

Always we switch on the video grabbing the application leads to a system 
crash or sometimes only Director crashes (fatal error) after 20-45 
minutes. This happens whether we use 3D-lingo or not.

We have installed all the newest drivers and BIOS, our experiments show 
that it doesn't have to do explicitly with the TrackThemColors Xtra 
(since if we use a simple USB-webcam for our video signal it runs and 
runs), but with the Belkin device.

Any experiences greatly appreciated.

Thanks in advance,
Roman.
_
Berndt

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: Frame events

2004-03-18 Thread Berndt Garbotz
Hi James,

believe or not it is ways faster to execute code in enterframe.

Time ago we had a thread on dirgames or director 3d. Please search the 
archives on nuttybar

Cu

Berndt


On 18/3/04 12:32 pm, "Agustín María Rodríguez"
<[EMAIL PROTECTED]> wrote:
 

Is there a reason why you reaaly need this on prepareFrame? If not then
it would be better to put that code into an enterFrame handler because
is where Director expects the heavy code. Leave prepareFrame just for
stuff like 3D synchro with bones and exitFrame for navigation between
frames.
   

Hi Agustín,

Why do you think Director expects to find heavy code in the enterFrame()
handler?
I understand why you use exitFrame() for navigation.  Moving to a new frame
triggers the prepareFrame() handler, so you cannot do this from the
prepareFrame() handler itself.  Moving to a new frame on enterFrame() would
mean that the Director has to go through all the hassle of calculating the
pixels to display for the current frame, only to discover that it's actually
meant to be somewhere else.
Personally, I only use prepareFrame() for actions that must be carried out
between beginSprite() and displaying the first frame, such as finding other
sprites in the frame with the same behavior.  If I do this, I set a flag so
that the code in the prepareFrame() handler is never executed a second time.
(An alternative is to place the instance on the actorList, perform the
one-off action on stepFrame(), then remove the instance from the actorList).
I don't think I ever use enterFrame() at all, since by that time the current
frame is already visible.  What advantages do you see in using enterFrame()
rather than exitFrame()?
Cheers,

James

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]

 



[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: detect sprites with a certain property

2004-07-02 Thread Berndt Garbotz
hi,
you could check for scriptinstancelist <> []
Berndt
Hi
is it possible to loop through all sprites in the score and detect whether
each sprite has a certain custom property.
If the sprite has any custom properties then i can use
repeat with k = 1 to the lastChannel
   repeat with l = 1 to sprite(k).count()
 if sprite(k).getPropAt(l) = #myBuiltInCursor then
   sprite(k).cursor = sprite(k).myBuiltInCursor
 else
   nothing
 end if
 end repeat
   end repeat
but this fails when a sprite has no properties  as it returns a "handler not
in object error".
so is it poosible to test for whether a sprite has any custom properties at
all or not.
chhers
Lee Blinco
Multimedia Developer
AVR Productions
+44 (0)1462 819603
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]
 


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: get and set pixel

2004-07-14 Thread Berndt Garbotz
Hi,
dunno how much it slows, but use an instance e.g.
myImage =  member("firstImg").image
repeat with xx = 1 to 450
   repeat with yy = 1 to 400
   rgbval = myImage.getPixel(xx, yy)
   -- some calculations here and then
   myImage.setPixel(xx,yy, newrgbval)
   end repeat
end repeat
Hth
Berndt
Hi List
I am reading an image and drawing some of the pixels
onto another image cast member.
I am using this code similar to this :
repeat with xx = 1 to 450
repeat with yy = 1 to 400
rgbval = member("firstImg").image.getPixel(xx, yy)
-- some calculations here and then
member("secondImg").image.setPixel(xx,yy, newrgbval)
end repeat
end repeat
This is all working fine, except how slow it is.
Do you have any tips on how to fasten this process?
(is there any way of analysing an image object quicker than this
with imaging lingo?)
thanks for all answers
t
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, 
email [EMAIL PROTECTED]  (Problems, email 
[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
programming Lingo.  Thanks!]



[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[x-post] director xdk update

2004-10-06 Thread Berndt Garbotz
hi,
Macromedia Director XDK
October 5, 2004 The latest release of the Director XDK has been updated
for Director MX 2004 version 10.1. The XDK includes both functional
updates and bug fixes. The functional updates to the XDK include an
index to all interfaces and methods and a new scripting xtra example. In
addition there are many bugs fixed within the documentation. Finally,
developers will now find information about how developers can prepare
their Macintosh Xtras for cross-platform projector publishing and
information about global variables used within JavaScript syntax, both
being new features found in Director MX 2004.
http://www.macromedia.com/support/xtras/xdks/dmx_xdk.html
Berndt
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]