Search found 1613 matches

by Kjell
Tue May 08, 2018 1:51 pm
Forum: General discussion
Topic: Move on rails (path)
Replies: 2
Views: 76

Re: Move on rails (path)

Hi rrTea, Is there a simple way to go about it? I'd probably go with a quadratic or cubic spline, but curves are generally a personal preference kind-of-deal ( some people might prefer a B-Spline for instance ) :wink: Anyway, here's a simple quadratic example: <?xml version="1.0" encoding=...
by Kjell
Wed Mar 21, 2018 12:29 pm
Forum: General discussion
Topic: Color effect
Replies: 4
Views: 410

Re: Color effect

Hi rrTea, Right now I don't really understand how it works so I'll have to study it a bit before trying to (eventually) use it seriously. The way that it works is that the screen is divided up in blocks of 8x8 pixels ( using modulo ). Each color component of those pixels are compared against a value...
by Kjell
Tue Mar 20, 2018 11:15 am
Forum: General discussion
Topic: Color effect
Replies: 4
Views: 410

Re: Color effect

Hi rrTea, Basically yes .. but there quite a few different dithering algorithms ( each with their own specific look ). Attached are two simple examples; one that simply reduces the output to 256 colors / 8-bit ( red and green are 3-bit while blue is 2-bit ) and another one that dithers the output us...
by Kjell
Tue Feb 13, 2018 11:25 am
Forum: Extensions
Topic: Very Simple MP3 Player DLL
Replies: 5
Views: 2942

Re: Very Simple MP3 Player DLL

Hi,

The file is still there .. but Dropbox changed the way public files / links work in 2017. Anyway, here the new link :)

K
by Kjell
Tue Dec 26, 2017 11:10 am
Forum: General discussion
Topic: Picture effect
Replies: 2
Views: 306

Re: Picture effect

Hi rrTea,

It's a rounding error. You should use the following ( instead of your clamp functions ) in your BitmapExpression ..

Code: Select all

cX = round( X*mX );
cY = round( Y*mY );

K
by Kjell
Fri Sep 15, 2017 11:50 am
Forum: General discussion
Topic: Offset on spawned model.
Replies: 2
Views: 778

Re: Offset on spawned model.

Hi jinxtengu, You should get the view matrix of the camera, reset the translation components and multiply it with your desired offset vector. Here's a ( simple ) example .. press left-mouse-button to spawn a model. <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name=&...
by Kjell
Wed Jul 12, 2017 11:37 am
Forum: Bug reports
Topic: file f; non standard capitalization
Replies: 3
Views: 1289

Re: file f; non standard capitalization

Hi rrTea,

That's because int / float / string and even model ( a pointer to a Model instance ) are built-in data types, while Bitmap / File / Sound are component types.

K
by Kjell
Sat Jul 01, 2017 10:10 am
Forum: Bug reports
Topic: ZGameEditor.ini program close bug, prevents normal close function
Replies: 3
Views: 823

Re: ZGameEditor.ini program close bug, prevents normal close function

Hi guys, Another way to circumvent the problem is to run ZGameEditor as administrator. You can do this by right-clicking on ZGameEditor.exe ( or a shortcut to it ) and selecting "Run as administrator", or enabling that for the executable / shortcut by selecting "Properties" inste...
by Kjell
Fri May 12, 2017 12:09 am
Forum: General discussion
Topic: Creating a bullet trail effect
Replies: 3
Views: 1116

Re: Creating a bullet trail effect

Hi jinxtengu, Shaders aren't necessary for what I'm trying to do, I'd be happy if it were a single color. I can't think of any examples off the top of my head, but I'd describe the effect as looking like a projectile that spawns a continuous trail of shrinking objects in it's wake(without viable gap...
by Kjell
Thu May 11, 2017 2:53 pm
Forum: General discussion
Topic: Creating a bullet trail effect
Replies: 3
Views: 1116

Re: Creating a bullet trail effect

Hi jinxtengu,

With or without shaders? Also .. in case you have a clip from a game / movie / animation that has a similar effect, that would help too :wink:

K
by Kjell
Fri May 05, 2017 3:58 pm
Forum: General discussion
Topic: A question about model.y velocity
Replies: 10
Views: 1868

Re: A question about model.y velocity

Hi jinxtengu, Usually you want to do it the other way around by calculating the velocity from the rotation values. Here's another quick demo .. <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" LightPositio...
by Kjell
Fri May 05, 2017 10:56 am
Forum: General discussion
Topic: A question about model.y velocity
Replies: 10
Views: 1868

Re: A question about model.y velocity

Hi jinxtengu, One other thing, how can we adjust the rotational direction (adjust heading) so the bullet model is moving in relation to it's x,y,z velocity, and also (separately) in relation to the direction the camera is facing? It already does that .. but your cone mesh is pointing into the wrong*...
by Kjell
Thu May 04, 2017 2:04 pm
Forum: General discussion
Topic: A question about model.y velocity
Replies: 10
Views: 1868

Re: A question about model.y velocity

Hi jinxtengu, You made a couple of mistakes ... - Always use local variables when possible .. and otherwise never give components names that collide with properties ( in any scope ). So instead of putting 3 Variable components named "x", "y" and "t" in bulletmodel.Defin...
by Kjell
Wed May 03, 2017 11:27 am
Forum: General discussion
Topic: A question about model.y velocity
Replies: 10
Views: 1868

Re: A question about model.y velocity

Hi jinxtengu, what I'm trying to do is project a newly spawned model in the direction that the camera is facing, but I can't quite work out the correct formula to do this. Here's a example for a FPS-esque setup ( mouse + WASD ) that uses camera rotation over the X and Y axes. The thing you want to t...
by Kjell
Thu Feb 02, 2017 2:30 pm
Forum: General discussion
Topic: ZGE ten years!
Replies: 5
Views: 1704

Re: ZGE ten years!

:D

Congrats + time sure flies! On to the next 10 ~

K

Go to advanced search