Kultie

Members
  • Content Count

    3
  • Joined

  • Last visited

About Kultie

  • Rank
    Newbie
  • Birthday 02/17/1996

Profile Information

  • Gender
    Male
  • Interests
    Game Development, Graphical development

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. God i'm obviously a retard for not understand this. When you say 4.8 has full screen mode and i blindly follow that without reading more in documents. Thank you so much !!!!
  2. Thanks, I'm fairly new to PIXI and still playing around with it. I Better remake the code base to match it with the 4.5.4 version since I don't think RMMV will update the PIXI version soon. For 4.5.4 using filterArea data and i get the perfect result!!! Still not figuring out how to use 4.8 tho, after I update the library to 4.8 I still have to use pos/filterArea 😕. So i've decided to keep version 4.5.4 for now and when ever i need to do with coordinate on screen like (.5,.5) i'll use `screen's coordinate/filterArea`
  3. Hi, so currently i'm working on personal game with RPG Maker MV and i'm trying to recreate vision limitation with shader, some thing like this This example is created with PIXI 5.2 and working with mouse position After this i'm went back to RPG Maker MV(Using Pixi 4.5.4) and use the shader code, alter it a bit and got it's kinda working with position (0,0) But when I change to position (0.5,0.5) - hopefully the light will go to center of the screen it got offset like this: This is what I come up with shader code for this effect precision mediump float; const float PI = 3.1415926535; varying vec2 vTextureCoord; uniform sampler2D uSampler; uniform vec2 iResolution; uniform float iTime; uniform vec2 pos; vec4 limitVision(vec2 st, vec2 pos, float radius){ float pct = 1. - smoothstep(0., radius ,distance(st,vec2(pos))); return vec4(pct); } vec4 norctunalVision(vec2 st, vec2 pos){ vec4 col = limitVision(st, pos, .2); vec4 tex = texture2D(uSampler,st); vec4 result = mix(col,tex,col.a); vec4 tex2 = texture2D(uSampler,st); //sampler texture again for out of vision effect tex2.rgb /= 5.; // Alter color result = mix(result,tex2,1. - col.a); //Mix them together return result; } void main(){ vec2 uv = vTextureCoord; vec4 col = norctunalVision(uv, pos); gl_FragColor = col; } Are there any difference between filter of PIXI(4.5.4) inside RMMV and standalone PIXI(5.2) or some kind of matrix calculation for them? EDIT: Just downgrade my standalone PIXI 5.2 down to 4.5.4 and have same issue, so this maybe a PIXI issues not by rpg maker mv -------- So what difference between the vTextureCoord or some matrix calculation between PIXI 4.5.4 and 5.2?