Recent Posts

Pages: [1] 2 3 ... 10
Projects / Re: my project - Vehicle Simulation
« Last post by MichaelJPCT on March 16, 2019, 08:29:49 am »
it's disappointing that after you watch the ad, the video doesnt load :(
and i am sorry to say , i havent been able to find another video hosting website which i can connect to, such as youtube , vimeo...
even file sharing sites(except those in China) dont work here.
just forget about it for now.
Projects / Re: my project - Vehicle Simulation
« Last post by EgonOlsen on March 15, 2019, 05:00:29 pm »
The adverts play just fine, but the actual video doesn't. After a lot of spinning an error message pops up that basically says "sorry...". I've tried it with Chrome and Firefox.
Projects / Re: my project - Vehicle Simulation
« Last post by MichaelJPCT on March 15, 2019, 08:07:29 am »
i recorded a video to showcase one of the aircrafts - a modified EC135 helicopter. the graphics are rendered with JPCT-AE engine.
beware, before the video starts there may be advertisements.
Projects / MOVED: Screenshots
« Last post by EgonOlsen on March 10, 2019, 03:48:06 pm »
Support / Screenshots
« Last post by itsmeveno on March 10, 2019, 09:57:39 am »
Good day how to take screenshots of my project i'm using glsurfaceview.
There's no check, because an object without a texture shouldn't happen. If you create a new object, the dummy texture will be assigned. If you assign another one, then it will be that one. The only case in which this can happen is when you call flush() on the TextureManager but are still rendering the object that uses them. And in that case, a crash is just fine to me because you are not supposed to do that. Are you by any chance doing something like this?
Support / Re: Box sides action
« Last post by EgonOlsen on March 04, 2019, 12:44:40 pm »
Support / Re: Box sides action
« Last post by itsmeveno on March 03, 2019, 12:27:40 pm »
World space

I am experiencing an exception on a S5 which does not occur on another S5.

There is an older similar thread from 2015 here: Re: Object3D's transparency issue,4232.45.html

This is the problem that occurs in a world.draw(fb) statement:
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.threed.jpct.Texture.getOpenGLID(int)' on a null object reference
        at com.threed.jpct.GLRenderer.setTextures(
        at com.threed.jpct.GLRenderer.drawVertexArray(
        at com.threed.jpct.World.draw(
        at com.threed.jpct.World.draw(
        at android.opengl.GLSurfaceView$GLThread.guardedRun(
        at android.opengl.GLSurfaceView$

If I look at the code in GLRenderer I wonder why there is no check for a null texture:

   private void setTextures(Object3D obj, int number, int modeNumber, FrameBuffer buffer, World world) {
        int texInd = false;
        if (obj.oneTextureSet) {
            number = 0;
        Texture texture = this.texMan.textures[obj.texture[number]];
        if (texture.getOpenGLID(this.myID) == 0 || texture.getMarker(this.myID) == Texture.MARKER_DELETE_AND_UPLOAD) {

Of course the deeper question is why the texture is missing on one device and not on another.
Any tips?
Pages: [1] 2 3 ... 10