Archive: HELP needed!!!


16th January 2004 12:58 UTC

HELP needed!!!
Tell to me, please, how I can force this effects of "lens" which in the center to move on the screen in different directions? Or how can i make a file of these lenses and to force them to move in various directions? How?????!!! Help!!!!!!!!!!!


16th January 2004 14:28 UTC

Am I the only one who is reminded of babies crying when reading posts like this?

HELP!!!!!!!!!!! OH MY GOD! HE'S GOING TO DIE! SOMEBODY PLEASE... DO SOMETHING! THIS IS REALLY URGENT! CALL 911!

A tip: when posting, please use a descriptive topic title and ask your question in a normal fashion. Don't use multiple punctuation marks in series.

Anyway, you'll need to replace the last movement by a dynamic movement and transform between polar coordinates and cartesian coordinates for it to work.

For distance-only formulas, you can use:

x=x-cx;y=(y-cy)*af;d=sqrt(sqr(x)+sqr(y));
nd=0.15-d;
d=nd/d;x=x*d+cx;y=y*d*iaf+cy;

Where:
- af is the aspect-ratio correction factor and iaf is 1/af
- cx/cy is the center of your lens


17th January 2004 18:58 UTC

I am sorry that somewhere i did something wrong in this topic ;) Thank for formulas. Now imagine, that I the full idiot in this mathematical programming (though actually i am and so it is) and could you explain to me wich formulas should i put in pixel field, which in beat section? I still the beginner in this business (as you see). Anyway I've made some formulas and i want to share it with you. It can possibly give you help on the account of what I want to tell all about it.

frame: d=d2 +.02
beat: d2 = (rand (50)/1000) + .5;
d2=if (above (d2.05), d, d2);
d2=if (above (d2.4).001, d2);
pixel: d=d2-d

I'm about putting this stuff in DM that will replace my old movement.

As you see I have made lens by my myself. And now i have only one question. The point of that question is how can i force it to move. Could you help me with that? Yaeh, it is that question still. :) I don't want make you to angry with me but i can't get clear all of that stuff that you wrote to me (it won't be necessary in 911). :) As you can see when the lens gets the maximal size is sharply reduced. How can i make lens smoothly decreased?

Also i have badly understood about coordinates. ;)

Yeah, yaeh, i know that i'm dump... :) And try not to be so sarcastic in future...:)


17th January 2004 19:09 UTC

frame: d=d2 +.02
WTF?

d2=if (above (d2.05), d, d2);
d2=if (above (d2.4).001, d2);

Even more... err, you know.

Anyways, the pixel coding for a makeshift lens, fresh from Lexicon (pack 4)

x1=x+sin(tx);y1=y+sin(ty);
area=max(1-sqrt(x1*x1+y1*y1),0);
d=d/max(1+area*3,1);

This is NOT quite correct, however. It gets very yucky around edges... Look for the first Whacko pack by UnConeD, Second Reality for a correct lens. Study yourself.


17th January 2004 20:09 UTC

In case you're curious how my lens was derived:

Looking at the image sideways, the AVS picture is a line. I put a sphere which sticks a bit above the plane.


|
|
|
|
.-¯¯¯¯¯X.
/ / \
---/------/----\--------
| . |

(sorry for the crappy ascii art)

The incoming rays are vertical, and I assume an infinitely refractive material (i.e. the refracted ray runs along the surface normal inside the lens).
You can determine the intersection of the refracted ray with the surface using trigonometry. If you do it right, you will get a distance-only formula. If you use parameters in your formulas, you can tweak the shape later on.

The trick to a good lens is to make sure the curvature is right, and that the lens has no effect at the edge.

19th January 2004 05:56 UTC

My God! I didn't even think that my math-stupidness actually gone so far.:) Anyway, thank you, guys, for correcting my natural defect of enmity to mathematics. I have sat evening and another alone with my preset and understood, that i can get very funny effects by experimenting with DM-formulas and variables, achieving thus of something interesting. Getting many ideas of how to implement lens effect i understood that i understands nothing.;) Yes, these ugly formulas is that what i can do only by myself now. Yeah, that is true. It is terrible even to think about it, but it is my first try. First try never turns out correctly everytime. Right? And i am sure, that all of this has taken place to be with you too, guys (i hope that phrase was correct:)). Probably those formulas which I have written is just a pity attempt to represent how i'm understanding all this programming stuff. And sure, i havn't done everything well, but as you can see I do not apply on an Oskar for it. Therefore I'm asking you for help. I just want to make lens by myself. And now or later i'll make it with your help or without it. BUT!!!!! But... But on this stage of my AVS-experiencing i realize that i'm the guy who needs of your help very much.

2 UnConed:
Thank for your so detailed explanation and ascii-picture (why you're sorring for it, i found it very informative). All this text that you wrote about what, where and how all of this graphics eye-candy thing should work is very difficult to me by now. But I think that the time when i'll understand it will come and all of it soon or later will be clear to me.

2 Nic01:
Thank you for formulas that you have written to me. Thank you anyway, but i don't know where should i past them: beat, pixel, frame? You know what i'm talking about. Yes, it is very possible that i'm very big stupid that can't understand even a basic thing. But if not you won't ask, you will not learn. Right?:) Of course, it is very important that there should be a man who will teach you. I agree with it. Well, i'll try. The main thing is who will teach me. Why don't you, guys. Huh? Of course if you want to.:):) I have put your formulas according to my own reasons like this:

frame: x1=x+sin(tx);y1=y+sin(ty);
beat: area=max(1-sqrt(x1*x1+y1*y1),0);
pixel: d=d/max(1+area*3,1);

I hope that was correct. Anyway hopeness dies last one :)))) I did everything but lens does not appear with those formulas. Blend and rectangular coordinates fields are unchecked. Wrap, bilinear filtering are checked. I saw cool lens only when i changed grid size to 5x5 and replace pixel formula with this one: d=(2*d)-max(1+area*3,1). But the lens did not move anyway.


19th January 2004 06:31 UTC

Heh, UCD, you're a great ASCII artist! What's the name of that doggy? :D

<sorry_I'm_offtopic>