3D game objects in Defold (SOLVED)

#1

Hi all,

I’m trying to do simple 3D in Defold. I read the docs and some of the examples but still couldn’t make the model show up. Does anyone have an example project where you could show the 3D model in Defold? (with rendercam library would be great, the start project does have rendercam but I couldn’t make it work)

I just wanna try something simple like show 3D models (boxes, cubes,…), animate them (rotations, change positions, …) but could not do it on my own :frowning:

Thanks a lot!

0 Likes

#2

This template has a basic 3D setup with RenderCam:

0 Likes

#3

That’s the template I was talking about. The thing is, it has no sample model. I added the model as the docs said, but nothing shows up. I wish that this template has a simple model with material and necessary stuffs so that I can start looking and learn.

For example, in other templates I have the background and the Defold logo game objects as a starting point. But this template has none :frowning:

0 Likes

#4

Oh, I see. I’ll fix something for you in an hour.

0 Likes

#5

I’ve updated the template so that it contains a textured cube that rotates and a directional light that follows the mouse.

2 Likes

#6

Thanks so much :smiley: I’ll look at it now!

0 Likes