Main Menu
Menu

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.

Show posts Menu

Messages - Kumaraswamy

#1
Support / Re: Light source every direction?
October 25, 2021, 05:30:51 PM
i'll try that, thanks!
#2
Support / Re: Light source every direction?
October 24, 2021, 04:53:12 PM
I don't want the shadow or the part where the light isn't reached to be dark.
#3
Support / Light source every direction?
October 24, 2021, 12:51:12 PM
Hi, I would like to know how can I make the light visible from every direction?
I don't want it to be dark on one side and not the other.
#4
Support / Re: 3ds Object not displayed correctly
October 24, 2021, 12:49:55 PM
thanks!
#5
Support / Re: 3ds Object not displayed correctly
October 20, 2021, 05:47:43 PM
Hi, thanks for replying, soo...

how do I share the model with you?
Can you check that? I got the GLB file from my windows 3d viewer library and converted it into 3ds.
#6
Support / 3ds Object not displayed correctly
October 19, 2021, 09:00:07 PM
I have been experimenting with JPCT and everything was fine.
I had converted a GLB file into a 3ds file so that I can use it with JPCT, the model is correctly displayed with various online 3d viewers, but when I try that in JPCT when I rotate it, some parts of the object seem to be disappearing. I tried rescaling the model while loading and trying on another device, the issue is still present.

This is how I load the Object3d:


ModelAvailable(
                        Object3D.mergeAll(
                                Loader.load3DS(tools.getStream(model), scale)
                        )
                );


This is the problem with only this model, other models are correct
#7
Support / Collision between two objects
October 19, 2021, 09:52:27 AM
I am new to 3d models and handling them, I want to know if there are any examples to detect collision between two objects?  :)

So far I have tried

First model:


object3D.setCollisionMode(Object3D.COLLISION_CHECK_OTHERS | Object3D.COLLISION_CHECK_SELF);
        object3D.addCollisionListener(new CollisionListener() {
            @Override
            public void collision(CollisionEvent collisionEvent) {
                Log.d("Renderer", "collision: " + collisionEvent);
            }

            @Override
            public boolean requiresPolygonIDs() {
                return false;
            }
        });


And


((MyModel) mymodel).getObject3D().setCollisionMode(Object3D.COLLISION_CHECK_OTHERS | Object3D.COLLISION_CHECK_SELF);
        ((MyModel) mymodel).getObject3D().addCollisionListener(new CollisionListener() {
            @Override
            public void collision(CollisionEvent collisionEvent) {
                Log.d("Model3d", "collision: " + collisionEvent);
            }

            @Override
            public boolean requiresPolygonIDs() {
                return false;
            }
        });
        SimpleVector vector = new SimpleVector();
        vector.y = 10;
        ((MyModel) mymodel).getObject3D().checkForCollision(vector, 100);


So far, the event is not triggered  :-\
Am I missing something?

How do I listen to collisions?
#8
This works perfectly, thank you very much :)
#9
thanks, I will try that out!
#10
Hi can you please help me with this?
#11
here by loading model I mean, the model is loaded correctly from the file (3ds object) but adding it to view using GLSurfaceView creates this behaviour
#12
When I click button 2 to load the second model, it moves by itself and sometimes i also crashes
#14
I will attach a screen recording of it in 10 mins.
#15
hi, i am new here, I am using JPTC for android, its working good, but when i load the second another model and Add it to a view, it makes it behave weirdly, can you please help me