Math question: How to compute the area of polygons

2003-03-19 Thread Malte Brill
My excuses to the list for the wrong header in my previous post.
Hitting reply and Copy and paste can be a snakepit.
:-) 

Jim wrote:

Malte,

I think I have  a better understanding of what you are trying to
achieve. I don't think it is particularly valuable to calculate
areas. In collision detection you need to know whether there are
overlapping interior points of the two areas. This is rather complex
for arbitrarily shaped polygons. Could you  settle for making each
sprite a circle, perhaps of differing diameters? In this way you
would only need to determine whether their centers were closer than
the sum of  the radii, a very simple task. The radii could be custom
properties of the sprites.

Jim

Sorrowly my objejcts are (or at last will be) more complex than circles.
For circle-circle/circle-wall collisions I check the distance using:

sqrt((obj1.x-obj2.x)^2+(obj1.y-obj2.y)^2)

I thought if I would have the area of the two polygons and their union is
smaller than their sum, the polys must have collided (in 2D Space). Am I
wrong here?

Thanks for your support,

Malte


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: use-revolution digest, Vol 1 #1215 - 9 msgs

2003-03-19 Thread Malte Brill
Jim wrote:

Malte,

I think I have  a better understanding of what you are trying to
achieve. I don't think it is particularly valuable to calculate
areas. In collision detection you need to know whether there are
overlapping interior points of the two areas. This is rather complex
for arbitrarily shaped polygons. Could you  settle for making each
sprite a circle, perhaps of differing diameters? In this way you
would only need to determine whether their centers were closer than
the sum of  the radii, a very simple task. The radii could be custom
properties of the sprites.

Jim

Sorrowly my objejcts are (or at last will be) more complex than circles.
For circle-circle/circle-wall collisions I check the distance using:

sqrt((obj1.x-obj2.x)^2+(obj1.y-obj2.y)^2)

I thought if I would have the area of the two polygons and their union is
smaller than their sum, the polys must have collided (in 2D Space). Am I
wrong here?

Thanks for your support,

Malte


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Math question: How to compute the area of polygons

2003-03-19 Thread Malte Brill
Thanks again for the link Mr. Miscdas.

Mr Miscdas wrote:

Now that you mentioned Sprites and collision detection, did you look at the
intersect function? It seems to me that you could simply test the inersect
of each of the sprites with each other. If for some reason the sprintes are
not objects that the intersect can be determined, then drawing your polygon
around the sprites and then testing the intersect for each polygon will get
you collision detection.

If I don´t do something essential wrong this won´t work. The intersect
function seems only to check the bounding rectangle of an object. So this is
not very precise. (I check at start using the intersect function for the
rough part of the collision detection.)
Perhaps I should follow the tips that were suggested on this list a few
month earlier checking the image- and maskdata of the objects and look if
their values are bigger than a certain threshhold.

Thank you,

Malte




___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Math question: How to compute the area of polygons

2003-03-18 Thread Malte Brill
Hi List,


this one goes out to the math experts.
How does one compute the area ( I hope it is the correct Term for
flaecheninhalt in german) of a polygon with n sides.

(That would get me started.)

I want to extract all lines of 2 polygons by analysing their points,
evaluate the area of each of them with some magic formula I don´t know ;-)
and to figure out the area of the smallest polygon surrounding both of them.

Any help will be greatly apprecheated!

Regards,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Math question: How to compute the area of polygons [OT]

2003-03-18 Thread Malte Brill
Hi list, 
I hope you don´t mind this silly off topic post, but sometimes it is quite
teasing not being a native speaker.

Any help will be greatly apprecheated!

*Lol* Sorry, I mean appreciated.

I don´t want to cheat you afterwards, really!

(apres cheated haha.)

Think I´m getting nuts with all of this math.

Regards,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: iTunes-type alternate colored lines in scrolling list field

2003-03-17 Thread Malte Brill
Hi,

thanks to Yves Coppe for the very interesting off list discussion on this
subject. It helped me getting rid of the last cheesyness of my script. Now
it works quite perfect for me on 1.1.1

Merci Yves!!! :-)

I´ll update my report here.

