Skip to content
Forum Archive

Texer II alpha

89 posts

gaekwad2#
A wise man once said:
originally posted by killahbite
very original to do something that already exists.. using inferior technics like avs 😛
UnConeD#
When justin adds the help API.

In the meantime I've sped up the Texer 2 a bit, and added a Wrap-around function, which wraps particles around the border of the screen (handy for tilable patterns).

Haven't uploaded it yet though, but it's such a minor update that it really doesn't matter much.
MrGabberPants#
Noooooooooooooooooooooooooooo, It maded my winamp crash, ne1 know y???

Help me pleeeeeeeez, I wana play wif it too.😢
sidd#
small bugsy

If you choose one of the examples, and then change the texer image, and then change to another example, the image goes back to the default image.

This is fine, but the image listbox doesnt update. It still says whichever one you selected before, even though the default one is being used.

Also, i got a crash once when i mouse scrolled very quickely thought the list of texer images. But it hasnt happened since.
UnConeD#
Fixed that XOR bug and the imagelist bug. Latest at:

A blog about random hacks, graphics and design, math and other ephemera.


Help won't work on currently available AVS pre's, you need the (unreleased) pre9 for this.
Nic01#
Yes, he did say pre9, now wake up 🙂
Don't bother with the amazement, let's just say for now that pre9 allows kinda individual help files.

As for pre10, that'd be v1.0, that'd be 3 days from now, 20/11/03.
UnConeD#
Basically the help button opens up the same help dialog as the help button in the standard AVS components (superscope/dm/...) with a Texer 2 specific tab along side the others. In case you didn't know, this is one of the new things in AVS 2.7.

Justin simply didn't implement any way for APEs to use this dialog until pre9.

Here's the text in the texer 2 tab:
Texer II is a rendering component that draws what is commonly known as particles.
At specified positions on screen, a copy of the source image is placed and blended in various ways.


The usage is similar to that of a dot-superscope.
The following variables are available:

* n: Contains the amount of particles to draw. Usually set in the init code or the frame code.

* w,h: Contain the width and height of the window in pixels.

* i: Contains the percentage of progress of particles drawn. Varies from 0 (first particle) to 1 (last particle).

* x,y: Specify the position of the center of the particle. Range -1 to 1.

* v: Contains the i'th sample of the oscilloscope waveform. Use getspec(...) or getosc(...) for other data (check the function reference for their usage).

* b: Contains 1 if a beat is occuring, 0 otherwise.

* sizex, sizey: Contain the relative horizontal and vertical size of the current particle. Use 1.0 for original size. Only works if resizing is on.

* red, green, blue: Set the color of the current particle in terms of its red, green and blue component. Only works if color filtering is on.

* skip: Default is 0. If set to 1, indicates that the current particle should not be drawn.



The options available are:

* Color filtering: blends the image multiplicatively with the color specified by the red, green and blue variables.

* Resizing: resizes the image according to the variables sizex and sizey.

* Wrap around: wraps any image data that falls off the border of the screen around to the other side. Useful for making tiled patterns.



Texer II supports the standard AVS blend modes. Just place a Misc / Set Render Mode before the Texer 2 and choose the appropriate setting. You will most likely use Additive or Maximum blend.

Texer II was written by Steven Wittens. Thanks to everyone at the Winamp.com forums for feedback, especially Deamon and gaekwad2 for providing the examples and Tuggummi for providing the default image.
horse-fly#
Originally posted by UnConeD
Fixed that XOR bug and the imagelist bug.
would this be the "no green in XOR mode" bug?
Magic.X#
@UCD

I recently installed the new DX9b and all of a sudden i could use large images! Crashes still happen now and then but basically it works now even with those f**king huge bitmaps.

As you pointed out before, tex2 does'nt use DX, but check this yourselfes. Maybe you should add the advice to upgrade DX to your help.
fragmer#
...Will it be possabile to set the rotation angle of the bitmap (per-particle) someday?
I know it'll slow the whole thing down, but... dreams... 🙂
Zevensoft#
You dont need a rotation function, if you use one other object you can have particles rotating about the origin. I aint tellin yet :P.
fsk#
Got an idea for what might be cool for AVS? Why don't you share it, maybe it'll show up in the next release!