Search Result

  • RE: Make mirror and reflections

    I have to be honest... trying to do this without using shaders to generate a mirrored reflection is a ton of work. You need to listen out for character animations, their positions, sort out offets & so on. Only having to deal with a characters idle/walk animations is one thing, but if you want to also include random animations/interaction animations, etc then things will get complicated real fast.I'm not sure if you are in our Discord server, but Caligari Marte has shared a bunch of shader stuff on there in the past & I believe one of the things was a reflection shader script. You can always join & @ping them about it.

    by afrlme, 5 years ago

    13
    0
    afrlme 5 years ago
  • RE: Several questions: character with gamepad + shader with texts + 3d environment + camera

    the bottom most & top most way points are the same values as the middle two, just their for safety or it's possible that I want from above/below a specific y-coordinate for the character to always be scaled at a certain value - mostly though, it's just a safety habit that I use to enforce that the characters below & above x point don't randomly change to a different scale value.If you are rotating the 3D character/object then you are in effect rotating the camera. I think you would just have to think in inverse directions though, so that right it left & down is up, etc. & you still have the scene camera/shader viewport camera for panning horizontally/vertically & zooming in/out.

    by afrlme, 5 years ago

    25
    0
    afrlme 5 years ago
  • RE: Several questions: character with gamepad + shader with texts + 3d environment + camera

    I guess if the environment was imported as a 3D object/character it might work as you could rotate that around - like Nige has done with his 3D inventory object, but performance wise... who knows. You can control the camera position/angle per 3D thing I believe, but the scene camera itself is 2D only, you can only pan/zoom.In regards to the way system - you could create 2 different way systems. One with way points & one without way points. You could listen out for input from gamepad/keyboard + mouse to set a condition to tell the game that x input is now primary & change way system based on that. In regards to scaling, you should ideally be creating the scale values outside of the way system border anyway. Vertical scaling works best. See my screenshot (below).https://i.gyazo.com/277abf44ea5ecf4dab922eedb4d28f2e.pngI'm not really sure about the text thing & shaders. I don't really mess around with shader side of the engine all that much. As an alternative you could use images or Lua draw instead of built in display texts.

    by afrlme, 5 years ago

    25
    0
    afrlme 5 years ago
  • Several questions: character with gamepad + shader with texts + 3d environment + camera

    Hi everyone!Just finished my submission for Adventure Jam 2019. I invite you to have a look if you're curious. Here's a video and the link to the Game Jolt page:https://gamejolt.com/games/mvem_twotio/418477https://youtu.be/hcfRoQs60kcI would like to continue this project and add several improvements, but there are several things that I don't know to do, and it would be great if you could help me.Here's my list of questions:   1/ Character with Gamepad:In my recent tests, I had no problem to setup the VS5 script to play with keyboard/gamepad and it's working quite well.My main problem is that the character follows too much the waypoint, which is not very natural with this gameplay.Is it possible to "disable/dissociate" the waypoint from the main character in order to allow the player to move freely (but still have the changes of scale, and still keep the way borders)?   2/ Shader with text:During my cutscenes I wanted to zoom on the characters with the shaders. However I am using specific code for the texts, and as a result as soon as the zoom is activated, the text is not at the correct position anymore.I know that that there is a code to exclude interfaces from shaders, I am using it and it works well.Would there be also by chance a code to exlude text? I have this code but it doesn't do anything:eShaderExcludeTextsAndCursor 2   3/ 3D environment:This is a much more complicated question. The 3d characters are working very well in VS and I am very happy, and it would seem that there is also the possibility to use 3d objects (which I didn't need in my demo for Adventure Jam). Is it possible to create a 3d environment? I mean something very simple (like a sphere or box) where the character could be located on a plane surface and walk?   4/ Camera:This question is related directly to the previous one. If I can put my character in a sphere or box, walking on a plane surface: is it possible to change the camera (rotate it around the character)? And increase the distance of the camera from the character? I think that this is quite complicated however, and that an engine like Unity would be more apropriate, but on the other hand I like the simplicity and stability of VS and would love to continue to use it.Thanks in advance, I'm looking forward to read your messages of help, and try to include new features in my project!

    by Simon_ASA, 5 years ago

    25
    0
    Simon_ASA 5 years ago
  • Build missing shaderUniform textures from dynamic paths

    I've been playing around with shaders and have normal mapping working pretty well -- at least as long as I'm running within the VS Editor. However, when I create a build and test there, it seems to not include the necessary textures.The problem seems to be that the build process only includes hard-coded texture paths, e.g. this works fine when I run my build: graphics.shaderUniform(shader, "_t_normal", "vispath:frame01_n.png")However, when I construct the path to the texture dynamically at run-time, the texture is not included in the build and hence my effect falls apart. Even something as simple as this makes it not include the texture in the build:  graphics.shaderUniform(shader, "_t_normal", "vispath:frame01_n" .. ".png")Looking into the generated report.txt I can confirm that my texture is indeed not included in the build here.I've tried including the texture in an unused animation on my character, in which case it does appear to be included in the build according to report.txt, but I can't seem to access it at the expected path to pass it to my shader.Is there any way I can force the build process to include specific textures? Preferably via Lua so that I can just include a big directory tree of images?This is with VS 5.0.9 on Mac OS 10.13.6.Thanks!

    by propapanda, 5 years ago

    4
    0
    propapanda 5 years ago
  • RE: Problem with flashlight in VS 5?

    I'm still experimenting with shaderlamp ... At the moment it seems generally not possible to connect shaders to a fixed position in the scene or an object / character. The screen size of my game is 1920x1080 and the scene is almost twice as big. If I want to place the beam of a lamp, the light moves along when scrolling. That means the beam stays in the same place on the screen but my scene with the lamp moves away from it. Can I use this shader for such purposes at all (lamps, sunlight, flashlights, ...)?

    by steve-12, 5 years ago

    10
    0
    steve-12 5 years ago
  • RE: Yet another reflections query

    I have written a Variation of my Script to hopefully suit your Purpose. :)https://drive.google.com/open?id=1gOrPJx9jkk_0-F10gzg3ziXzi8Qu6gc1Put "Lua_MirrorShaderScripr" into your Project as a Lua-Definition-Script, and put "Shader_MirrorBehindPlayer" into your Projetc as a Shader, with the Name "MirrorBehindPlayer" so the Script can recognize it. If you just follow the Instructions in the Comments (behind -- in the Lua-Script, and behind // in the Shader), then you will certainly know what you have to change to make it work for your Scene and Character. Unfortunately, I currently had Issues with letting Visionaire recognize and apply these Values automatically, so you will have to put them in manually, I am afraid.Hope this helps. :)

    by caligarimarte, 5 years ago

    6
    0
    caligarimarte 5 years ago
  • RE: Yet another reflections query

    Maybe you will get lucky & one of the people I mentioned will see the post. I know CaligariMarte has posted a reflection shader script before. They shared some screenshots in another post recently which I believe shows a reflection done by shaders.https://www.visionaire-studio.net/forum/thread/get-characters-current-animation-frames-size-position/2/I wish I could wrap my head around shaders, but it's mostly just a bunch of random looking gibberish & math - the latter of which I'm not very good at.

    by afrlme, 5 years ago

    6
    0
    afrlme 5 years ago
  • RE: Yet another reflections query

    I'm afraid only Simon &/or CaligariMarte are about the only people on this forum that could help you out with the shader reflection side of things.I know that I would be able to figure out an animation/Lua script approach to reflections, but like you said... it would require a tedious amount of work. Here's an example of something you could do: if you setup a character for reflections, you could probably create an event handler to listen out for when a particular condition is true & for when you play an animation that is linked to the playable character & then have it play that same animation for the reflection character. But as you said, it would still be a tedious amount of work.

    by afrlme, 5 years ago

    6
    0
    afrlme 5 years ago
  • Yet another reflections query

    Hi, I'm trying to make a bathroom mirror reflect a character.I searched the forum, got a bunch of hits and tried all the code/scripts/(whatever that gibberish is) in all manner of places and ways, but couldn't figure out how any of it is supposed to work.I also tried to make a second version of the character, flipped ALL their sprites and assigned them to the opposite directions etc - it took AGES but was a massive waste of time since I can't get them both to just move along at the same time (not to mention idle/ blinking animations won't play at the same time etc - but I can fudge that for the single scene.)Could someone who actually knows how to write shader script or lua code please explain in basic terms what I'm supposed to put where to use any of the shader stuff floating around (ie, do I copy paste it into the shader section? If so, what tab? Then what do I do to make it show up? etc etc etc) - OR what I could do to make a manually drawn reflection character actually walk along, or animate the same as the original, behind a semi transparent object "window" to make an illusion of a mirror.All I'm trying to do is make a simple rectangular mirror, with another, slightly transparent copy of my character a little offset in it, and in all honesty it seems like it's way harder than it needs to be to figure out how.Please excuse the rubbish picture, but here is an explanation of what I want to achieveBear in mind I'm an absolute turbo-tard when it comes to any kind of scripting and coding!I've managed to get a few rooms done, with some inventory and an unnecessarily complicated interface setup etc, but things like this mirror stuff, or getting the background sound to carry across scenes, or having the black fade out not be a yucky little box in the corner, but rather the FULL screen - that's all kicking my ass.Sorry for the blog post!

    by edmund, 5 years ago

    6
    0
    edmund 5 years ago