Chrome material on cylinder

Software: Away3D 4.x

bav, Newbie
Posted: 26 February 2013 01:18 PM   Total Posts: 3

Hi, guys! Does anybody ever made chrome cylinder?
I was looking for this theme over internet and I found some links:
http://away3d.com/comments/chrome-ball // using SkyBox
http://www.closier.nl/blog/?p=46 // also using SkyBox
http://infiniteturtles.co.uk/projects/away3d4/examples/Intermediate_RealTimeEnvMap/Intermediate_RealTimeEnvMap.html // wonderful example which I took as base.
But first I try to replace cylinder by prism of PlanarReflectionTexture. It doesn’t looks nice and very slow. In attachment (table.swf) you can see example of this (press [Space] for switch prism and cylinder which reflect SkyBox).
After this I try to use CubeReflectionTexture from third example above (thanks it have sources). And it looks nice for many shapes, sadly except cylinder (look table_2.swf in attachment, press [Space] for switch different shapes).
I’ll continue story in the next post, cause attachments have limited size.

 

File Attachments
table.swf  (File Size: 845KB - Downloads: 217)
table_2.swf  (File Size: 848KB - Downloads: 220)
   

bav, Newbie
Posted: 26 February 2013 01:39 PM   Total Posts: 3   [ # 1 ]

Continue:
So, on other forum ( http://www.flasher.ru/forum/showthread.php?t=194490 ) I was advised to change vertexes in cylinder’s mesh. It helped me, but not enough. In attachment (table_3.swf) is last result of my attempts. In any examples you can use mouse to rotate table.
Some words about changing vertexes: there is vertexData in SubMesh class – the vector contains 13 number for each vertex. Here is example:

0       1      2      3     4     5     6    7     8    9    10   11   12
X       Y      Z      
|     |     |     |    |     |    |    |    |    |
0.0     75.0   0.0    0.0   1.0   0.0   1.0  0.0   0.0  0.5  0.5  0.0  0.0
16.0    75.0   0.0    0.0   1.0   0.0   1.0  0.0   0.0  1.0  0.5  0.0  0.0
0.0     75.0   0.0    0.0   1.0   0.0   1.0  0.0   0.0  0.5  0.5  0.0  0.0
11.3    75.0   11.3   0.0   1.0   0.0   1.0  0.0   0.0  0.9  0.9  0.0  0.0 

This example for cylinder (radius = 8, height = 150, horizontalSegments = 8, verticalSegments = 8). So I try to set numbers with 4 index to -0.3 and change Y position for some vertexes. Result is in table_3.swf.

So, the question is: can anyone tell me how to make good chrome cylinder? And maybe you know appointment of numbers with indexes from 3 to 12 in table above?

P.S. Excuse my English :)

 

File Attachments
table_3.swf  (File Size: 717KB - Downloads: 210)
   

bav, Newbie
Posted: 14 March 2013 09:57 AM   Total Posts: 3   [ # 2 ]

Hi, guys. I found decision of this problem. It’s described here http://www.flasher.ru/forum/showthread.php?t=194490 in detail (look later posts, but entirely thread is also useful).

 

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X