evil space flame

[vimeo]https://www.vimeo.com/94901105[/vimeo]

an old trick, so much fun!

a couple of bits and pieces came from other examples posted here a long time ago.

p.s. it is also possible to animate 3d geometry made of points by using sop->chop->top!


evil_space_flame.toe (1.35 MB)

Thanks for posting! We tried this file in the latest 088 and it had a number of GLSL compiler errors as they were set to shader version 1.20. Suggest checking your drivers and updating them.

Iā€™ve gone ahead and updated the shaders to be all GLSL 3.30 so it works now with the latest experimental without shader compile errors.

However, wondering it you could take a look at it as the scene starts of with a beautiful particle effect which then slowly fades away, it looks like the system needs to be re-seeded or that the feedback settings are clearing it instead of propagating it.

Check it out, used build 16360.
evil_space_flame.6.toe (1.35 MB)

i seeā€¦

well, itā€™s funny because, now i canā€™t get it to work, at least when the GLSL-Multi shader is set to version 3.30. If i revert to 1.20 by and use gl_TexCoord[0].st instead of vUV.st , it works fine.

After messing around with it for a few minutes, it looks to me like itā€™s not reading in from the second uniform sampler correctly under 3.30ā€¦

this line returns a value from sInput1 no matter what i do or where i put itā€¦ :frowning:

pos = texture2D(sInput2, vTexcoord);	

Is it possible thereā€™s a bug in the GLSL Multi Top?

The way you access samplers is different in 3.3 also. They are accessed via arrays such as sTD2DInputs[0], sTD2DInputs[1]
and you donā€™t need to declare them anymore. Missed that when we were upgrading it.
However, now Iā€™m unclear why it wasnā€™t working originally for Ben on his machine when it was set to 1.20. Iā€™ll take a look.

Malcolm might be able to answer why this is? However, all that gl_TexCoord syntax is not 3.30. All the shaders opened in error for me here complaining you are using Global 1.20 stuff that is no longer supported, hence why I tried to fix the errors and update everything to 3.30. I am running latest Nvidia drivers 331.82.

Right, the issue was that things like ā€˜noperspectiveā€™ and ā€˜outā€™ are used in the ā€˜lensfx1ā€™ COMP, but those are only available in 1.30+ (noperspective possibly using an extension).
Similarly the GLSL MAT is using things like ā€˜attributeā€™ and is set to 3.30, but attribute isnā€™t allowed in 3.30, you need to use ā€˜inā€™ instead.
What driver version do you have installed? Older Nvidia drivers were very non-compliant, allowing all kinds of illegal syntax to get through. They slowly fix those loopholes over time though, resulting in previously working shaders starting to fail to compile.

Iā€™m using AMD drivers (FirePro 2013.1214.1007.18089)

(Also itā€™s a 1st gen cylinder mac pro with an amd firepro d500 card, under bootcamp 8.1)

and yea, sorry, i am not conversant in the differences between GLSL 1.2 and 3.30, itā€™s usually a bit of trial-and-error to get things to work.

Are any of those uniform assignments and other TD-specific GLSL things documented anywhere really? iā€™ve poked around a bunch on the site and never came up with a whole lot.

i switched out the texture lookups to use sTD2DInputs[0ā€¦n] instead of the declared uniform samplers and it worksā€¦
evil_space_flame.7.toe (1.35 MB)

1 Like

Yup, here:
derivative.ca/wiki088/index.php? ā€¦ L_Material
and
derivative.ca/wiki088/index.php? ā€¦ a_GLSL_TOP

great - ty!

Thanks for sharing steve

Thanks for that, working now on my system as well (in the latest experimental).

Wondering how those FireProā€™s are behaving with TouchDesigner in general, we donā€™t have any to test with and a number of people have been asking. Any comments on them?

so far itā€™s been great!

there is one bug though, i have to reboot and load windows in order to run touch :wink:

:laughing:

actually though, now that i think of it ā€”

there are times when touch hangs during loading a toe file, the window just goes white and freezes. sometimes i have to kill the process with task manager. it doesnā€™t generate a crash dump. it happens maybe 15-25% of the time.

If it happens again, sometimes we can get something from a forced dump file. To create one, when its hanging on you right-click on the process in the Task Manager and select ā€œCreate Dump Fileā€. The files created this was are very large, maybe youā€™ll have to dropbox it to us or something. If it happens that often, weā€™d like to look at it.

P.s. here is an evolution of the same patch:

[vimeo]https://www.vimeo.com/95365778[/vimeo]

I would upload it but the toe file is 60 MB.

Here is a trick for creating geometry for particle engines like this.

  1. Using houdini, load your modelā€¦

  2. run it through houdiniā€™s scatter sop to generate as many points as you need.

  3. if you have a texture map, use an ā€œattribute from mapā€ operator to get color data baked into the points.

  4. export geometry from houdini (I use .hbclasic)

  5. load geometry into touch designer

  6. use sop->chop to convert points into channels (just P at first)

Now here is the tricky part. I am working with 1024*1024 particles, so that means the chop will have a million samples. To turn this into usable data, you can use a trim chop to extract 1024 values at a time. Mix this with a chop->top, a feedback top, and an over top, you can build a nice 1024x1024 32-bit texture with all of your particle positions! You can repeat the process with the vertex color data and get a color map also.

Sice you canā€™t save 32-bit textures, you can only lock a null top and then use switches or selects to access it at runtime.

Just a tip for those who didnā€™t notice, either turn on the display flag for /evil_space_flame/final or put this file into Perform Mode (press F1) to see the final output. When you start it up the network backdrop is displaying the Render TOP before all the extra effects. :sunglasses:

hey steve, Iā€™m having trouble following your suggestions for using custom geometries, so it would be really great if you could upload that 60 mb file to dropbox or somewhere else.

many thx
A

this is great steve. Iā€™m with Achim wanting to see the .toe for messing with models. :slight_smile:

rod.