Search found 1605 matches

by Kjell
Fri May 12, 2017 12:09 am
Forum: General discussion
Topic: Creating a bullet trail effect
Replies: 3
Views: 90

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: 90

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: 207

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: 207

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: 207

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: 207

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: 336

Re: ZGE ten years!

:D

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

K
by Kjell
Fri Dec 23, 2016 8:40 pm
Forum: General discussion
Topic: commands for mesh manipulation
Replies: 9
Views: 450

Re: commands for mesh manipulation

Hi guys, What is the lowest footprint way then? There's no major difference, the most important thing you need to know is that RenderNet automatically recreates the mesh each frame .. so unless you need to render a net / grid that needs to be updated each frame, use the Mesh component instead. Are t...
by Kjell
Sun Dec 04, 2016 11:29 am
Forum: General discussion
Topic: commands for mesh manipulation
Replies: 9
Views: 450

Re: commands for mesh manipulation

Hi zakkwylde, i had to type in this.vertex.x or y or z, i cant use v.x etc, zge simply wont let me. is this a zge version issue? Which version of ZGameEditor are you using? Long ago you had to use "this." in MeshExpressions .. but it was never "this.Vertex" ( unless you're writin...
by Kjell
Wed Nov 23, 2016 12:40 pm
Forum: General discussion
Topic: commands for mesh manipulation
Replies: 9
Views: 450

Re: commands for mesh manipulation

Hi zakkwylde, Here's a flat circle ( CircleGrid.XCount controls the number of segments ) .. ZZDC<?xml version="1.0" encoding="iso-8859-1" ?> <Mesh Name="CircleMesh"> <Producers> <MeshBox Name="CircleGrid" XCount="2" Grid2DOnly="255"/> <Mesh...
by Kjell
Sat Oct 01, 2016 9:01 am
Forum: General discussion
Topic: Follow the mouse in 3d space
Replies: 9
Views: 563

Re: Follow the mouse in 3d space

Hi jinxtengu,

jinxtengu wrote:With the example i tested it on, the camera rotation is only on the Y axis.

Should have asked before posting the example :roll: I've updated the example to only take the Y-axis rotation of the camera in consideration.

K
by Kjell
Thu Sep 29, 2016 9:05 am
Forum: General discussion
Topic: Follow the mouse in 3d space
Replies: 9
Views: 563

Re: Follow the mouse in 3d space

Hi jinxtengu, I do mean, mouse on X and Y axes, although if the view is rotated wouldn't that necessitate using the Z axis also? My question was / is which axes you're using to rotate the camera. I assumed you're using X and Y, but perhaps you're using Z as well .. or maybe only Y ( in which case th...
by Kjell
Tue Sep 27, 2016 11:32 am
Forum: General discussion
Topic: Follow the mouse in 3d space
Replies: 9
Views: 563

Re: Follow the mouse in 3d space

Hi jinxtengu, What sort of code would I need to write to keep the cursor movement relative to the cameras current position and current rotational value? Here you go :) <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor applic...
by Kjell
Sun Sep 25, 2016 4:01 pm
Forum: Tips'n'Tricks
Topic: Icon
Replies: 4
Views: 2090

Re: Icon

Hi Rado1,

Rado1 wrote:Cannot it be integrated into ZGE?

No .. this is only a ( imperfect ) workaround. It still shows the incorrect / original ( IDI_APPLICATION ) icon in the Alt+Tab menu on Windows XP ( due to how icons are cached ) and does so for a couple of frames on ( for example ) Windows 7 as well.

K
by Kjell
Fri Sep 23, 2016 11:30 am
Forum: Tips'n'Tricks
Topic: Icon
Replies: 4
Views: 2090

Re: Icon

:roll: Silly 2011-Kjell ... below is a workaround that uses the internal icon / resource instead. <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="Icon" CustomScreenWidth="640" CustomScreenHeight="360" MouseVis...

Go to advanced search