Creating Normal Maps from Displacement Maps

Forums: Creating Normal Maps from Displacement Maps
DAZ Studio Integrated Plugin (Integrated Plugin maintained by OTOY)

Moderator: BK

Forum rules
Please keep character renders sensibly modest, please do not post sexually explicit scenes of characters.

Creating Normal Maps from Displacement Maps

Postby linvanchene » Tue Apr 16, 2013 9:38 pm

linvanchene Tue Apr 16, 2013 9:38 pm
edited and removed by user
Last edited by linvanchene on Sat Sep 06, 2014 11:50 pm, edited 2 times in total.
User avatar
linvanchene
Licensed Customer
Licensed Customer
 
Posts: 783
Joined: Mon Mar 25, 2013 10:58 pm
Location: Switzerland

Re: Creating Normal Maps from Displacement Maps

Postby t_3 » Wed Apr 17, 2013 8:12 am

t_3 Wed Apr 17, 2013 8:12 am
linvanchene wrote:I just wanted to double check before I make things more complicated than they need to be:

As far as I understand Octane does not support displacement maps because they are heavy on the GPU VRAM memory.

- - -

There is a photoshop plugin by nvidia that can transform displacement maps into normal maps.

https://developer.nvidia.com/nvidia-tex ... -photoshop

- - -

Is there a way inside octane perhaps in the NGE to do some kind of transformation of displacement maps into normal maps as well?
hmm...

no ;)

there are (far) ahead plans like auto texture maps, auto resizing, ... , but it might come that this is just ruled out by ever increasing vram, new gpu/cuda versions with more texture slots, or even other unforeseen news regarding octane 8-) and the same might apply to this request - creating normal maps on the fly would be a possibility for future versions (you will still have the limitation, that you can't use bump + normal within the same material node), but hopefully octane is faster in supporting them directly :)
The obvious is that which is never seen until someone expresses it simply

1x i7 2600K @5.0 (Asrock Z77), 16GB, 2x Asus GTX Titan 6GB @1200/3100/6200
2x i7 2600K @4.5 (P8Z68 -V P), 12GB, 1x EVGA GTX 580 3GB @0900/2200/4400
User avatar
t_3
 
Posts: 2871
Joined: Tue Jul 05, 2011 5:37 pm

Re: Creating Normal Maps from Displacement Maps

Postby sqjam » Wed Apr 17, 2013 4:45 pm

sqjam Wed Apr 17, 2013 4:45 pm
Autoresizing will be very useful (max limit size option for every map and Global Overwrite option). Now I do this manually.
sqjam
Licensed Customer
Licensed Customer
 
Posts: 20
Joined: Tue Apr 09, 2013 3:37 pm

Re: Creating Normal Maps from Displacement Maps

Postby linvanchene » Fri Apr 19, 2013 10:36 am

linvanchene Fri Apr 19, 2013 10:36 am
edited and removed by user
Last edited by linvanchene on Sat Sep 06, 2014 11:50 pm, edited 2 times in total.
User avatar
linvanchene
Licensed Customer
Licensed Customer
 
Posts: 783
Joined: Mon Mar 25, 2013 10:58 pm
Location: Switzerland

Re: Creating Normal Maps from Displacement Maps

Postby t_3 » Fri Apr 19, 2013 11:06 am

t_3 Fri Apr 19, 2013 11:06 am
linvanchene wrote:Is the geometry loaded completly in the VRAM?
yes.

linvanchene wrote:Or are there mixed solutions possible where the geometry is loaded from the RAM?
in theory yes; cuda can use shared system ram. in practice this would mean, octane would render about a factor N+ slower, since the memory bandwith between gpu and system ram is about a factor N slower than the bandwith between gpu and vram. where N is a number from 10 to much higher; so i doubt we will see this anytime soon.

linvanchene wrote:For octane for ds:
Are the geometry and textures actually loaded twice in the octane plugin for DS?
One time in the CPU for the DS viewport and one time in the VRAM for the octane Plugin?
no. thew viewport is just the rendered image grabbed from vram. the plugin stores nothing except plain node parameter data (no textures, no geometry). the only thing it needs to take from system ram is the amount of bytes to display the rendered image in the viewport (x pixels * y pixels * 4 in bytes - read below about the vram need of rendered image).

linvanchene wrote:Basic question:
When using GPU based render engines is loading actual modeled geometry in some cases more memory efficient than loading a model with normal or bump maps?
afaik no. fore a given area, storing additional triangles does always need more memory than storing height information by using a grayscale color map.

linvanchene wrote:Can someone point me in the direction of a forum thread / webpage where VRAM and how its size is calculated is explained?
don't know one; it is easy to tell for textures:
- a grayscale image needs x pixels * y pixels in bytes
- a color image needs x pixels * y pixels * 4 in bytes

note: the plugin/octane only uses a texture map once per type; if you use the same image in 10 slots while maintaining the same type (floatimage vs. image) it'll need vram only once. if you mix types, octane will need vram once per type. the way how octane finds out about multiple uses of the same texture map by the way is the path on disk; using the very same image map from different locations will also require more vram.

in addition the render film (aka output image) - as long as stored in vram...
- needs x pixels * y pixels * 20 in bytes
(this is because the render film holds not only 4 bytes of color data, but additional data need to calculate tonemapping, post processing, ...)

you can neglect node parameter data; this ranges in kilobytes.

the geometry itself would need to be counted; and the plain number of triangles don't exactly result in the vram size needed, since octane does something called voxelizing, where at least i don't know a formula to calculate the real need. hopefully we see some additional stats from the octane plugin version anytime soon, so it would be possible to at least show those numbers when voxelizing is done.

if you like to do some research yourself, you may use the standalone - there you will get all those numbers, including geometry data ram usage...
The obvious is that which is never seen until someone expresses it simply

1x i7 2600K @5.0 (Asrock Z77), 16GB, 2x Asus GTX Titan 6GB @1200/3100/6200
2x i7 2600K @4.5 (P8Z68 -V P), 12GB, 1x EVGA GTX 580 3GB @0900/2200/4400
User avatar
t_3
 
Posts: 2871
Joined: Tue Jul 05, 2011 5:37 pm

Re: Creating Normal Maps from Displacement Maps

Postby linvanchene » Fri Apr 19, 2013 1:07 pm

linvanchene Fri Apr 19, 2013 1:07 pm
edited and removed by user
Last edited by linvanchene on Sat Sep 06, 2014 11:50 pm, edited 2 times in total.
User avatar
linvanchene
Licensed Customer
Licensed Customer
 
Posts: 783
Joined: Mon Mar 25, 2013 10:58 pm
Location: Switzerland

Re: Creating Normal Maps from Displacement Maps

Postby t_3 » Fri Apr 19, 2013 1:12 pm

t_3 Fri Apr 19, 2013 1:12 pm
linvanchene wrote:Thank you so much for all the detailed information!

You cleared up even some additional confusion
glad to help :)
The obvious is that which is never seen until someone expresses it simply

1x i7 2600K @5.0 (Asrock Z77), 16GB, 2x Asus GTX Titan 6GB @1200/3100/6200
2x i7 2600K @4.5 (P8Z68 -V P), 12GB, 1x EVGA GTX 580 3GB @0900/2200/4400
User avatar
t_3
 
Posts: 2871
Joined: Tue Jul 05, 2011 5:37 pm

Return to DAZ Studio


Who is online

Users browsing this forum: No registered users and 11 guests

Fri Apr 26, 2024 7:07 pm [ UTC ]
cron