# I found the "Basic 3D Project" TEMPLATE have updated!

**URL:** <https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530>\
**Category:** General\
**Created:** [March 14, 2026, 4:20am UTC](https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530 "2026-03-14T04:20:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JuLongZhiLu](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/julongzhilu/32/42720_2.png) [@JuLongZhiLu](https://forum.defold.com/u/JuLongZhiLu)\
**Post date:** [March 14, 2026, 4:20am UTC](https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530/1 "2026-03-14T04:20:48Z")

</div>

Great! it looks better then before 😀 👍

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/0/d/0dd6fcc2edf9a06e051ee64580a815af4cf715ea.jpeg)

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/2/e/2e0e3ec15bc34c346b6b569f429f5c89208687bc.png)

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [March 14, 2026, 7:32am UTC](https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530/2 "2026-03-14T07:32:10Z")

</div>

Thanks! We needed to update it, as it was using the builtin .dae files that are deprecated and that we want to [remove](https://forum.defold.com/t/removing-collada-support-and-the-asm-js-platform/82506/2). Btw, you can use the texture in it as you wish, hope it will be useful!  
We also plan to add also some more complex 3D templates/samples in the future. I think for example a basic FPS template would be nice!

---

<div class="post-metadata">

**Author:** ![Asatte](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/asatte/32/39093_2.png) [@Asatte](https://forum.defold.com/u/Asatte)\
**Post date:** [March 14, 2026, 7:54am UTC](https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530/4 "2026-03-14T07:54:19Z")

</div>

Great to hear 3D is getting more focus!  
I am also planning on starting a 3D series for FPS with Defold but waiting for the updates like new light component and better PBR. Is there any chance that they will be added in 2-3 months? I want to have the tutorial on the lates version of major 3D improvements and don’t want it to become obsolete/outdated in a few months 😅

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [March 14, 2026, 8:02am UTC](https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530/5 "2026-03-14T08:02:41Z")

</div>

This is our focus, especially @jhonny.goransson is working hard on it, so perhaps can share more 😉

---

<div class="post-metadata">

**Author:** ![jhonny.goransson](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/jhonny.goransson/32/3864_2.png) [@jhonny.goransson](https://forum.defold.com/u/jhonny.goransson)\
**Post date:** [March 14, 2026, 8:08am UTC](https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530/6 "2026-03-14T08:08:39Z")

</div>

Yes it’ll be added soon, within a month I think.

---

<div class="post-metadata">

**Author:** ![Asatte](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/asatte/32/39093_2.png) [@Asatte](https://forum.defold.com/u/Asatte)\
**Post date:** [March 14, 2026, 8:18am UTC](https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530/7 "2026-03-14T08:18:59Z")

</div>

Great, can’t wait for it!

---

<div class="post-metadata">

**Author:** ![iotaHum](https://forum-defold.b-cdn.net/letter_avatar_proxy/v4/letter/i/977dab/32.png) [@iotaHum](https://forum.defold.com/u/iotaHum)\
**Post date:** [March 14, 2026, 10:12pm UTC](https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530/8 "2026-03-14T22:12:22Z")

</div>

I find simple examples like this very helpful. In playing about with it I ended up with a script error. It took me longer than it should of to realise why!  
**Quiz**  
Why does the following (just the first two lines are new, and game input bindings for up & down set correctly)

```lua
function on_input(self, action_id, action)
	if action_id == hash("up") then self.light.y = 2
	elseif action_id == hash("down") then self.light.y = 1 end
	
	-- move directional light based on input
	self.light.x = 3 * ((action.x - 480) / 480) -- line 25
	self.light.z = -3 * ((action.y - 320) / 320)

	-- update uniforms for models with new light position
	go.set("#cube", "light", self.light)
	go.set("/plane#quad", "light", self.light)
	go.set("/spheres#right", "light", self.light)
	go.set("/spheres#left", "light", self.light)
end

```

When up arrow is pressed, it results in the error:

```lua
ERROR:SCRIPT: main/main.script:25: attempt to perform arithmetic on field 'x' (a nil value)

```

Strange, how could setting the y value make x a nil value?  
How quickly did you solve it?  
**Don’t post the answer.**

---

<div class="post-metadata">

**Author:** ![Asatte](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/asatte/32/39093_2.png) [@Asatte](https://forum.defold.com/u/Asatte)\
**Post date:** [March 15, 2026, 7:29am UTC](https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530/9 "2026-03-15T07:29:16Z")

</div>

action will have x and y value only for mouse movements and clicks I believe. If you press a key, it will not have position so trying to get the x or y value will return an error. What needs to be done is to wrap the parts you check for action.x or y with: `if action.x and action.y then`

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [March 15, 2026, 12:00pm UTC](https://forum.defold.com/t/i-found-the-basic-3d-project-template-have-updated/82530/10 "2026-03-15T12:00:10Z")

</div>

Sorry, the template script is usually to be deleted, so I tried to make it as simple as is and in the previous version it also handled only mouse/touch input 😅
