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

Pages: [1]
1
Support / Re: Light source every direction?
« on: October 25, 2021, 05:30:51 pm »
i'll try that, thanks!

2
Support / Re: Light source every direction?
« on: 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?
« on: 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
« on: October 24, 2021, 12:49:55 pm »
thanks!

5
Support / Re: 3ds Object not displayed correctly
« on: 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
« on: 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:

Code: [Select]
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
« on: 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:

Code: [Select]
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

Code: [Select]
((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
Support / Re: Rendering into two different view at the same time
« on: October 17, 2021, 08:09:45 am »
This works perfectly, thank you very much :)

9
Support / Re: Rendering into two different view at the same time
« on: October 17, 2021, 07:52:46 am »
thanks, I will try that out!

10
Support / Re: Re: Vertices only visible in certain camera angles
« on: October 16, 2021, 02:38:31 pm »
Hi can you please help me with this?

11
Support / Re: Re: Vertices only visible in certain camera angles
« on: October 16, 2021, 11:59:09 am »
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
Support / Re: Re: Vertices only visible in certain camera angles
« on: October 16, 2021, 11:56:40 am »
When I click button 2 to load the second model, it moves by itself and sometimes i also crashes

13
Support / Re: Re: Vertices only visible in certain camera angles
« on: October 16, 2021, 11:55:11 am »
Here is the link to the video uploaded in Google Drive:

https://drive.google.com/file/d/1PGnwLQDILIysXZe89jL-w-wKuhy6AkYd/view?usp=sharing

14
Support / Re: Re: Vertices only visible in certain camera angles
« on: October 16, 2021, 11:48:49 am »
I will attach a screen recording of it in 10 mins.

15
Support / Rendering into two different view at the same time
« on: October 16, 2021, 11:41:40 am »
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

Pages: [1]