No changes in the card script:
-
global loop,correct,twoLines,skipline

on opencard
  put 1 into loop
  put the effective textHeight of fld theField*10 into skipline
  put the effective textHeight of fld theField*2 into twoLines
  put skipline into correct
  set the vscroll of fld theField to 0
  set the vscroll of grp theImage to twolines
end opencard
--

Change the script of the field to the following:

--
global loop,correct,skipline,twolines

global loop,correct,skipline,twolines
on scrollbardrag
  if correct-the vscroll of me=0 then
repeat until correct-the vscroll of me=0
  put loop+1 into loop
  put loop*skipline into correct
end repeat
  end if
  if the vscroll of me+skipline-correct0 then
repeat until the vscroll of me+skipline-correct0
  put loop-1 into loop
  put loop*skipline into correct
end repeat
  end if
  put the vscroll of me+skipline-correct+twoLines into groupScroll
  set the vscroll of grp theImage to groupScroll
end scrollbardrag
---


Now it is possible to set the vscroll of the field via script and the scroll
of the group is adapted automaticly.
I would suggest changing the globals to custom properties, if you need more
than one field with alternating lines.

If you want to calculate how many bars your image must have to display
correctly, you need at last as many bars that are needed to fill the height
of your field+12 bars. I would add another 2 bars to the image, just to be
sure. :-)

Regards,

Malte

 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Searching the archives with Google

2003-03-17 Thread Malte Brill
But Google only returns messages until an
uncertain date. Most recent posting never
appear.

How can this be fixed?

Thanks in advance.

Alejandro

Hi Alejandro,

I guess this is due to the googlebot spidering the archives not often
enough. I guess a scripted search function would be nice. If I recall it
right UDI had something like this.

Regards,


Malte


___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: Not using QT for Video playback on OsX

2003-03-07 Thread Malte Brill
Klaus wrote:

i think you have bad luck...

As far as i know, QuickTime is the only multimedia-layer on OS X.
It is a part of the deeper core of OS X.

Well there is something called VLC (Video Lan Client)

http://developers.videolan.org/vlc/

Means: QuickTime or die ;-)

Don´t say so, I´m just getting happy again living...
:-)
This is from the doxs:

VideoClipPlayer:
This property can be used on UNIX systems to specify an alternate
name for the xanim player used to play movies with the play command.

Well, I read this before, but thought maybe this is outdated... :-(
There seems to be happening so much on the OsX front.

Since there is no Xanim player of OS X i think you cannot cahnge that...

Are you sure? I guess someone has ported it allready.

Anyway, have a nice weekend :-)

Just keeping on coding. :-)
Regards

Klaus Major

Regards,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: How to resize an Animated Gif

2003-02-24 Thread Malte Brill
Hi Alejandro,

To check this for yourselves, do the
following:
1) In the message box write:
Create image

This empty image will appear in the
center of the topstack.

2)Resize this empty image to the
size that you want the animated gif
to have and set the locklocation
of it to true.

3)Set the filename of the image to
the name of your animated gif

this is great! I allways searched for a way to resize animated GIFs, finally
I have one. IMHO this is worth a tip of the week.

Thanks a lot!!!


BTW: I know about your EPS-Importer. Did you also code a bezier-Tool for
Rev? I would like to be able to create advanced motion-paths (graphics) from
within Rev. A bezier tool would be very usefull.

Regards,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: use-revolution digest, Vol 1 #1140 - 4 msgs

2003-02-21 Thread Malte Brill
Hi Ken,

 And on a Mac, if you haven't created a file menu, you cannot quit Rev at
 all, because there is no file menu. You have to restart.

Also, to close a work in progress stack that has no UI, simply click the
closebox on the window -- this will quit the app.  If the window has no
closebox, you can force-quit the MC/Rev app, without having to restart.

If you are working on Os9 and your stack has no close-box you might hit

ctrl+alt+apple+esc to force quitting.

Regards,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



MIDI minders

2003-02-12 Thread Malte Brill
there must be a way to turn
play Hammond B-3 tempo 140 60q...
into a midi event.

Hi erik,

not all into one single Midi Event...

