New Shader Ideas

Started by CCC, January 16, 2010, 08:21:08 PM

Previous topic - Next topic

CCC

Yes, that does sound familiar. Thanks. At least it can be a temp solution.    :)

Did you get my PMs?

Matt

Yes, just have a lot going on.
Just because milk is white doesn't mean that clouds are made of milk.

CCC


mogn

Quote from: CCC on January 18, 2010, 10:13:38 PM
Quote from: CCC on January 16, 2010, 09:57:33 PM

Now if i want several pinnacles i was going to use the radial array but it only does things in rows. The idea is to have them randomly scattered.


Any ideas because i can not figure this out.

"Get position in geometry" delivers a x and a z value to the underlying nodes. Say you want to create 11 pinnackle radially distributes in 11 segments.
1) find which segment the current x,z is placed.
2) rotate the coordinate system n*360/11 degrees so that this segment is mapped on the first segment.
3) create your pinnacle in the first segment.

The first segment with the pinnacle will then be mapped back to the current segment.
Does this sounds as woodoo, it is not. TG2 does it by using the same point you got from "Get position in geometry" in the system node where you applies the pinnacle.

You can look in the tgd in an old thread where I have build 11 spires around a dome.
http://forums.planetside.co.uk/index.php?topic=4222.msg44159#msg44159

CCC

Interesting, i'll check that out as well. Thank you.    :)

EoinArmstrong

Back to my aside - Curves isn't appearing for me sometimes due to a known bug in 2.0, and the fact that I hadn't upgraded to 2.1 - duh!