[SOLVED] PlayCanvas Bugging with 3D Model

I added a 3D model into my FPS Game and when I launch it, the camera turns sideways and movement also doesn’t seem like its working.
Here is the link to the project: https://playcanvas.com/project/1274041/overview/fps-game

Also, without the 3D model, everything is working fine and properly.

Please Help.

1 Like

Here are just some of the problems I encountered with your project:

  1. What is “BedSceme”?

image

  1. Within the bedsceme the gun and crosshairs are misaligned.

  1. Neither of them are in the middle of the screen, which they should be (certainly not off to the right).

  2. At first I thought the gun was some sort of space gun, but actually the model is a frame of a model 1911. Just the frame. Where is the rest of it?

  1. The model has extremely bizarre and random rotation values (which is probably why the gun fires in a weird direction).

  2. Not only does the camera have random rotation values like the gun, but it also has random offset values, which means the player is literally bizarrely lopsided. What is the reason for this?

image

  1. The bullet entity has random offset values, meaning that the bullet will not fire from where it logically should (please tell me what the purpose is for offsetting the bullet to the side of the gun by -0.016). Not only that, but for some reason the bullet is rotated 5 degrees, meaning that the bullet wont even go where the gun is pointing. Why is this the case?

image

  1. You have an entire template dedicated to a single plane and a single light. Why?

image

  1. Not only are the bullets and the crosshairs not aligned, not only are neither of them pointing where they should, but the texture for the crosshairs itself is somehow misaligned. I dont even know how you managed to do that. How did you not notice any of this? Also, the texture has a height and width of 225, not a power of 2 number, which it should be.

image

  1. I thought the texture on the gun looked weird, so I opened it and apparently its this. What even is this? And why is it on a model 1911? This texture is literally 14.1 mb, and I dont even know what it is. That is insane.

  1. For some reason you imported 6.22 mb of 3d model related stuff, and the vast majority of it (literally everything except the 1911 frame and the bullet) is completely unused. You also imported 41.2 mb worth of textures, and most of them are random patterns and shapes, which like the models are never used. I mean, what is this even supposed to be. Seriously tell me what this is.

  1. The second scene, “TestScene”, is nearly indistinguishable from the first one, the only difference is a single box that does nothing. Do you really need 2 scenes that are identical aside from a single box?

  2. The camera is never clamped and can flip upside down infinitely. Why do you allow this?

Strangely enough I have no idea what error you are talking about. The rotations seem fine and the camera never rotates in ways it should not. The only thing I could think of is that if you change any size value of the player to anything other than exactly 1 the player will try to collapse like a neutron star.

2 Likes

Thanks for telling me of all the problems in my project. I’m still a beginner in PlayCanvas. The problem was that in the “BedScene” has a 3D model of a cottage/house. When I added it into the scene and launch the project, it wasn’t an error, just a bug. I can’t really explain what the bug is like so just try it out yourself and tell me if its just a problem from my computer or something in the lines of that.

If you mean the model on the image below, I can drag it to the scene without any problem.

When you launch the project after, the bug is there. Its like the camera rotated for some unknown reason because the model is in the scene. When the model isn’t in the scene, the bug doesn’t occur and its normal.

Project works still fine for me.

What are the specs of the device you use?

Any error in the console of the browser?

Alright so make sure the bug occurs then send us the launch link and dont change anything so we can see ourselves.

1 Like

The view is tilted.

Perhaps its because you are using a bootleg version of windows?

1 Like

No. It is not a unofficial version as I tried on my other computers as well. I’m using the official Windows bought from the HP official website.

Send me a picture of what you can see when you launch the project.

No errors in the console.

I was joking also can you send a launch link?

https://launch.playcanvas.com/2109263?debug=true

???

image

Why is there a camera in your cottage entity?

2 Likes

Oh my god! Thanks so much. Its because its a PlayCanvas default to add a camera in.(This probably sounds really stupid)

Also, how do I mark this thread as solved? I used to be able to change the title.

How did you even miss that? I mean there are only 3 child entities of the cottage and literally 15 total entities in the entire scene.

Sometimes the ability to edit titles goes away (for some reason) so you just gotta yell at albertos until they change it for you.

Oh sorry, I thought the editor was crashing when you try to add the model to the scene. I will mark the topic as solved.

1 Like

The model that you imported likely has has a camera node in it. So PlayCanvas creates one when imported

1 Like

Oh like the stuff in the blender starting scene that they just forgot to remove? Its actually neat that playcanvas can recognize a blender camera and automatically insert its own camera in its place.

1 Like