Hello Pandako, how do you actually integrate 3D models into a game? because whenever i try to create a 3D model in a game it just seems to not exist no matter what scale or position
You can see how the 3D model is loaded in the "Output 3D Model Information To Console" action. Try pressing "Ctrl + Shift + i" in the preview window to see the console.
Hi! It seems impossible to use Particles with this extension? I tried to create a particle of a blood after killing an enemy or particles for a firethrower weapon. The same with tween behavior.
Hi, I have got an problem. I am using 3d extension and I wanted to create fps like wolfenstein, problem is that camera object(that rotation is following coursor) stopped working when it reached edge of screen. Then I found mouse pointer lock extension, but when I am using it my camera does only shake, can you please help me?
"MousePointerLock::MovementX()" returns the distance the mouse cursor moves, not the angle. Therefore, it is not a suitable value for the "Rotate toward angle" action. Using the "Rotate" action instead might work.
I was wondering why my game is not rendering anything, but the plane is gone, and the camera isn't hidden. and i tried networking, I might try this on a new PC but if you can provide a fix it will help alot.
Lights are not yet supported by the extension. You can use a dark fog to provide some of that effect - see the example at the top. Lights *are* supported by the engine itself, so hopefully in a future update we will get support inside GDevelop events for controlling lighting.
Thanks for this awesome plugin ! I have question. I am using this extension in my game. but when new version of extension is released I am not able to update it. How should I update Extension without disturbing the game.
It will automatically update when you import a new version. However, since this extension is under development, I cannot guarantee that it will update correctly.
You can use "Create 3D Scene" to update the background without erasing the existing 3D objects. However, the camera position is initialized, so you should be careful about that.
Hi Pandako, the 3D isn't displaying and I'm using AMD as well. I just installed GDevelop fresh on 5.1.156 (see right of image), but it is still the same issue. In my old project from a few months ago, I can see my camera sprite though as usual, the sky colour is same as the one I set and my events works fine.
Weirdly, playing games made with WithThreeJS works fine on Firefox so I don't know if there is something wrong with how I set up the camera. I copied the texture URL from Resources panel and pasted it just to be sure, so I'm not sure what texture is "not found".
The cause of this problem is unknown, but if the problem does not occur when using network preview or previewing with the browser version of GDevelop, it may be an issue with Electron, which GDevelop uses. (This problem appears to occur when using AMD CPU or GPU.)
If this is the case, unfortunately it would be difficult for me to solve the problem. 😥
Does your game render 3D scenes correctly in network previews or published games?
Hi Pandako. Thanks for this work. I was testing the version 6.4 and had fun but now, when I switch to the 7.0 on my project (I replace the older extension) it doesn't work anymore : when I preview it displays a grey screen but the game is turning well because I hear that I shoot and walk. (I didn't change anything in the code...). How can I fix it ?
I need more information to solve it. Can you tell me what version of GDevelop you are using? If you don't mind, press "ctrl + shift + i" in the preview window to open the developer tools and attach a screenshot of that console screen here.
I don't know why but, it works now... :D. Does the Google Chrome update have a role in the previewing ? Maybe it was just another update missing ; now everything is ok.
but there is a big difference between an isolated tech demo and integration into GDevelop. A while ago Pandako said lighting was not a priority, but it is listed above as a future goal so it might be not so far away at this point.
so im not sure if its only AMD but when i use the extension in the new gdevelop with the new ui, when i preview, all 2d elements are visible but 3d elements are invisible, camera is visible and scene background is black, i think the new gdevelop update is the problem because i didn't update gdevelop before and it worked fine until I did update gd5, i see it works fine for other people, i found a workaround which is to preview over lan and open web browser
This is similar to the bug contained in GDevelop 5.1.154. It should have been improved in the latest GDevelop 5.1.155, but the improvement may have been incomplete.
Also, I've confirmed that the latest browser versions of GDevelop also have the problem. I have contacted GDevelop about this issue.
If you don't mind, press ctrl + shift + i in the preview window to open the developer tools and attach a screenshot of that console screen here. (What I need is the 3rd line)
If the third line of the console screen shows "Three.js r146" then the extension is included in the game.
whenever I create a new 3d scene it doesn't work, I tried playing another person's 3d project but when I started it up all I got was a blank screen any fixes?
Is it possible to increase or decrease the rendering distance? If possible, how to do this? If not, can you add it please? (add render resolution and other things to help game performance) Sorry my bad english.
Hey Pandako. I was asked to make a tutorial on how to make a game similar to Sonic X-treme or Bug!, so i thought it would be useful if you showed it on your page
There's a problem with the collision, at least for me. The camera appears to be on the very corner of the actual camera sprite, as attempting to walk through a wall on the left side of a room, the camera clips through a bit, but walking into the wall on the right side of a room doesn't even the the player walk even 3 quarters across the floor texture, relative to the right side of the player. If anybody can help, that would be great.
I'm just going to say this. I've been a developer using this game engine for quite a long time know, and this is extremely impressive!! This FPS controller has so much potential...
← Return to project
Comments
Log in with itch.io to leave a comment.
i made this co-op game with this plugin https://gob-gob-goblin-studio.itch.io/mushroom-mall-nerds
Hello Pandako, how do you actually integrate 3D models into a game? because whenever i try to create a 3D model in a game it just seems to not exist no matter what scale or position
Hi Abdullah33,
Are you trying to read an OBJ file?
Yes , i followed your tutorial video
You can see how the 3D model is loaded in the "Output 3D Model Information To Console" action.
Try pressing "Ctrl + Shift + i" in the preview window to see the console.
Do you know what these errors mean?
I don't have access to the image, so it's not showing.
For more immersive skyboxes I recommend going to Poly Haven for their pure sky hdri's.
This: https://polyhaven.com/hdris?s=pure%20skies
They're free, Under CC0 License , HD, and beautiful.
I have a question, how do i make buttons that you can press just like on one of the demo projects and how to i slightly tilt the camera down
Hi! It seems impossible to use Particles with this extension? I tried to create a particle of a blood after killing an enemy or particles for a firethrower weapon. The same with tween behavior.
Hi, I have got an problem. I am using 3d extension and I wanted to create fps like wolfenstein, problem is that camera object(that rotation is following coursor) stopped working when it reached edge of screen. Then I found mouse pointer lock extension, but when I am using it my camera does only shake, can you please help me?
"MousePointerLock::MovementX()" returns the distance the mouse cursor moves, not the angle.
Therefore, it is not a suitable value for the "Rotate toward angle" action. Using the "Rotate" action instead might work.
Excuse me and I probably just suck, but for some reason, the animations on the sprites aren't working. I'm using 6.1 I think.
Maybe this will solve the problem you're having.
Thanks, Pandako your extension is really cool.
i made a game with your extension check it out man https://gob-gob-goblin-studio.itch.io/farm-exl
I was wondering why my game is not rendering anything, but the plane is gone, and the camera isn't hidden. and i tried networking, I might try this on a new PC but if you can provide a fix it will help alot.
Here is a photo of what is happening
do you have this code?
Thank you for sharing, and I'm sorry for not posting sooner. I have already figured out the problem.
no problem lol 🤣
Hey Pandako, i have been wondering.
How do you make things dark like a horror game?
Lights are not yet supported by the extension. You can use a dark fog to provide some of that effect - see the example at the top. Lights *are* supported by the engine itself, so hopefully in a future update we will get support inside GDevelop events for controlling lighting.
You can also just make dark textures. And textures that simulate dark lighting.
What!? 3D in GDevelop??? How cool is that!?
Hey Pandako!
Thanks for this awesome plugin ! I have question. I am using this extension in my game. but when new version of extension is released I am not able to update it. How should I update Extension without disturbing the game.
Hi RudrakshGames,
It will automatically update when you import a new version. However, since this extension is under development, I cannot guarantee that it will update correctly.
FUN FACT: If you use this extension along with Arthuro555's Multiplayer extension. You can make 3D multiplayer games. Pretty cool I'd say.
Hey Pandako!
This plugin is awesome! Random question, are we able to update the sky box? I've tried a few different things but it doesn't seem to work.
Check this https://itch.io/post/7286931
Thanks for the reply, I'm able to load and show a sky box I was trying to see if I could swap the images without reloading the whole 3D scene.
oh ok
Hi spintron17,
You can use "Create 3D Scene" to update the background without erasing the existing 3D objects. However, the camera position is initialized, so you should be careful about that.
I will give that a shot, thank you! This extension is great!
Hi Pandako! I have made a game with your extension:
https://ikmalsaid.itch.io/sugar-rush
It's an early build of the game so it's subject to changes.
Thank you for your work! <3
how would I go about adding creating a 3D model with two textures?
I'm having trouble with the whole skybox thing.
I put "assets\\Sky.png" in the box several times and several ways, but it just keeps giving me a pink sky.
Anyone have a solution.
I had the same problem, but i fixed it by putting the skybox file image in the project folder and not in the assets folder
OMG thank you :D
Hi Pandako, the 3D isn't displaying and I'm using AMD as well. I just installed GDevelop fresh on 5.1.156 (see right of image), but it is still the same issue.
In my old project from a few months ago, I can see my camera sprite though as usual, the sky colour is same as the one I set and my events works fine.
Weirdly, playing games made with WithThreeJS works fine on Firefox so I don't know if there is something wrong with how I set up the camera.
I copied the texture URL from Resources panel and pasted it just to be sure, so I'm not sure what texture is "not found".
Thanks for your time!
Hi reina,
The cause of this problem is unknown, but if the problem does not occur when using network preview or previewing with the browser version of GDevelop, it may be an issue with Electron, which GDevelop uses.
(This problem appears to occur when using AMD CPU or GPU.)
If this is the case, unfortunately it would be difficult for me to solve the problem. 😥
Does your game render 3D scenes correctly in network previews or published games?
made a little game using your extension: https://liluo.io/smollander/haste-blade-3d
Let there be light 🙏
Very good addon
thanks a lot
Hi Pandako. Thanks for this work.
I was testing the version 6.4 and had fun but now, when I switch to the 7.0 on my project (I replace the older extension) it doesn't work anymore : when I preview it displays a grey screen but the game is turning well because I hear that I shoot and walk. (I didn't change anything in the code...).
How can I fix it ?
Hi UselessJAB,
I need more information to solve it.
Can you tell me what version of GDevelop you are using?
If you don't mind, press "ctrl + shift + i" in the preview window to open the developer tools and attach a screenshot of that console screen here.
I don't know why but, it works now... :D.
Does the Google Chrome update have a role in the previewing ?
Maybe it was just another update missing ; now everything is ok.
GDevelop should add this to the engine itself, imagine having a 3d editor inside of GDevelop, it would be great
Hello Pandako, I have a question. Is it possible to somehow add a shadow to objects?
apparently lighting is always possible but pretty sure its hard to implement
The engine (threeJS) supports lots of things - https://threejs.org/examples/#webgl_lights_physical
but there is a big difference between an isolated tech demo and integration into GDevelop. A while ago Pandako said lighting was not a priority, but it is listed above as a future goal so it might be not so far away at this point.
so im not sure if its only AMD but when i use the extension in the new gdevelop with the new ui, when i preview, all 2d elements are visible but 3d elements are invisible, camera is visible and scene background is black, i think the new gdevelop update is the problem because i didn't update gdevelop before and it worked fine until I did update gd5, i see it works fine for other people, i found a workaround which is to preview over lan and open web browser
Thanks for letting me know. I can't reproduce the issue on my PC, but I'm currently investigating the cause.
This is similar to the bug contained in GDevelop 5.1.154.
It should have been improved in the latest GDevelop 5.1.155, but the improvement may have been incomplete.
Also, I've confirmed that the latest browser versions of GDevelop also have the problem. I have contacted GDevelop about this issue.
If you don't mind, press ctrl + shift + i in the preview window to open the developer tools and attach a screenshot of that console screen here. (What I need is the 3rd line)
If the third line of the console screen shows "Three.js r146" then the extension is included in the game.
I was trying to solve the issue earlier and used GDevelop's built-in debugger and it did show ThreeJS r146
Thanks for checking.
If you see it, GDevelop may not be the cause. More information is needed to resolve it.
GDevelop 5.1.156 will be released soon. Please update and check if the issue is resolved.
whenever I create a new 3d scene it doesn't work, I tried playing another person's 3d project but when I started it up all I got was a blank screen any fixes?
preview over lan and goto localhost:2929 in your eeb browser on the pc you using GDevelop on, im having the same issue
Thanks for letting me know. I can't reproduce the issue on my PC, but I'm currently investigating the cause.
See comments above for follow-up.
[EDITED] Ok, events are true and work well. But as i see, the problem is in Projection scale. All objects are shifted by a few pixels. How to fix it?
Make sure to just center the origin point of the camera object
Yes, it works. Thank you so much!
Nice
Hi, how to make pistol?
Hello Pandako,
how do I create OBJ objects in front of camera (like 3rd person games)?
Hello Pandao, do you know how to make a working pistol for both the NPC and the player? In general, as in this video -
Hi Pandako, I added calculation for precise 2d to 3d sprite projection bullet collision, where do I send the code?
Hi planktonfun,
Thanks for the interesting experiment.
Please use discord DM.
When "WithThreeJS" extension is loaded, edit the "Create3dScene" option.
See line 71 -
Camera.far = 1000;
Increase the value to render further.
Hey Pandako. I was asked to make a tutorial on how to make a game similar to Sonic X-treme or Bug!, so i thought it would be useful if you showed it on your page
There's a problem with the collision, at least for me. The camera appears to be on the very corner of the actual camera sprite, as attempting to walk through a wall on the left side of a room, the camera clips through a bit, but walking into the wall on the right side of a room doesn't even the the player walk even 3 quarters across the floor texture, relative to the right side of the player. If anybody can help, that would be great.
You ust need to center the origin point of the camera sprite
Ah, thanks, i'm pretty new to Gdevelop.
Nice
Made a short FPS game with the extension you can play it and download the project file.
https://tenzin567.itch.io/fps-arena
I'm just going to say this. I've been a developer using this game engine for quite a long time know, and this is extremely impressive!! This FPS controller has so much potential...
Thanks it would be great if people used it as a base for their own games
Thanks for the great work. 👍
i see a soldier TF2 shotgun
yeah I traced it lol
It would be useful to have a condition to check the rotation of the camera