Menu
Login
Language
DE EN FR ES IT CZ

Search Result

  • RE: SHADER Toolkit. Discussions, examples and other cool stuff!

    Simon could you please break down what you've written into clean syntax so we can understand what you have just written?I get the first, second & third lines. Not sure why you added both shaderAdd & shaderRemove effect though. Rest is a little unclear.@ Unreal: game.ShaderExclude is just for preventing the shader from affecting certain things like interfaces, the mouse cursor, displayed text etc.Let's say you applied shader lighting effects (spotlights) to various places of your scene which would automatically make certain parts of your scene dark, but without excluding certain things from the shader, the mouse cursor & text etc would also end up light/dark/tinted in certain parts of the scene, meaning you might not be able to see them properly.If Simon breaks down the syntax for applying shader effects to objects for me then I might create a function that simplifies it, when I get a bit of time.

    by afrlme, 12 years ago

    51
    0
    afrlme 12 years ago
  • RE: SHADER Toolkit. Discussions, examples and other cool stuff!

    Yep, possible, but depends on the effect.Most of the additional effects can be used like this:[code]local eff="ripple1"shaderAddEffect(eff)shaderRemoveEffect(eff)shader_effects[eff].num.strength=1bind(eff, "time", field("shader_iTime"))shaderSetOptions({{shader = shader_effects[eff].num(), comp_dst=5, comp_src=4 }}, 1)Objects.target_object.ShaderSet = 1[/code]Change the target_object to your objects name an ripple1 to the desired effect. Should create a nice ripple, good for some lake.The other effects require some rework to the script. Blur and glow are not possible with the current version, don't know if I do that in the future.

    by SimonS, 12 years ago

    51
    0
    SimonS 12 years ago
  • RE: Snoop Animation

    [url=http://wiki.visionaire-tracker.net/wiki/Hotspots_(h2)]http://wiki.visionaire-tracker.net/wiki/Hotspots_(h2)[/url]New .ved & tutorial created the day. Hold space to show hotspot animations & release space to hide hotspot animations. All scene objects can be interacted with via the left mouse button.P.S: sorry in advance if it all looks a bit dark. I was also messing about with some shader lighting effects - well more trying to wrap my head around them. It looked ok in my laptop monitor but a bit dark on my secondary monitor.

    by afrlme, 12 years ago

    20
    0
    afrlme 12 years ago
  • RE: Shader Effect

    You can already do that with lightmaps or the CharacterTint data structure table which allows you to tint the character. Or do you mean in a more dynamic way where character lighting is affected based on characters position from a light source?The latter would probably be done via normal maps/depth maps which we currently don't support.I suppose you could use the shader spotlight effect to place multiple light sources around a room which will render the rest of the scene darker in places that the light does not extend which would also affect your character as he passes through light & darkness.I've not tried doing anything like that yet, but I assume it would probably look ok.

    by afrlme, 12 years ago

    6
    0
    afrlme 12 years ago
  • Shader Effect

    Hi,Can i use the shader effect only for the character?e.g. when is dark outside, change the lightness of the character.Thanks

    by ke4, 12 years ago

    6
    0
    ke4 12 years ago
  • RE: SHADER Toolkit. Discussions, examples and other cool stuff!

    A'llo all,Well... I'm pretty happy with this .ved example of [url=http://wiki.visionaire-tracker.net/wiki/ShaderGlow_(CMS)]shaderGlow[/url]. Instructions are in the included readme.txt file. Don't forget to check out the [url=http://wiki.visionaire-tracker.net/wiki/Compiled_Index_of_Lua_Scripts_for_Visionaire_Studio#Shader_Toolkit_Functions]shader function[/url] examples on the wiki [url=http://wiki.visionaire-tracker.net/wiki/Compiled_Index_of_Lua_Scripts_for_Visionaire_Studio]script index[/url] page. I've included a working .ved example in most of the pages I've created so far; apart from one or two like shaderAddEffect because there are loads of effects to show but I've a fun idea for showcasing that one.Also quick note: the [url=http://wiki.visionaire-tracker.net/wiki/Shader_(CMS)]shader toolkit[/url] script has been uploaded the day, so please make sure you are using the correct one as shaderNoise has been fixed by SimonS & I modified the shaderGlow function so that you can now transition between glow/radius values over x amount of milliseconds.Regards,Lee.

    by afrlme, 12 years ago

    51
    0
    afrlme 12 years ago
  • RE: Character head angles towards cursor?

    hmm not sure it could be done exactly as you have it in that game but you could check add the head as a scene object & use a bit of math to position & scale it. Since VS 4.1 you can now rotate & scale objects & I already wrote a script that can get the angle between 2 points which you could use to control the rotation. You would need 2 objects for the face facing one way & another for the other direction, or 1 object & 2 animations.I believe it is possible to a degree. By the way, your game looks pretty whacky.Question: will the character scale up & down or will the scale be fixed? The reason I'm asking is because if the character scales then it will require additional math to determine the position the head should be. Also quick note: positioning of animations, objects & images is done with the top-left pixel in Visionaire Studio but character position is based on the animation/character center you add to each of the character animations.P.S: I noted the headlamp was a petzl. mine is a bit worse for wear. feckin' rubber button came off & now it's hard to turn on/off.P.P.S: just finished the demo. Was pretty funny in a morbid sort of way. Graphics were very strange & surreal. By the way you can now achieve various lighting effects with Visionaire Studio 4.1 such as spotlights & flashlight, saturation & much more since Simon added openGL 2.0 shader support.http://wiki.visionaire-tracker.net/wiki/AlignChar_(CMS) & http://wiki.visionaire-tracker.net/wiki/AlignObj_(CMS) - alignment scripts I was talking about.

    by afrlme, 12 years ago

    15
    0
    afrlme 12 years ago
  • RE: Shader Toolkit and Load/Save

    It's the current shader toolkit script Chris. It's returning loads of errors for me too.tv1 desaturates screen & adds 1 pass of noise/old movie fxtv2 makes screen somewhat darktv3 & tv4 1 pass then stays that wayetc...shaderGlow seems to work but kept returning a warning/error.Not tried the rest yet.

    by afrlme, 12 years ago

    12
    0
    afrlme 12 years ago
  • RE: Shader Toolkit and Load/Save

    OK - New problems. :DThe 'white out' is fixed, and I already have the systems in place to reapply the shader effects....BUT! None of the shaders are animated. They apply, but don't have any sort of motion/update. For example, if I apply the lighting it just makes the screen black, or when I apply the ripple effect it warps the screen just once, with the normal games motion happening 'underneath' the effect.shaderAddEffect("tv1") just makes the screen grey scale (no noise or static) etc.

    by Pyke, 12 years ago

    12
    0
    Pyke 12 years ago
  • RE: Loading clouseup shots in a scene when an area clicked...(what is the best way?)

    Yeah my thoughts were to make background & objects at double the intended resolution & then zoom out by 100% for default view size & then zoom back in to default size when you want to zoom in.Actually the shader zooms quite well up to a certain degree without compromising the quality of the images. Test it on a scene with a zoom value between 1 & 2 & see what you think.

    by afrlme, 12 years ago

    6
    0
    afrlme 12 years ago