If you use a standart GM/GS Device you will send the correct ProgramChange
Event for the organ first.
Sorrowly Tempo is not a MIDI event. (You might want to google for
MIDI-Clock-Sync though). And afterwards you need to send Notes on/off
messages to your MIDI device.

Well I guess that´s not very helpful...

Regards,

Malte 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Storing images

2003-02-03 Thread Malte Brill
Hi Jim,

you can import the image once, then create a button on each card as a
placeholder for that image and set the buttons icon property to the ID of
the image you have imported.
Or you can create a group containing your image and set it´s
backgroundBehavior to true.

Hope that helps,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Displaying an .aif file as a Waveform

2003-01-27 Thread Malte Brill
Hello list, 

perhaps someone of you can help me.
I want to display the waveform of an .aif file. The routine does not need to
be fast. It is not necessary, that I can display the waveform in realtime.
Does anybody know where I can find the specs for .aiffiles?
Is it something like

-header
-mediatypes
-data

Or has somebody allready coded something?

Any help greatfully apprecheated.

Regards,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE: OT: Elegant Cross Platform Fonts

2003-01-23 Thread Malte Brill
Perhaps you might want to take a look at this small stack.

http://www.revolutionboard.de/malte/newfont.rev.zip

I embedded all chars I use as a .png file and set the imagesources for a
field. If the font you want to use is big enough it migth be worth the work
and once saved, you don´t even need to do the processing of the chars again.

Regards,
Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Internationalisation

2003-01-04 Thread Malte Brill
Hey Igor,

You almost got it yourself.
You might want to create a custom property for each language and afterwards
set the lable of the button.

e.g.
set the label of buttonb1 to the uk of button b1
or
set the label of buttonb1 to the german of button b1

hope that helps,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



unexpected shutdowns

2003-01-04 Thread Malte Brill
Hi Al and Igor,

I guess both of you work on OS X?

Have you tried setting the look and feel to Mac OS emulated (Rev 1.1.1).
(This tip has been on the list quite often). It seems to be an
incompatibility with Rev and OS X apperance manager. The people at Rev say
it will be fixed in 2.0.

Hope that helps,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



[Ann] Programmers yaBB in german

2003-01-03 Thread Malte Brill
A happy new year to all of you. I haven´t been around for a while, being
busy redesigning my website and setting up a programmers yaBB in german
language. It is still in the making but I guess it will get quite a nice
place. :-) So if anyone of you wants to join in, please visit
www.revolutionboard.de

If you are interested in translation of your tutorials into german, please
mail me off list.

Regards,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



RE:Distribution Crash on Imac bondi, OS 9.2

2002-12-04 Thread Malte Brill
Thanks for your suggestion, Sarah.
After a hard days night I found it. The build for MacOsPPC still crashes.
When I build for OS X, though everything works fine. Is that a carbon issue?
I just don´t understand it.

Regards,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Distribution Crash on Imac bondi, OS 9.2

2002-12-03 Thread malte . brill
Hi list,

I have a serious problem. 
Starter Kit 1.1.1
After I build a distribution here on a colleagues test Imac bondi Os
9.2 reporting error -39. Now what could that be? I tried starting up in
standard and in full OS mode without any unneeded extensions, but still
I have no luck there.

No problem to build a distribution on Mac G4-400 AGP OS 9.04

Has anyone run into this prob. before?

Thanks 
Malte
___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Just another player.

2002-11-29 Thread Malte Brill
Hi there,
I just want to announce that runrev have put a stack of me, based on the
German Workshop I wrote, on their users contribution site.
It is just another player stack. :-)
This one with a little more scripting. The stack runs in fullscreen mode up
to 1024x768 pixels. If the screen resolution is higher, it still runs in
1024x768, but is centered in the middle of the screen. It will also be
centered if the resolution is not in a 4:3 aspect ratio (e.g. Cinema
Display). The player contains a jogwheel (scalebar), with 2 scrolling
speeds forwards and backwards.  Movies will be scaled in the correct aspect
ratio (4:3 ,16:9 or any other ratio) to fit as big as possible on the card.

If you want to take a quick look at it and have any comments I am happy to
receive them.

