Page 1 of 3 123 LastLast
Results 1 to 15 of 36

Thread: Relief Mapping

  1. #1
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,896

    Relief Mapping

    Hi,

    Added a Relief Map Node plugin (Win32):
    http://perso.orange.fr/dpont/plugins...efMapping.html

    This is a demo, so only basic version of Relief Mapping
    has been ported as a LW 9.0 node with some limitations.



    Regards,
    Denis.
    Last edited by dpont; 11-11-2006 at 05:24 AM.

  2. #2
    Working Monkey StereoMike's Avatar
    Join Date
    Jul 2003
    Location
    Luebeck, Germany
    Posts
    1,931
    oh boy, you're great. I read about it, cool you got it done for LW.
    It's something like a 3D bumpmap, right?

    Mike
    If you are not paying for it, you’re not the customer; you’re the product being sold.

  3. #3
    Working Monkey StereoMike's Avatar
    Join Date
    Jul 2003
    Location
    Luebeck, Germany
    Posts
    1,931
    btw, the link seems to be broken, it refers to a mirrortool.
    If you are not paying for it, you’re not the customer; you’re the product being sold.

  4. #4
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,896
    Link has been fixed, yes kinda 3D bump/normal.

    Denis.

  5. #5
    How about 64 bit version?

  6. #6
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,896
    Can't promise, but a X64 or Mac are not impossible.

    Forgot to credit Scott (aka RedBull) for his thread
    in this forum :
    http://www.newtek.com/forums/showthread.php?t=45053
    there are some other infos, links and examples.
    And Tabo who made a first (temporary) shader for LW.

    PS: If Jarno would send me the LW weighting formulae, this could
    help me to do UV procedural Relief...Hope this is not an industrial secret :-)

    Denis.

  7. #7
    Heir to the Throne RedBull's Avatar
    Join Date
    Apr 2005
    Location
    Underground
    Posts
    1,608
    Thanks for all your hard work on this shader Denis, it's not an easy shader to make in lightwave due to all of those workarounds, but it was interesting to see your progress over the various builds, You're a credit to the lightwave community.

    This shader is slightly different to the one i spoke about in the aforementioned thread, it's slightly restricted by a few quirks as Dpont mentioned but Denis is aware of them, and he also improved on some of the things and continues to do so.

    Be warned pumping many nodes into nodes into the relief map, will
    slow it down and often cause bad rendertimes.
    It's a shame i cant have bump/normal similtaniously in LW.

    It definately a helpful/cool node, but choose your usage wisely,
    as often bump, normal, and even displacements can give adequate
    results and at much better rendertimes in comparison to relief in many cases.
    (But not always) I'll post some comparisons between them soon.

    I hope that 9.2+ and an Fprime update will allow realtime relief soon.
    (or Viper and thumbnail previews can at somestage be multithreaded)

    But otherwise have fun with another great free LW node from Denis.
    (please post some examples of your work with it.)

  8. #8
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,896
    Have updated Relief Map Node,
    fixed preview update for node input,
    but Depth image mapping still need a render to show Relief Mapping.

    Denis.

  9. #9
    Registered User tyrot's Avatar
    Join Date
    Mar 2006
    Location
    in lights
    Posts
    2,157
    dearest DPont

    is there any chance to have this shader for Surface editor? We still stable at 8.5..

    Best

  10. #10
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,896
    Honestly not, sorry, theorically main code could be
    rewrite as a shader plugin, but with less functionnality,
    and I said this is a demo because there are some things
    to improve, around some other algorithms we would study.
    Hope you will upgrade to 9.0 soon.

    Denis.

  11. #11
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,896
    Sample node tree to plug 2DImage map to Relief Map
    if you don't have embedded tangent normal map + depth alpha
    (you can't use UV here)
    Click image for larger version. 

Name:	2Dimage+ReliefMap.jpg 
Views:	778 
Size:	93.7 KB 
ID:	38846

    Color is used for depth data (instead of alpha for procedural).

    In actual version, you need to have a node color input,
    to use scalar input/output.

    Denis.

  12. #12
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,896
    You could use Luma also...

    Denis.

  13. #13
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,896
    Relief Map node has been updated, minor changes:

    -Scalar input worked only if a Color input was connected.
    -"Self-Shadows" amount can now be decreased.
    -Some inputs have been renamed (Alpha could come also from Luma,
    so renamed it as "Height" avoids some confusions).


    Denis.

  14. #14
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,896
    Relief Map node has been updated:

    -Procedural texture or Image map node input was distorted on closer and/or shorter view angles, fixed.

    Thanks to Scott for bug report.

    Denis.

  15. #15
    Member
    Join Date
    May 2006
    Location
    France
    Posts
    3,896
    Updated Relief Map node:
    -Ray direction was not accurate enough for 3D Procedural texture Input.

    Sample with 3D Marble node as input
    (alpha->Height , bump->Bump, color->Color)
    and animated Max Depth.

    Click image for larger version. 

Name:	test_RM_11.gif 
Views:	891 
Size:	298.0 KB 
ID:	38911

    Denis.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •