User Tag List

Page 2 of 4 FirstFirst 1 2 3 4 LastLast
Results 11 to 20 of 34

Thread: New 3d Perspective Shader

  1. #11
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    1,574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Wodjanoi View Post

    btw @NaitorStudios - did you actually receive the test archive with gimp files etc. from my latest shader topic?
    Yes, but I've been extremely busy with 5 paid projects...
    I often do a port or something that doesn't require thinking too much whenever I'm too burned out.
    In all cases, from what I've seen converting LCh seems really messy, I'm not sure if that would perform well enough for it to be applied to multiple instances.
    Image editing softwares have these kind of things cause they don't need to render 60 times per second or more, so realtime speed isn't really a concern for something like Gimp or Photoshop...

    Found these snippets of code about the conversion:
    https://www.chilliant.com/rgb2hsv.html

  2. #12
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLC

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,553
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Sorry NaitorStudios, you're going to hate me, but I've updated the shader...

    Download: https://1drv.ms/u/s!Atq7cUIJ7uextFjh...aLfnH?e=bdH629 (version 1.1)

    Changes:
    + Commented all shader code (in case anyone's interested).
    + Should now work properly with non-square textures.
    + Added adjustable ambient lighting and a single configurable directional light source.


  3. #13
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    1,574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Looks fantastic!
    I've already got a half working DX11 port, seems like the lighting color is causing some issues there, it gets red-ish and doesn't seem to react to the rotation, I should be able to fix it tho.

  4. #14
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleFirefly 3D Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    fnkycoldmadeanr's Avatar
    Join Date
    Jul 2017
    Location
    Melbourne, Australia
    Posts
    312
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by MuddyMole View Post
    Not sure why there are visual artifacts at the edges...
    Due to the way the gpu samples pixels in blocks of 4 and texture filtering.
    Changing "MinFilter/MagFilter = Linear" to "Point" removes the artifacts.
    Here's a good video/channel
    https://www.youtube.com/watch?v=1HTMoCaY0xw

  5. #15
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    1,574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    But would also remove the bilinear filtering...
    The texture would be "shimmering"

  6. #16
    Forum Moderator Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleFirefly 3D ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Mac Export Module (Steam)Universal Windows Platform Export Module (Steam)Firefly 3D Module (Steam)
    NaitorStudios's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    1,574
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Here's the DX11 Port
    Also fixed the light intensity that wasn't connected to anything...

    Edit: Removed the unnecessary parameter.
    Attached files Attached files

  7. #17
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLC

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,553
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by NaitorStudios View Post
    Here's the DX11 Port
    Also fixed the light intensity that wasn't connected to anything...
    Oh, I just forgot to remove the light intensity parameter from the xml - I was testing it with that first, before swapping to a float4 colour instead. There's no reason to have both, since a lighter colour is the same as a more intense light anyway (unless you want super intense lights, I suppose).
    Cheers though

  8. #18
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    aenever's Avatar
    Join Date
    Jun 2013
    Posts
    1,690
    Mentioned
    34 Post(s)
    Tagged
    0 Thread(s)
    Just wondering like a playing card, is there a way to have two different sides to a rotating card (front and back)?

  9. #19
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLC

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,553
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by aenever View Post
    Just wondering like a playing card, is there a way to have two different sides to a rotating card (front and back)?
    I've modified the shader to add an image parameter for the reverse side of the object. Lighting still only works correctly for the front side (this is proving hard to fix), so if you're using both sides, you will need to disable it by setting the ambient light to pure white, and the directional light to pure black.

    Download: https://1drv.ms/u/s!Atq7cUIJ7uextFlv...BbQ9g?e=R6uFKz (version 1.2)

  10. #20
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLC

    Join Date
    Jul 2008
    Location
    UK
    Posts
    1,553
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    I do believe I've finally cracked the lighting problem!



    Just need to fix up the code a bit (it's full of hacks and the remnants of failed attempts right now lol), and then I should be able to provide a link to the file soon...

Page 2 of 4 FirstFirst 1 2 3 4 LastLast

Similar Threads

  1. Is there a shader likes the Perspective obj ?
    By callofAS in forum Fusion 2.5
    Replies: 2
    Last Post: 8th June 2020, 10:28 PM
  2. Replies: 0
    Last Post: 18th October 2018, 07:07 AM
  3. Replies: 0
    Last Post: 7th October 2016, 05:07 AM
  4. Perspective shader issue - incorrect distortion
    By Ramses in forum Shader Development
    Replies: 5
    Last Post: 11th August 2016, 08:23 PM
  5. looking for offset shader, underwater shader, etc
    By neorocker7 in forum Fusion 2.5
    Replies: 9
    Last Post: 18th May 2015, 03:03 PM

Posting Permissions

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