User Tag List

Page 4 of 5 FirstFirst ... 2 3 4 5 LastLast
Results 31 to 40 of 46

Thread: Shader for lighting direction

  1. #31
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shader for lighting direction

    Nope, it's a normal map, the colours are encoded surface "normal" vectors. blue=Z=outwards, which is why it's mostly blue, and interesting colours on the sloped edges.

    They're very common in 3D games as a way of increasing the visible detail of a surface without using more polygons.

    If you're seeing that when you run it you either aren't using HWA MMF2 or aren't installing the shader (I don't know if you need to to view the example?) or don't have a pixel-shader 2.0 capable graphics card.

  2. #32
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Shader for lighting direction

    [size:17pt][color:#FF0000]FANTABULOUSLY PERFECT DYNASOFT![/color][/size]

    I've acquired a plug-in for photoshop that creates normal maps and once again I can't say enough to you for your quality work!

  3. #33
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shader for lighting direction

    Quote Originally Posted by Dynasoft
    If you're seeing that when you run it you either aren't using HWA MMF2 or aren't installing the shader (I don't know if you need to to view the example?) or don't have a pixel-shader 2.0 capable graphics card.
    Yeah I'm not stupid.

    But alright it seems nice, I might learn more about this later as it seems really neat.

  4. #34
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Shader for lighting direction

    Now, is it possible to create a shader that *casts* a shadow in this same manner? An easy way to have objects with drop shadows for instance. Right now, I create a shadow object and always keep it under my objects, so they appear to be floating just off of the background. This is tedious sometimes, but works.

  5. #35
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shader for lighting direction

    I'm afraid not.
    In general, pixel shaders that read more than a few pixels from the original image are really slow, and with PS3.0 not working in my copy of MMF2 HWA (is this a global problem?) reading more than a few pixels goes over the instruction limit anyway.
    A pixel shader that generates information (like casting a shadow) is just too expensive. Though I'd love to see someone do it

  6. #36
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Shader for lighting direction

    yeah, I'll just stick with my tried and true method for now. Thanks!

  7. #37
    Clicker Fusion 2.5Android Export ModuleiOS Export Module
    Fusion 2.5 (Steam)HTML5 Export Module (Steam)

    Join Date
    Nov 2007
    Location
    Canada, BC
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shader for lighting direction

    i think looki's pack has "Shading" if thats what you looking for, no clue how resource heavy it is though

  8. #38
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shader for lighting direction

    Indeed, he added an effect called "Shade", "for drop shadows". Not sure what it actually looks like, and I can't test it now. Give it a go.

  9. #39
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jul 2006
    Location
    Denmark
    Posts
    1,812
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Shader for lighting direction

    Yeah it adds shades to objects, basically. It's really neat and I recommend it, but add it on a layer instead, or you'll have the object size limit on it.

  10. #40
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module
    Tuna's Avatar
    Join Date
    Feb 2008
    Location
    Central Texas
    Posts
    1,853
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Shader for lighting direction

    MechaBowser, can you explain how to add it on a layer? I'm not sure how to do that. Thanks!

Page 4 of 5 FirstFirst ... 2 3 4 5 LastLast

Similar Threads

  1. Lighting for IOS app
    By Shadeve in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 30th May 2013, 05:32 PM
  2. Tilemap Pixel Shader (aka "texture atlas" shader)
    By MuddyMole in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 10th May 2013, 08:21 PM
  3. 3D lighting shader (2D Normal Mapping) w. 3 lights
    By Anders in forum Hardware Accelerated Runtime
    Replies: 24
    Last Post: 25th February 2010, 07:51 PM
  4. RTS "Lighting" possible?
    By Doc4 in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 2nd March 2007, 08:21 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
  •