chaosfire / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

Blendmap as RTT, noise #223

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Try to generate blendmap as render to texture, not on CPU.
Now making noise on CPU using Noise function is hopelessly slow.
Need to check if its possible to use GPU for that. Should be much faster. Have 
to create a texture with float heights from HMap and then with RTT transform it 
to angles, and finally using both (and layer params) produce the layers blend 
values. Could be more than 4.
Keep in mind that for editor we should just update the RTT not create/destroy 
it every frame.

Original issue reported on code.google.com by Cry...@gmail.com on 7 May 2013 at 3:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Max is 4 layers (16 texture samplers are the limit, could get 8 with 2nd pass).
So always only 1 blendmap is needed.

Original comment by Cry...@gmail.com on 8 Feb 2014 at 7:32

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Blendmap now works as RTT. (on ter_tex branch)
It is blazingly fast, also terrain editing got faster.
For info see TerrainBlend.cpp. Also angles.shader does produce angles from 
Hmap, and blend.shader is final.
Is so fast that it's always updated full, on every terrain edit without 
noticable fps drop.

Original comment by Cry...@gmail.com on 9 Feb 2014 at 7:34

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Noise done. Just needs more params like scale,power,octaves,persistance etc. on 
sliders.

Original comment by Cry...@gmail.com on 12 Feb 2014 at 9:42

GoogleCodeExporter commented 8 years ago
Those will be on new subtab Noise, after Blendmap. With noise preset buttons 
for quick sets.

But, this all needs adjusting all layer blendmap params for all tracks, and 
will take a while.

Original comment by Cry...@gmail.com on 12 Feb 2014 at 9:46

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Done. need to go through all tracks and then merge ter_tex

Original comment by Cry...@gmail.com on 16 Feb 2014 at 4:37