I need to ask another question: How do I put 3D objects to be rendered first? So that it appears behind everything else. I need this to make a dynamic skybox with moving clouds.
I saw a comment about it being related to projection scale but so far no luck.
The short answer is to do 2d collision like you would for a 2d game - you might want to use Platformer & Platform behaviours, use the "Serparate two objects" action, etc - or create a specially crafted hitbox for each model.
Quick question! I am having a little problem where I can't move my head up and down only left and right. Now the thing is that I have the camera linked to the player so if anyone could help out that would be Noice!
How to shoot straight to the center of camera instead of shooting bullets fromt the side with an angle? What should i use instead of "WithThreeJS::CameraAngle("Y")-90"?
For example, i have an object with Linked 3d camera. How to shoot straight in front of the camera from the center of the camera? Why the camera looks to the left of the object? How to turn the camera to look to the front direction? Anyway how to shoot straight?
This is a silly request but imagine playing a video or mp3 file as a 3D flat image thing! Wouldn't that be cool? Anyway, just a silly suggestion! Great job on your extension btw!
Theirs a bug in the bounding box collision example where theirs no deceleration if you hold into a wall. Like if Im holding left and up into a wall then stop pressing the left input it keeps moving in the left direction.
Hey, Pandako, I'm having problems with the 'rotate camera like head' action. None of the tutorials on YouTube seem to be working, and I have a feeling the problem is on my end. That said, do you have any ideas on how I could turn the camera using the mouse in an alternative way? I don't necessarily need the player to be able to look up, but it would be a nice addition. I'm making an open-world RPG and it would be disastrous if the users had to rotate the camera by just using the arrow keys.
1. There's a FPS Arena project on youtube based on your extension. And 3d sprites enemies can easily go through the walls ( like a half on the enemy can be inside an edge of the 3d block). What's the possible reasons of this bug? Is it just a collision problems or it's a problem of adapting a pathfinding behaviour to 3d? 2. How to make a working pathfinding in 3d? My enemies just stopped to walk while they did it before. Like what's the minimum requirements for pathfinding?
Hi yarsvet, 1. I think that's because the collision mask of the sprite is too small. Try making it bigger. 2. Sadly I don't know pathfinding yet, if you've never done it before try learning from a 2d tutorial before trying to do it for a 3D game.
Hi Pandako!, I really enjoy using the extension you made, but I have a small problem. I was trying to add being able to click projected sprites. However, it doesn't seem to work. I need to click the original sprite (which is hidden) to be able to interact with the projected one. I think it would be a nice idea to be able to interact with projected sprites more! If there is a work around, hope you don't mind informing me!
Hi Pandako! You've one a great job with this extension! It has so much potential! I have just one concern though. While messing around with the extension to make a small FPS, I noticed that whenever I fire bullets, The bullets appear behind everything else on the screen. I've checked the Z-order and all my code seems to be just like all the others that have made similar things with the extension, and yet I somehow still haven't managed to find a fix for my problem. Do you know what I could possibly be missing?
You may be generating bullets in the wrong position. Maybe by turning off the "Hide 2D Object" of the player (camera) and the bullets you may be able to see where the bullets are being generated.
Hi there! I bought the example projects today and I had a question. Some of the scenes, the 3rd person perspective example for one, appear blank. The example runs fine but I can't seem to figure out how to view the layout. In the editor all I see is a white window with s!me text. I'm a gdevelop newb so a little help would be appreciated.
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?
← Return to project
Comments
Log in with itch.io to leave a comment.
How do you add 3d sound?
this doesn't seem to be working
i tried checking if it was playing by using the condition to check whether a 3D sound was playing but it always returned false
i'm guessing it has got something to do with me leaving the "Parent 3D Object ID" as blank ("")
clamp
Hi Pandako! Firstly thank you for the update.
I need to ask another question:
How do I put 3D objects to be rendered first? So that it appears behind everything else.
I need this to make a dynamic skybox with moving clouds.
I saw a comment about it being related to projection scale but so far no luck.
Pandako (or anyone), does anyone know how to collide with 3d models???
The short answer is to do 2d collision like you would for a 2d game - you might want to use Platformer & Platform behaviours, use the "Serparate two objects" action, etc - or create a specially crafted hitbox for each model.
how would I create a hitbox for models?
Quick question! I am having a little problem where I can't move my head up and down only left and right. Now the thing is that I have the camera linked to the player so if anyone could help out that would be Noice!
Turn off link angle in the cameras behaviour
Ok Ty!
Hi Pandako,
Am I permitted to use the given characters from the assets folder in my own game?
nice extension
How to shoot straight to the center of camera instead of shooting bullets fromt the side with an angle? What should i use instead of "WithThreeJS::CameraAngle("Y")-90"?
For example, i have an object with Linked 3d camera. How to shoot straight in front of the camera from the center of the camera? Why the camera looks to the left of the object? How to turn the camera to look to the front direction? Anyway how to shoot straight?
CenterY?
Hi Pandako,
How do I change the near & far clipping of my camera? I would like to be able to get close to objects while having a 90 FOV.
(My previous issue is solved, after the update I redid my camera events & it worked fine)
Hello reina,
This extension does not yet support changing the "near" and "far" properties, but this can be done using Javascript.
"const Camera = gdjs.__WithThreeJS.get("Camera");"
This will give you access to the camera.
Please understand, however, that I do not recommend using Javascript to control this extension.
This extension will support changing camera properties in the future.
These were supported in version 0.8.1.
This is a silly request but imagine playing a video or mp3 file as a 3D flat image thing! Wouldn't that be cool? Anyway, just a silly suggestion! Great job on your extension btw!
Theirs a bug in the bounding box collision example where theirs no deceleration if you hold into a wall. Like if Im holding left and up into a wall then stop pressing the left input it keeps moving in the left direction.
I could not confirm the problem on my PC. Please let me know the steps to reproduce the issue.
yeah no problem
https://drive.google.com/file/d/18mm8aUu7SA93WzvJp3b3d42TV_IqdR0d/view?usp=shari...
Thanks for the video. I now understand what you are trying to say.
This is a problem with the "Speed on the X axis" action in the "Top-down movement" behavior.
I will report this issue to GDevelop.
Is there a good way to use the fire bullets extension in the side view camera? I can't seem to figure out how to use it...
Hey, Pandako, I'm having problems with the 'rotate camera like head' action. None of the tutorials on YouTube seem to be working, and I have a feeling the problem is on my end. That said, do you have any ideas on how I could turn the camera using the mouse in an alternative way? I don't necessarily need the player to be able to look up, but it would be a nice addition. I'm making an open-world RPG and it would be disastrous if the users had to rotate the camera by just using the arrow keys.
Have you seen my tutorial? it shows you how to make camera rotation using the mouse from scratch
I hope it helpsThanks!
I guess I kept the link angles function on.
Hey nice tutorial!
i have a similar problem with the player to be able to look up
Hi, Pandako! Could you answer two questions :
1. There's a FPS Arena project on youtube based on your extension. And 3d sprites enemies can easily go through the walls ( like a half on the enemy can be inside an edge of the 3d block). What's the possible reasons of this bug? Is it just a collision problems or it's a problem of adapting a pathfinding behaviour to 3d?
2. How to make a working pathfinding in 3d? My enemies just stopped to walk while they did it before. Like what's the minimum requirements for pathfinding?
Hi yarsvet,
1. I think that's because the collision mask of the sprite is too small. Try making it bigger.
2. Sadly I don't know pathfinding yet, if you've never done it before try learning from a 2d tutorial before trying to do it for a 3D game.
Hi Pandako!, I really enjoy using the extension you made, but I have a small problem. I was trying to add being able to click projected sprites. However, it doesn't seem to work. I need to click the original sprite (which is hidden) to be able to interact with the projected one. I think it would be a nice idea to be able to interact with projected sprites more! If there is a work around, hope you don't mind informing me!
Use Raycast to click on 3D objects. The "Raycast Example" and "Change 3D Texture Example" will help you.
Thanks! It works now
Hi Pandako! You've one a great job with this extension! It has so much potential! I have just one concern though. While messing around with the extension to make a small FPS, I noticed that whenever I fire bullets, The bullets appear behind everything else on the screen. I've checked the Z-order and all my code seems to be just like all the others that have made similar things with the extension, and yet I somehow still haven't managed to find a fix for my problem. Do you know what I could possibly be missing?
Hello The Creator,
You may be generating bullets in the wrong position. Maybe by turning off the "Hide 2D Object" of the player (camera) and the bullets you may be able to see where the bullets are being generated.
I managed to fix the problem! It seems like the issue was linked to the bullet's projection scale for some reason
Hi there! I bought the example projects today and I had a question. Some of the scenes, the 3rd person perspective example for one, appear blank. The example runs fine but I can't seem to figure out how to view the layout. In the editor all I see is a white window with s!me text. I'm a gdevelop newb so a little help would be appreciated.
Some scenes in the example project create 3D objects from events. (e.g. "Basic example")
Please check the event sheet.
Yes, I figured that out after reviewing the different scenes more closely. Thanks for the reply.
im trying to make a flamethrower weapon . how are you using emitters in the example
I wonder if this'll ever get a discord server. For real-time help and advice from other experienced users of the extension.
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
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 🙏