Menu

#1 Portability improvements

open
nobody
None
5
2007-07-05
2007-07-05
Alex
No

Here's a patch that should make Sler much more portable for everyone. I removed all the hard-coded paths, and did things like appending to the existing shader search paths, etc.

Discussion

  • Alex

    Alex - 2007-07-05

    The patch

     
  • qew

    qew - 2007-07-16

    Logged In: YES
    user_id=1488496
    Originator: NO

    1.) Are you sure that forward slashed work for 3Delight on Win32?

    2.) I've decided that searchpath in RIB templates of Sler shouldn't include default path of a renderer because its own shaders may override shaders you are making in Sler. This is simpler than observing overridre existing shader your new shader or not. Sler for making new shaders not for final rendering =) And I think that searchpaths must be replaced with "$(SHADERS_DIR):$(TEMP_DIR)" and not with "$(SHADERS_DIR):$(TEMP_DIR):&" you suggest.

    Comments? =)

     
  • Alex

    Alex - 2007-07-22

    Logged In: YES
    user_id=831977
    Originator: YES

    > 1.) Are you sure that forward slashed work for 3Delight on Win32?
    Yes, I use win32 primarily.

    > 2.) I've decided that searchpath in RIB templates of Sler shouldn't
    include default path of a renderer because its own shaders may override
    shaders you are making in Sler. This is simpler than observing overridre
    existing shader your new shader or not. Sler for making new shaders not for
    final rendering =) And I think that searchpaths must be replaced with
    "$(SHADERS_DIR):$(TEMP_DIR)" and not with "$(SHADERS_DIR):$(TEMP_DIR):&"
    you suggest.

    As the "&" character is last, it will use the renderer's shader path after all the user paths have been searched, so there will not be such a problem of it finding the wrong shaders.

     
  • qew

    qew - 2007-07-22

    Logged In: YES
    user_id=1488496
    Originator: NO

    Even if & is a last, default shaders may be used instead when compilation will fail.

     
  • Alex

    Alex - 2007-07-23

    Logged In: YES
    user_id=831977
    Originator: YES

    > Even if & is a last, default shaders may be used instead when compilation
    will fail.

    In that case, omit the `&' and provide all required shaders with the Sler distribution. The only reason I added it was because I saw you had a hardcoded path to your 3Delight installation. If standard shaders (what about spotlight, etc?) are unnecessary, make sure you provide all that is needed, and we can completely avoid the need for `&'.

    That seems reasonable to me.

     
  • qew

    qew - 2007-07-24

    Logged In: YES
    user_id=1488496
    Originator: NO

    I've already done this. See in CVS.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.