Search found 1883 matches
- Fri Jun 27, 2008 6:10 pm
- Forum: Feature requests
- Topic: More informations about collided object
- Replies: 9
- Views: 10675
Hey Francesco, That's the way I use it yes. It doesn't work automatically obviously, you'll have to store which rows / RenderTransformGroups are occupied by which Clones ( each get their own ID OnSpawn ) yourself. But I find it much more convenient then having to define a Float for each variable tha...
- Fri Jun 27, 2008 5:50 pm
- Forum: Feature requests
- Topic: More informations about collided object
- Replies: 9
- Views: 10675
Hi Francesco, Ah like that :) Ok, I guess you can just cache all of the Collision values ( + count the amount of Collisions occured ) and calculate the appropriate behavior from all those together afterwards in OnUpdate then. You probably still want to use a component like RenderTranform to easily s...
- Fri Jun 27, 2008 5:15 pm
- Forum: Feature requests
- Topic: More informations about collided object
- Replies: 9
- Views: 10675
Hi Francesco, I understand what you're asking for, but that method won't cut it as soon as there will be multiple collisions occurring on one instance. I've attached a image illustrating such a situation. If you'd have a ZExpression on the Pink Sphere using Collided.Position.X .. would it have to re...
- Fri Jun 27, 2008 2:45 pm
- Forum: Feature requests
- Topic: More informations about collided object
- Replies: 9
- Views: 10675
Hi Francesco, The problem with something like a Collided. reference for ZExpression is that this won't be any good when you could have multiple collisions occurring at the same time. Even the current Category approach is a little limiting as there is a maximum of 32. So giving each instance their ow...
- Fri Jun 27, 2008 10:40 am
- Forum: ZGE Source Code
- Topic: Font
- Replies: 12
- Views: 27913
Font
:idea: Some small changes to start with .. first of all I added the ViewportRatio variable to the RenderFont scale calculation. I'm a little surprised this was not there already, as it's the cause for fonts to look vertically squashed at the moment. Renderer.pas line 1112 glScalef(X,Y*ZApp.ViewportR...
- Thu Jun 26, 2008 5:18 pm
- Forum: Feature requests
- Topic: RenderTransformGoup - MIRROR X,Y,Z ?
- Replies: 19
- Views: 20869
Hej jph, Sorry, the first method I suggested ( Inverting the Normals using MeshExpression ) only corrects the light, but still renders the triangles facing away from the camera instead of the opposite ( I had forgotten for a moment that normals are only for light calculation, it's the vertex order i...
- Thu Jun 26, 2008 1:17 pm
- Forum: ZGE Source Code
- Topic: Ratio
- Replies: 16
- Views: 40536
- Thu Jun 26, 2008 11:46 am
- Forum: Feature requests
- Topic: RenderTransformGoup - MIRROR X,Y,Z ?
- Replies: 19
- Views: 20869
:idea: Twice as much polygons to be precise. You might want to copy the meshes you want to mirror and use the new this.N function in MeshExpression to invert the normals yourself. Or instead of inverting the normals, adjusting your calculations so that a mirrored mesh is generated to start with. You...
- Wed Jun 25, 2008 3:53 pm
- Forum: Feature requests
- Topic: RenderTransformGoup - MIRROR X,Y,Z ?
- Replies: 19
- Views: 20869
Hmm, The thing is .. that when you add a mirror checkbox to each axis in for example RenderTransformGroup, the component has to dig through the whole tree in which it's located to see if there are any other components that have mirror activated to determine whether or not to invert the normals. Code...
- Wed Jun 25, 2008 2:39 pm
- Forum: ZGE Source Code
- Topic: Ratio
- Replies: 16
- Views: 40536
Hi jph, The main reason for implementing this is that no matter what ScreenRatio you'll run a application in, that the active rendering region ( Viewport ) can always be the same ratio. Right now ( 1.9.0 ) the extremes lie at 4/3 and 1.6, which means that the person running in a ScreenRatio of 1.6 c...
- Wed Jun 25, 2008 2:26 pm
- Forum: Feature requests
- Topic: RenderTransformGoup - MIRROR X,Y,Z ?
- Replies: 19
- Views: 20869
- Wed Jun 25, 2008 11:40 am
- Forum: ZGE Source Code
- Topic: Joystick
- Replies: 4
- Views: 17494
Hi guys, I'll be running out of free time shortly :shock: But seriously, starting 4 features ( and finishing 3 ) doesn't mean it took a whole lot of time. FOV was only 4 lines of code, Resolution 10, Ratio around 20 .. not exactly your average Pong or Pacman ;) And I just hope by kicking off this se...
- Tue Jun 24, 2008 6:57 pm
- Forum: ZGE Source Code
- Topic: Joystick
- Replies: 4
- Views: 17494
Joystick
Raising the bar a little .. Joystick support coming up.
K
- Tue Jun 24, 2008 2:05 pm
- Forum: ZGE Source Code
- Topic: Ratio
- Replies: 16
- Views: 40536
- Mon Jun 23, 2008 3:58 pm
- Forum: ZGE Source Code
- Topic: Ratio
- Replies: 16
- Views: 40536
Hi Ville, From ZApplication.pas TZApplication = class(TZComponent) public Ratio,FOV,ClipNear,ClipFar : single; List.AddProperty({$IFNDEF MINIMAL}'Ratio',{$ENDIF}integer(@Ratio) - integer(Self), zptFloat); List.GetLast.DefaultValue.FloatValue := 4/3; But perhaps ViewportRatio or CameraRatio would be ...