Search found 1695 matches

by Kjell
Fri Mar 22, 2019 12:46 pm
Forum: General discussion
Topic: Playing with threejs.org examples
Replies: 5
Views: 76

Re: Playing with threejs.org examples

Hi Ats, I tried to switch computer, reinstall ZGE from scracth, and tried several zgeprojects that were working perfectly before, such as FBO.zgproj or Convolution.zgeproj ... As i mentioned in my recent post in the Blur thread, those examples are outdated. Back in 2009 only GLSL version 110 and 120...
by Kjell
Thu Mar 21, 2019 8:04 pm
Forum: Your projects
Topic: OMEGANAUT
Replies: 74
Views: 17184

Re: OMEGANAUT

Hi Ats,

Just tried a official wired Xbox 360 controller on a laptop running Windows 10 ( 64-bit ) version 17763.379 that only has USB 3.0 ports and it works just fine in ZGameEditor.

K
by Kjell
Thu Mar 21, 2019 12:21 pm
Forum: General discussion
Topic: Playing with threejs.org examples
Replies: 5
Views: 76

Re: Playing with threejs.org examples

Hi Ats, Can you give me a hint about what's going on? Your vertex shader is incorrect. When you use Compatible as GLBase you should use the built-in "gl_Vertex" and "gl_MultiTexCoord0" attributes instead of the "position" and "uv" attributes used in the Three.js example* However, since you don't hav...
by Kjell
Wed Mar 13, 2019 2:45 pm
Forum: General discussion
Topic: Timer component strange reset behaviour
Replies: 2
Views: 62

Re: Timer component strange reset behaviour

Hi Ats, The trace shows that the TimerCube and TimerBlue stays the same, but they are only working once. Aren't they supposed to reset between states so they can continue to work as expected? No, AppState is basically a ModelState for the App component. Nothing gets reset automatically when switchin...
by Kjell
Fri Mar 08, 2019 11:55 am
Forum: ZGE Source Code
Topic: Blur component "refresh"
Replies: 38
Views: 20022

Re: Blur

Hi rrTea, I'm trying to use the Blur on a material with a material texture that has TextureScale.Y set to 5. But as soon as I activate the Blur shader, it renders the bitmap as if it used TextureScale.Y of 1. How can I fix it? Change the "gl_TexCoord[0] = gl_MultiTexCoord0;" line in the vertex shade...
by Kjell
Thu Mar 07, 2019 6:47 pm
Forum: Your projects
Topic: OMEGANAUT
Replies: 74
Views: 17184

Re: OMEGANAUT

Hi Ats, Now I have this weird bug on Android Nvidia Shield TV: the gamepad is acting like a mouse. Nothing have changed in my game regarding gamepad input. Do you mean the right analog stick of the Shield controller? Apparently when using the Shield controller with a application that doesn't target ...
by Kjell
Fri Mar 01, 2019 1:03 pm
Forum: Your projects
Topic: OMEGANAUT
Replies: 74
Views: 17184

Re: OMEGANAUT

Hi Ats, I didn't use Sunvox for the SFX because I didn't find a clever way to make it work for that task. Ehm .. it's super easy, you can simply trigger notes using the sv_send_event function. Attached is a example ( use left-mouse-button to trigger sound ). Do keep in mind that SunVox is ( generall...
by Kjell
Sat Feb 16, 2019 1:19 am
Forum: Extensions
Topic: SunVox for ZGE
Replies: 50
Views: 23293

Re: SunVox for ZGE

Hi Ats, Where did you find that 0x0100 is the for the volume? In SunVox source code? From the original header ( sunvox.h ) included with the SunVox library. /* sv_send_event() - send some event (note ON, note OFF, controller change, etc.) Parameters: slot; track_num - track number within the pattern...
by Kjell
Fri Feb 15, 2019 9:54 pm
Forum: Extensions
Topic: SunVox for ZGE
Replies: 50
Views: 23293

Re: SunVox for ZGE

Hi Ats,
Ats wrote:
Fri Feb 15, 2019 7:40 pm
I just made a test in order to only play the bass line at some point. But I'm not sure what would be the best method to do that.
You can use the sv_send_event function. Attached is a simple example ( use the left-mouse-button to toggle the "melody" on and off ).

K
by Kjell
Mon Feb 11, 2019 7:46 pm
Forum: Extensions
Topic: 3D Physics with ZgeBullet
Replies: 70
Views: 31802

Re: 3D Physics with ZgeBullet

Hi Ats, Probably a honest mistake .. but if you're going to define bit-mask constants for your collision groups, make sure you only use values that set a single bit ( unless you want to have constants that contain multiple groups ). So you probably want CO_VISOR to be 0x10 instead of 0x16. HEX DEC B...
by Kjell
Sat Feb 09, 2019 11:53 am
Forum: General discussion
Topic: Depth Map
Replies: 6
Views: 511

Re: Depth Map

Ah,

In that case i'd simply use gDEBugger to grab the depth and back / front buffer :wink:

Image

Depthy did a pretty shoddy job with the Pac-Man example though ..

Image

K
by Kjell
Sat Feb 09, 2019 12:28 am
Forum: General discussion
Topic: Depth Map
Replies: 6
Views: 511

Re: Depth Map

Hi Ats, Maybe a simple GLFog can do the trick? It's possible using GL_FOG, but that fog is calculated per-vertex instead of per-fragment. So if you'd have a large floor ( like in your screenshot ) that consists of only 4 vertices, it won't work properly .. you'd need to tessellate the floor to get a...
by Kjell
Sun Jan 27, 2019 9:38 pm
Forum: General discussion
Topic: Doom style 3d reduced to 2 directions
Replies: 8
Views: 648

Re: Doom style 3d reduced to 2 directions

Hi jinxtengu, Thanks for the clear explanation & Decap Attack reference, makes it much easier to give you useful suggestions :wink: In fact, you probably don't need any of the ( slightly ) complicated math used in the Pac-Man example. Setting the bone rotation direction once on spawn is probably eno...
by Kjell
Sat Jan 26, 2019 5:01 pm
Forum: General discussion
Topic: Doom style 3d reduced to 2 directions
Replies: 8
Views: 648

Re: Doom style 3d reduced to 2 directions

Hi jinxtengu, Do you know a code that could be used to set a value to 1, if an object is moving to the left (as seen in the players field of vision) and sets the same value to a 2 if the object is moving to the right (again in the players field of vision)? This seems like a rather strange thing to d...
by Kjell
Fri Jan 25, 2019 12:46 pm
Forum: General discussion
Topic: byte VS int in ZGE
Replies: 3
Views: 368

Re: byte VS int in ZGE

Hi Ats, I'm using a lot of const/var byte and I just read somewhere that int performs slightly better because it is already aligned for native CPU instructions. Completely depends on the circumstances & instructions involved, but in general you shouldn't be able to notice any difference. And byte sh...