Regards,

Malte 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Just another player.

2002-11-29 Thread Malte Brill
Hi Manuel, just follow that link:
http://www.runrev.com/revolution/developers/developerdownloads/usercontribut
ions.html

You can find many interesting stacks there.

Au revoir,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Rev 2.0

2002-11-25 Thread Malte Brill

we all should give a very big hand to our german revolutionist
Mr. Malte Brill, who wrote these two articles.

Hey Klaus, you make me blush! ;-)


are these on the web?

Sorrowly not (yet). If anyone is interested in reading the German review, I
will try to make a PDF version of it, and send it via mail. (please mail me
off list). For the german tutorials I am sure I will put these on my
Website, when the Mag is outdated and all copyright falls back to me. (They
are very low level though, so I guess they are not too interesting for
experienced users and maybe need some revision.)

My kind regards to all the nice people on this list. Without your help I
would never have been able to find the ease in using Revolution.

Vive la revolution!
Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



making a pie chart

2002-11-11 Thread Malte Brill
Hi Yves:
Here is my two cent (just very rough, coded on the fly:

Put the following in the card skript
on newGraphic
  choose browse tool
end newGraphic

Button a:

global numberOfSlices,percentage,allValues,other
on mouseup
  put 0 into other
  put 0 into allValues
  put 0 into numberOfSlices
  put 10 into percentage[1]
  put 20 into percentage[2]
  put 30 into percentage[3]
repeat for each element x in percentage
   put x+allValues into allValues
   put numberOfSlices+1 into numberOfSlices
end repeat
if allValues100 then put 100-allValues into other
end mouseup

--Just to initialize the values

Button b:

global numberOfSlices,percentage,allValues,other,angleOffset
on mouseUp
  put 0 into angleOffset
  repeat with i=1 to numberOfSlices
create graphic (slicei)
set the style of graphic (slicei) to oval
set the rectangle of graphic(slicei) to 0,0,100,100
set the arcAngle of graphic(slicei) to percentage[i]*3.6
set the startangle of graphic (slicei) to angleoffset
put angleoffset+percentage[i]*3.6 into angleOffset
  end repeat
 if other 0 then
  create graphic others
  set the style of graphic others to oval
  set the rectangle of graphic others to 0,0,100,100
  set the arcangle of graphicothers to other*3.6
  set the startangle of graphic others to angleOffset
 end if
end mouseUp

Regards
Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



2 questions: centering and relative paths

2002-10-31 Thread Malte Brill
Hi Guilio!
Got a small tutorial on this on the newbies board.
http://www.mailping.net/cgi-bin/yabb/YaBB.cgi?board=tutorials;action=display
;num=1032762137
I set the location for all my Images and buttons via script, depending on
the screen resolution.
I hope this helps

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Playing with the imageSource

2002-10-28 Thread malte brill
Hi List,
I created a little stack.
You might type a text in a field and this Text will create a scroll line
like in the old 16Bit (atari) Demos. If you are interested to take a glimpse
on it, you might download it at www.derbrill.de/revstack/newfont.rev.bin .
Any comments on optimizing the code would be nice.

(by the way... Has anyone done some approches on fractals and/or simple 3d
graphics in Rev, or can point me to some good tutorials?)

Have a nice day!
Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Collision detection: A comparison

2002-10-03 Thread malte brill


 The more I think about this, try optimizing a simple pixel overlap
 in the overlapped region of the two images.  That may be enough.

So first check with intersect function, if intersec=true then check with
pixel method for the overlapping parts of the two objects?
That seems to be a good thought.
It really sounds as if it might be enough to check exerpts of the maskdata,
but I still got no idea how to compute them.

That one will keep me thinking for a while.

Regards,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Quicktime VR: Prevent user navigation

2002-10-03 Thread malte brill


 Malte,
 
 You could put an invisible button(s) over the player which would
 intercept mouse clicks and add buttons yourself to control the player.
 
 Bill Vlahos

Hi Bill,

doesn´t work. The button is absorbed by the player and doesn´t receive any
mouse interaction in the player area. I have changed the sequence of
statments in my script (always buffer and set the pan). Better, but still
not really good (looks quite chessy).

Thanks anyway, 
Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Quicktime VR: Prevent user navigation

2002-10-03 Thread malte brill


Turn on the alwaysBuffer, then set the currentTime to 1 every time you make
a change to the pan to force a redraw.

Works great, thanks Kevin!

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Collision detection: a comparison.

2002-09-30 Thread malte brill

Hi Dar,

thanks for the leg up. Indeed, I checked the whole data after every move,
silly me.

If pixel by pixel checking is too slow, you might roughly model
each object with a small list of rectangles in a custom property.
An overlap occurs if any rectangle from one's list overlaps one
from the other.  This is n**2, so...

How about limiting this to a few rectangles and then use the pixel
method for within that?

That sounds very interesting, as it is what I am trying to do. Do you mind
giving me some pseudo-code, as I still loose hair on it. How would I define
these rectangles for usage with the pixel method? I still haven´t been
working much with custom properties, and I think I still don´t get the idea.

Thanks.


PS: My excuses to the list, for the wrong system time in my previous
posting. Seem as if my system battery is low. I synchronized with a time
server now, and hope it will work.

regards,

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Collision detection: a comparison.

2002-09-29 Thread malte brill

Hi there.
I´m still playing around with collision detection. Frist I tried using the
intersect function, but that one is not precise enough for irregular shaped
objects, as it only checks the rectangles of colliding objects. And checking
the masked data is much too slow. Actually I am working through some
tutorials I found on the web and found some math to check the distance
between two objects middle points. So now I am able to check collision for
circular shaped objects fairly precise.I made a small comparison stack
downloadable at www.derbrill.de/revstack/collide.rev.bin
If you open the stack in the IDE and start using the browse tool, you might
need to hit the reset button first. I still have to add some things in the
mouseStilldown scripts of the objects, as you might move the two balls
outside of the stack or behind the walls. Anyway the stack works for me
testing the differences between the two principles. If someone knows, where
I can find more tutorials on collision detection on the web, or has made
experiences with algorithms for collision detection of ellipsoids please let
me know.

regards,

Malte 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Playing back Videofiles on multiple Platforms

2002-07-17 Thread malte brill

Hello.
I´m building some small presentations playing back Mpeg1 Movies on Mac and
Win. It all works fine if Quicktime is installed. I´ve talked to Apple and
they allow to put the Installer on the CD if you fill out a simple Licence
Agreement (without charging fees). I tested it on multiple Systems and
realized that the playback Quality strongly depends on a) the processor
speed (300 MHz), b)if the graphic card is onboard or not, c) if there is
enough Hardiscspace (400MB) and d) the speed of the CD-Rom Drive.
While c and d might be checked or solved by building an installer, I wonder
if it´s possible to get the Processor speed and check if there is an extra
graphic card in order to disable
playback of video on low end systems.
Something like
if the system is slower than 300 MHz and has no extra graphic device.
 go card sorry
