Search found 1668 matches

by Kjell
Thu Dec 13, 2018 9:17 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8523

Re: ZGameEditor & Android Setting

Hej Ville,
VilleK wrote:
Thu Dec 13, 2018 8:32 am
do you think I should change so that ZApplication use the alpha value of ClearColor?
Yea, i don't see how it could hurt really .. besides, the default alpha value is 0 anyway.

K
by Kjell
Wed Dec 12, 2018 6:08 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8523

Re: ZGameEditor & Android Setting

Hi Ats, Then I made some tests with the OpenGL calls. If I put them in App.OnBeginRenderPass, nothing change. That's because when you use the OpenGL calls in OnBeginRenderPass, they get negated by the built-in clear calls shortly thereafter. But if I put them in App.OnRender (with App.RenderOrder = ...
by Kjell
Wed Dec 12, 2018 11:09 am
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8523

Re: ZGameEditor & Android Setting

Hi guys, Try clearing the screen using a alpha value of 1 ( instead of the default 0 ). Unfortunately you can't do this using App.ClearColor right now ( as the alpha value is ignored ), so you need to execute the following OpenGL calls ( after the screen is cleared by ZGE but before anything is rend...
by Kjell
Fri Dec 07, 2018 3:58 pm
Forum: General discussion
Topic: Chromatic Aberration effect
Replies: 7
Views: 148

Re: Chromatic Aberration effect

Hi rrTea, I tried the DIY solution, and it works, but there are some cases where it gives unexpected results. For example bitmaps sometimes get a dark outline, and I can't see where would this be coming from. It might not give the results you expected, but it's actually behaving the way it should. W...
by Kjell
Thu Dec 06, 2018 9:19 pm
Forum: General discussion
Topic: ZGameEditor & Android Setting
Replies: 69
Views: 8523

Re: ZGameEditor & Android Setting

Hi guys,

If there's going to be support for on-the-fly orientation changes ( Configuration Changed event ), perhaps it would be a good idea to set the screenOrientation for ZGEAndroid-debug.apk to sensor? Would make it a lot easier to debug portrait-mode projects.

K
by Kjell
Thu Dec 06, 2018 9:25 am
Forum: General discussion
Topic: Chromatic Aberration effect
Replies: 7
Views: 148

Re: Color refraction effect

Hi rrTea, Ah, i see what you're getting at. I was trying to illustrate in my example that you have to use a black frame-buffer to render your 3 channels onto because of the additive blending, but you wanted to simply clear the RenderTarget with a non-transparent color value. This is a bug / oversigh...
by Kjell
Thu Dec 06, 2018 12:48 am
Forum: General discussion
Topic: Shader messes with the transparency
Replies: 3
Views: 49

Re: Shader messes with the transparency

Hi jinxtengu, Is there a fix to get this shader to fade gradually and keep transparency with flat models? It's because your alpha test is set to "greater than 0.5". Any pixel that fails that test won't get rendered. Either adjust the threshold value ( why not use greater than 0 ) or mix with "vec4(0...
by Kjell
Wed Dec 05, 2018 2:45 pm
Forum: General discussion
Topic: Bass.dll volume functions
Replies: 2
Views: 59

Re: Bass.dll volume functions

Hi jinxtengu, Hey does anyone know how to alter the volume parameters using Bass.dll for mod playback? You can use the BASS_SetConfig function to set the global volume level of a MOD. Alternatively, you can use BASS_ChannelSetAttribute to set the volume of a MOD at event-level ( either globally or p...
by Kjell
Wed Dec 05, 2018 12:50 pm
Forum: General discussion
Topic: Vertical sync with monitor refresh
Replies: 3
Views: 49

Re: Vertical sync with monitor refresh

Hi jinxtengu, Windows Vista & 7 are a bit of a basket-case when it comes to v-sync. Microsoft introduced the DWM ( Desktop Window Manager ) in Vista, but it's disabled when you're using the classic theme in Vista or 7. Anyway, does the tearing of your standalone occur in windowed or full-screen mode...
by Kjell
Tue Dec 04, 2018 1:19 pm
Forum: General discussion
Topic: Chromatic Aberration effect
Replies: 7
Views: 148

Re: Color refraction effect

Hi rrTea, Try the following approach :wink: <?xml version="1.0" encoding="iso-8859-1" ?> <ZApplication Name="App" Caption="ZGameEditor application" ViewportRatio="3" FileVersion="2"> <OnUpdate> <ZExpression> <Expression> <![CDATA[// DiamondTransform.Rotate.X = sin(App.Time); DiamondTransform.Rotate....
by Kjell
Tue Dec 04, 2018 12:33 pm
Forum: General discussion
Topic: Vertical sync with monitor refresh
Replies: 3
Views: 49

Re: Vertical sync with monitor refresh

Hi jinxtengu, This can be caused by a number of reasons. Could you answer the following questions? - Which Windows version is the PC running? - Which Windows theme is the PC using? - Which GPU does the PC have? - Which GPU drivers are installed? - Which refresh rate is the GPU set to? Does anyone kn...
by Kjell
Mon Dec 03, 2018 10:34 am
Forum: Your projects
Topic: OMEGANAUT
Replies: 58
Views: 14181

Re: OMEGANAUT

Hi Ats,
Ats wrote:
Mon Dec 03, 2018 7:35 am
So right now I'm making some tests with ZGEBox2D.
If you're going to take the external library route i'd recommend Bullet over Box2D for 3D games.

K
by Kjell
Sat Dec 01, 2018 12:38 pm
Forum: Your projects
Topic: OMEGANAUT
Replies: 58
Views: 14181

Re: OMEGANAUT

Hi Ats, Can I use something like ZGEBox2D to handle that or is there another simpler solution? ZGE unfortunately still doesn't have mesh-collision built-in .. so you either need to use a library or use your own collision detection routines. A additional problem is that in order to use a library or y...
by Kjell
Thu Nov 22, 2018 6:06 pm
Forum: General discussion
Topic: commands for mesh manipulation
Replies: 18
Views: 2794

Re: commands for mesh manipulation

Hi Ats, Here, I made a quick mockup. I'm trying to obtain 4 different rock meshes on the 4 spawned models. But since the mesh is called at each frame to be displayed, I don't get how to do that... Ah, that's easy .. simply move RockMesh into RockModel.Definitions and remove the RefreshContent compon...
by Kjell
Thu Nov 22, 2018 3:14 pm
Forum: General discussion
Topic: commands for mesh manipulation
Replies: 18
Views: 2794

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...