Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Jamiro

Pages: [1] 2 3
1
Support / Re: Different light shading with compiled objects
« on: July 28, 2018, 07:35:17 pm »
I really think its the normal rendering process (maybe when sending info through the pipeline) and receiving info back from opengl. That may cause that staggering I believe. I event tried to strip the object after created but for non compiled objects it doesnt work as I've read in the documentation.

I strongly believe it's in the "draw" method, which is where the render happensm since it's the object's first time "on screen" it will have some building and rendering process that only happens once.

Thanks anyway for the help

2
Support / Re: Different light shading with compiled objects
« on: July 26, 2018, 11:14:46 pm »
Yes, I'm giving 4gb of mem to the application alone, so it has space to grow, but when using uncompiled objects, I can be rendering a scene for hours, if a new object is rendered for the first time, a small loading will happen once, and then its good to go, but on that loading a small staggering will happen.

3
Support / Re: Different light shading with compiled objects
« on: July 25, 2018, 08:18:28 pm »
I strongly believe that it's being caused by caching up some information (perhaps on java side). The first time I'm rendering an object and depending on said object poly count, I will have a staggering effect maybe meaning there's a loading behind. I dont know if its because java is storing the object data on memory or if its being created on the fly by the engine and sending it to opengl. Could it be that? I will perfotm some tests tonight and will let you know more abou it.

4
Support / Re: Different light shading with compiled objects
« on: July 25, 2018, 12:38:24 am »
yes, just tested it out now, even with Lights.setRGBScale the scenes have different results when compiled and non compiled, although both will get that "overbrightness" the compiled scene still has more light than the non compiled, and those corners still have that occluded effect.

on another note, is it possible to "pre load" all the objects when not using compiled objects? (more or less the same we do for textures when whe use the preWarm()). the problem is that I get some staggering effect when I'm rendering the object for the first time, I wanted to avoid that by pre loading or prerendering them somehow, is it possible, is there any trick to it?

5
Support / Re: Different light shading with compiled objects
« on: July 24, 2018, 10:18:30 pm »
ok, thanks a lot

6
Support / Re: Different light shading with compiled objects
« on: July 23, 2018, 12:51:53 pm »
Yes, I've only used 1 for Config.lightMul. Both use the same value, so the light brightness is more or less the same, but both yield out different results where the non-compiled objects seem to have a brighter color near the light and then it quickly fades away faster than when using compiled objects. It's more noticeable when using non-compiled objects than when using compiled ones. as you can see in the image above.

No I haven't tested out this setRGB option (I will give it a look afterwards) , but this really seems a difference between lighting because of those "occlusion" like shados on the edges which the compiled objects doesn't have. Notice that I only used 1 light and both scenes use "lightMul = 1"

7
Support / Re: Different light shading with compiled objects
« on: July 23, 2018, 04:15:38 am »
Ok, I know now what the problem is. So apparently it seems that compiled objects use linear lighting instead of the quadratic that the non-compiled objects are using, also there's the matter with light limitation on the compiled ones, which is 8, thus having a weird looking scene when compiling all the objects.

As for the light limitation, there's no solution other than using shaders, as for the lighting attenuation method, why does it chage? is it chosen by the hardware? If so, does this mean that when using VBO objects the light will be linear?

My problem is that I want to work with VBOs of course (do want the best performacen for my program) but I do not want the linear attenuation light, therefore I will need to use shaders, the problem is, when I use them I lose the default opengl fog effect, or I need to add it as well to the shader, but creating a shader is hard as hell, so I wanted to stick to default light and fog.

thanks

8
Support / Re: Different light shading with compiled objects
« on: July 21, 2018, 05:53:12 pm »
heres an example:


9
Support / Re: Different light shading with compiled objects
« on: July 21, 2018, 04:43:19 pm »
My question is, does a compiled object have a different light calculations than a non-compiled one? Does it have anything to do with VBO? I know it has nothing to do with max number of lights because I'm only using 1.

I tried to search on the web about this, but nothing came up. Can anyone give me a hint on this? and if its true, how can I accomplish a similar look with compiled objects?

Does it have to do with attenuation formula? (linear vs non-linear)

10
Support / Different light shading with compiled objects
« on: July 21, 2018, 05:38:01 am »
Hello,

As I'm using compiled and non-compiled objects, I came across something that seems weird. The lighting and shading on the same objects are different when they are compiled and when they are not (for Config.lightmul = 1).

So, this basically means that the same lights cast different results on the same objects depending if those objects are compiled or not, is it supposed to be like that?

11
Support / Re: Billboarding Y-Axis fixed Sprite
« on: July 11, 2018, 03:36:20 pm »
Ok, so I just need to ask 1 simples question, do I need to update the billboarding matrix on each draw step? Or is the matrix itself capable of using camera space and need only to be changed once?

so, when I choose setBillboarding(true) will the jpct engine update on each frame the matrix according to the camera facing vector?

many thanks

12
Support / Re: Float Positioning Blit Images
« on: July 09, 2018, 11:58:33 pm »
Sure, no worries, take your time

13
Support / Re: Float Positioning Blit Images
« on: July 09, 2018, 07:13:20 pm »
Hello, any news about this possibility to add a decimal coordinate system for blitting?

thanks

14
Support / Re: Billboarding Y-Axis fixed Sprite
« on: July 08, 2018, 06:31:26 pm »
In that case wont I stil have the tilting of the relative Y axix of the object? I don't understand much about matrices but can I just  set a value to a fixed zero or 1 to always make it steady on its relative Y axis?

and also, is there even a name for this? os some concept for this type of billboarding that I can look for?

15
Support / Billboarding Y-Axis fixed Sprite
« on: July 08, 2018, 03:56:57 pm »
Hello,

I know we can change the billboarding matrix of an object, I tried to play around with this but without success, so my question is:

How can I make a matrix to simulate a billboarding effect while keeping its vertical axis fixed, as the example bellow shows in the first case?



can anyone give me an example of what this matrix should be to have the desired effect?

Thanks

Pages: [1] 2 3