endif
thanks in advance
Malte 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Linux and digital video

2002-06-11 Thread malte brill

Hi there!
I´ve searched the archive for a thread like this and was sure there´s been
something on that topic, but I´m not able to find it.
I´m wondering how digital video is displayed on Linux systems, as there is
no version of Quicktime for Linux I guess. So how can I display mpeg1 video
on Linux systems?

Any ideas if any system components have to be installed and if so: is it
possible to put them on my CD for distribution.

Regards

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



[standalone] Why my image disappear ?

2002-06-09 Thread malte brill

am 09.06.2002 4:04 Uhr schrieb [EMAIL PROTECTED] unter
[EMAIL PROTECTED]:

 [standalone] Why my image disappear ?

Hi. I guess You used a referenced JPG?
I had the same problem, when building my first standalone. From the HD
everything worked fine. Also on Windows Systems it worked correctly when
starting from CD. When I copied my app back from CD to the HD on Mac the
JPGs were displayed correctly. Strange.
I used PNG files (saved for the web in Photoshop) instead of using JPGs
and these work fine from CD on Mac OS. Eventhough they take up more memory
I´m on the save side now.
Give it a try.

Cheers
Malte 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



the systemversion

2002-06-09 Thread malte brill

Moin Klaus!

On 98 it returns Windows 4.10
Couldn´t check on 95. Sorry

