hi.
i made a simple puzzle game using three.js.
this game inspired by triple town.
the game can be played at itch.io( TripleBuilder by Ozymandiaz )
thank you to three.js. and thank you for this forum.
best regards.
source code is here:
hi.
i made a simple puzzle game using three.js.
this game inspired by triple town.
the game can be played at itch.io( TripleBuilder by Ozymandiaz )
thank you to three.js. and thank you for this forum.
best regards.
source code is here:
hello, well done for this work, I want to know how you can make the shadow of your model and when you click it will be placed on the scene , i need a help because i am begginner in three js
i think the best way is to analyze the shadow example of three.js (three.js examples).
but, in my opinion that the shadow of three.js is related to the shadow camera, the size of the shadow map texture, and the size of the scene using the shadow.
I think a good quality shadow can be seen only when the size and shadow setting of the scene containing shadow objects match well.
you can get the source code for the this game above here at (GitHub - Ozymandias1/triplebuilder).
and the way i handled the shadow map in this game is as below.
I hope it was helpful.
best regards.
Thank you very much for your answer , I have another question , when I put the cursors on the grid the model will be appears but with low opacity and when I click on a specific location it will be placed, I want to know how I can do it , i will be happy if you help me thank u again
i created and used a preview-only object(named by ‘cursor’ in gamelogic.ts) to see which model will be placed when the player clicks the mouse.
the preview object cloned the geometry and material of the object to be placed(source object) to set the transparent of the material to true, set the opacity to 0.5, and then picking the grounds in the mouse movement event to apply its position value to the preview object.
in this state, when the player invokes a mouse button-up event, it creates and places the original object in the scene, performs a memory release of the cursor object, and then creates a new cursor object.
how to handle this process in this game, follow this steps:
i don’t know if the meaning will be conveyed well by using a translator, but I hope it was helpful.
thank u a lot <3