Search found 1669 matches

by Kjell
Thu Nov 22, 2018 3:14 pm
Forum: General discussion
Topic: commands for mesh manipulation
Replies: 18
Views: 2822

Re: commands for mesh manipulation

Hi Ats, I'm having problems trying to display different meshes variations using a single model. I'm afraid that's not enough information to give you a proper suggestion .. Do I have to store the variation values inside the model and use refreshComponent on the mesh for each frame? Wouldn't that slow...
by Kjell
Wed Nov 21, 2018 11:44 pm
Forum: General discussion
Topic: commands for mesh manipulation
Replies: 18
Views: 2822

Re: commands for mesh manipulation

Hi Ats, I'm not sure if I need vertexes normals as my game only uses flat shading. Flat shading doesn't determine whether or not you need normals. It's about whether or not you're using lights. But since there's no easy way to close a sphere, I've started again from a flat box. Starting from a 2D gr...
by Kjell
Wed Nov 21, 2018 1:28 pm
Forum: General discussion
Topic: commands for mesh manipulation
Replies: 18
Views: 2822

Re: commands for mesh manipulation

Hi Ats, So I'm moving the vertexes of a sphere in order to get something random but a bit convincing. The problem is that I don't know how to make the last vertexes to be on the same position as the firts, as they don't seem to be attached. Correct, MeshSphere isn't closed off properly ( even though...
by Kjell
Tue Nov 20, 2018 12:51 pm
Forum: Your projects
Topic: OMEGANAUT
Replies: 58
Views: 14199

Re: OMEGANAUT

Hi Ats, Sadly, I wasn't able to do a color pickup on the background before drawing the ships, so the fog color can be a bit shifted when in space. This doesn't seem like a situation where you should be using glReadPixels to determine the fog color .. but perhaps you're trying to do something very cr...
by Kjell
Wed Nov 14, 2018 11:45 pm
Forum: General discussion
Topic: Modify BitmapExpression.Pixel values from the outside
Replies: 3
Views: 187

Re: Modify BitmapExpression.Pixel values from the outside

Hi Ats, What are you trying to do exactly? Something like this perhaps? <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" CameraPosition="0 0 0.5" FOV="90" FileVersion="2"> <OnLoaded> <ZExternalLibrary ModuleName="opengl32"> <Source> <![CDATA[// ...
by Kjell
Fri Nov 09, 2018 10:27 am
Forum: General discussion
Topic: GL Error on loading of the project
Replies: 3
Views: 192

Re: GL Error on loading of the project

Hi rrTea, Error 1282 / 0x0502 is GL_INVALID_OPERATION. Given when the set of state for a command is not legal for the parameters given to that command. It is also given for commands where combinations of parameters define what the legal parameters are. Not exactly sure what could be causing it .. ma...
by Kjell
Thu Sep 27, 2018 12:23 pm
Forum: General discussion
Topic: Virus or false positive?
Replies: 8
Views: 1119

Re: Virus or false positive?

Hi Ats,

I just updated my Windows Defender definitions and had it scan my ZGameEditor folder ... got the same false-positive :(

K
by Kjell
Thu Sep 13, 2018 1:09 pm
Forum: Your projects
Topic: ZX Spectrum emulator
Replies: 3
Views: 950

Re: ZX Spectrum emulator

Hej Ville, The 48k Spectrum is a very simple device with no additional support chips so the emulator is basically just Z80 emulation together with a shader to convert the ZX Spectrum video memory layout to the screen. Later 128k Spectrum model had AY-sound chip but initially there was just a speaker...
by Kjell
Wed Sep 12, 2018 4:00 pm
Forum: Your projects
Topic: ZX Spectrum emulator
Replies: 3
Views: 950

Re: ZX Spectrum emulator

:o Very cool & nice benchmark! No sound though? Admittedly .. i can imagine it's a little tricky to do without being able to write to a sound buffer directly, especially when you want to for example support games that basically halt the program for a bit and write to the AY-3-8910 as fast as possibl...
by Kjell
Mon Aug 20, 2018 9:43 am
Forum: Your projects
Topic: OMEGANAUT
Replies: 58
Views: 14199

Re: OMEGANAUT

Hi Ats, This is because the euler-angles order is "incorrect" / unsuitable for your use-case. Unfortunately you can't change this order in ZGE .. but fortunately you can circumvent this problem easily by adding a RenderTransform :) Here's a modified version of your snippet .. <?xml version="1.0" enc...
by Kjell
Mon Aug 13, 2018 12:03 pm
Forum: Releases
Topic: Scripting enhancements
Replies: 16
Views: 2179

Re: Scripting enhancements

Hi Ats, Visual Basic 6 is absolutely ancient ( it's from 2005 ) .. i suspect ZGE attempts to use a feature ( DPI-aware scaling perhaps ) that isn't supported by the run-time files provided by VB6. I recommend using a virtual-machine running Windows XP for Visual Basic 6 based projects instead. + The...
by Kjell
Sun Aug 12, 2018 6:11 pm
Forum: Releases
Topic: Scripting enhancements
Replies: 16
Views: 2179

Re: Scripting enhancements

Hej Ville,

Very nice updates, especially function overloading ( even though it's not part of the C spec ) is a welcome addition :) By the way, i noticed that the unary negation operator suddenly works on variables! Did that get fixed recently?

K
by Kjell
Thu Aug 09, 2018 9:29 am
Forum: General discussion
Topic: Material.Shading Wireframe vs Flat rendering speed
Replies: 1
Views: 701

Re: Material.Shading Wireframe vs Flat rendering speed

Hi rrTea, The next thing I was thinking of is to switch a Material.Shading that is used to render lots of elements on screen from Flat to Wireframe when the framerate drops, by checking for the framerate in main OnUpdate (if it's below 555 or 50, set the Shading to Wireframe, otherwise keep it on Fl...
by Kjell
Tue Aug 07, 2018 11:34 am
Forum: Tips'n'Tricks
Topic: Tween engine
Replies: 4
Views: 1083

Re: Tween engine

Hi Ats, I'm trying to make a portable tween engine, based on the Pico-8 Tween engine by egordorichev . I've put almost everything in a model so it can be used and removed easily. I'm a bit puzzled as to why you'd want to wrap this in a model .. but maybe that's just me? Anyway, don't use strings in ...
by Kjell
Mon Aug 06, 2018 12:22 pm
Forum: Tips'n'Tricks
Topic: Tween engine
Replies: 4
Views: 1083

Re: Tween engine

Hi Ats,

Looks familiar ... :wink:

K