Render.ru

Тормоза при текстурировании сабдивов

Sergei 1121

Активный участник
Рейтинг
5
#1
Привет Народ!

Майка 4.5
Есть сабдивная модель. Текстуру наложил 512Х512.
Делал так. Создал материал, затем наложил текстуру Normal->File в гипершадере. Выбрал Automatic mapping.
При преремещении UV точек в UV Texture Editor майка сильно тормозит. Комп - 1Гиг Атлон + 620 Мозгов + Гефорсе МХ400.

Может можно в майке какуюнить оптимизацию включить или ченить в ней выключить? Подскажите пожалуйста.

С уважением Zaren.
 
Рейтинг
64
#2
Ты текстуру на сабдив или на поли прокси кладешь? Если на первое то все понятно...

ЗЫ Текстурят только поли прокси. Нормальный текстуринг сабдив сурф появится нескоро.
 

O'Mally

Активный участник
Рейтинг
5
#4
Есть мнение, что узлы blindData надо поудалять для ускорения работы с сабдивами.
 

Sergei 1121

Активный участник
Рейтинг
5
#5
Извините за глупый вопрос. А где найти, эти самые, blindData? В Гиперграфе нету их.
 

O'Mally

Активный участник
Рейтинг
5
#6
Это как смотреть. Если ты сделал refine в какой-либо точке, то переключись в polygon proxy mode и посмотри в гиперграфе. Ты их увидишь.

вот выдержка с highend3d c неким рецептом по ускорению сабдивов. может поможет:

1.) Open the hypergraph. and go to Options > Display > Shape Nodes.

2.) Select the shape node for your SubD model , and "show up-and-downstream connections".

3.) Right-mouse over your Subd model in the viewport and go to Poly Proxy mode.

4.) In the hypergraph, you should see the downstream connections change to a historyshape node (the poly proxy) and a bunch of blinddata nodes.

5.) Delete the blinddata nodes. If you move vertices on your model, you should already see a slight increase in speed.

6.) Create two layers.

7.) Select and assign the the poly proxy (historyShape) and the subd shape node to seperate layers.

8.) Hide the layer with the Subd shape node

9.) Middle mouse drag the Poly Proxy (historyShape) node over the shading group (at the right end of the network in the hypergraph) to give it a material, so it is shaded in the viewport.

10.) Now move some vertices on your poly proxy and you should have full interactivity! You can hide and show both layers whenever you want. (Note that the greatest performance increase comes from hiding the SubD layer.)

You can also bind the poly proxy to a skeleton and animate it. That way you can alter and assign UVs on the SubD model after the poly proxy is skinned. When you want to render, just hide the poly proxy and show the subd! Walla!

Hopefully this will work for everyone. If it doesn't and you have questions, post them. I'll try to solve them. Note that you must repeat the steps concerning the Poly Proxy node if you switch back to standard mode and then back to Poly Proxy node (deleting blinddata nodes, assigning to the layer and assigning a shading group, etc).
 
Сверху