Grüße 
*T

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Setting the scale of player and relative paths (malte brill)

2002-05-31 Thread malte brill

am 29.05.2002 14:23 Uhr schrieb [EMAIL PROTECTED]
unter [EMAIL PROTECTED]:

 Setting the scale of player and relative paths (malte brill)
O.K. Setting the scale of player seems to work only on UNIX Machines. (found
it in the Refdoc. Those who are able to read are in advantage ;-) )
I solved my problem by using constant values for the different resolutions.
Works.

But I´m still running mad on relative paths. I tried to discover the
solutions in the refdocs, but due to not being a native english speaker I
sometimes don´t get the hints given. (or at last later than others do ;D)

Thanks for your time.

greetings from germany

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Setting the scale of player and relative paths (malte brill)

2002-05-31 Thread malte brill

Hello Jeanne.

Sorry I haven´t seen your reply before posting the other message.
The problem with the player was that the mpgs weren´t running smoothly (I
don´t know the english term for ruckeln, sorry) To put it in other words,
the player was freezing or loosing frames. I guess that was due to my
scaling script. I put item 3 of the screenrect into a variable and
calculatet the width and height of the player from it by multiplicating by
1.4 for the width and that value multiplicatet by 4 and divided by 5 ( in
order to get a 5:4 resolution) Sorrowly these values are round and therefore
the resolution is not absolutely exact. And I guess it takes quicktime many
cycles rescaling the player.
Now I set up constant values for different resolutions and it works. :-)

Relative path:

I want to start my movies from a folder called derbrill subfolder mpg

the absolute path while develloping is

Daten/derbrill/mpg

My stack is in the folder derbrill (right now on Daten.)

Thanks

Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Setting the scale of player and relative paths

2002-05-29 Thread malte brill

Hello,

still being a newbie I often hesitate to contact this list with my maybe
stupid questions. I prefer searching the archives, but actually it´s often
not so easy to find answers (I´m using the search function of outlook, maybe
there is a better way ;-) )

Now I have two questions I couldn´t find an answere to:
1.
I have been creating a simple app that´s playing back my selfmade Mpeg1
Movies. In order of running it on any resolution I have to scale the player.
But if I set the rect of player (depending on the resolution) my movies
loose performance. So I looked in the Dictionary for a better way and came
across the scale command. If I try to set the scale of my player I get an
error message Object does not have this property. What am I doing wrong?

2.
Relative Paths:
I still can´t get it done. My app needs to run on Mac and Windows systems
(from CD). Can anyone give me an easy discription on how to set relative
paths?

Thanks and regards
Malte 

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Resizeing stack proportionally

2002-04-03 Thread malte brill

Hi there,
I wrote the following script to resize my stack in a 4:3 ratio

on resizestack
  set the width of stack main to the height of stack main/100*133.33
  set the rectangle of image back to the rectangle of stackmain
  set the location of imageback to the width of stackmain/2,the height
of stack main/2
  pass resizestack
end resizestack

sorrowly the stack starts jumping around a bit after being resized.
Is there a more elegant way to scale the stack proportionally?

Regards
Malte

___
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution



Re: Arrays: new and old keys, i and, man am I annoyed

-- Thread Malte Brill
->










  
  Re: Arrays: new and old keys, i and, man am I annoyed
  
  
  
  
  
  








	

	use-revolution 

	
		
			-- Thread --
			-- Date --
			





			
		
	



	
	
	




 




<!--
google_ad_client = "pub-7266757337600734";
google_alternate_ad_url = "http://www.mail-archive.com/blank.png";
google_ad_width = 160;
google_ad_height = 600;
google_ad_format = "160x600_as";
google_ad_channel = "8427791634";
google_color_border = "FF";
google_color_bg = "FF";
google_color_link = "006792";
google_color_url = "006792";
google_color_text = "00";
//-->








Re: Arrays: new and old keys, i and, man am I annoyed
Malte Brill
 


 






  
  





Reply via email to



  
  





 
 







<    2   3   4   5   6   7