trešdiena, 2022. gada 13. aprīlis

makehuman 3d object maker, creating buildings




in order to get animations - https://www.mixamo.com/#/ creating buildings - https://ranjian0.github.io/building_tools/

check this for mixing animation files on one - https://github.com/nilooy/character-animation-combiner

definetely make sure animation track names match code.
If anybody is interested in development of the game map - here are the blender project files on dropbox. Idea that blender created object files can contain textures does not work. Prolly need to "hardcode them in the javascript" part.

https://www.dropbox.com/s/dirnbh3zfo39bfh/outside_the_box.zip?dl=0

Any tips write to r.mazitis@gmail.com or hit me on twitter @lv88h

trešdiena, 2022. gada 30. marts

NVIDIA nerf graphics primitives also 2d images to 3d (TRY MESHROOM INSTEAD!)

NVIDIA thing really does not work well, trying meshroom has better  output, my advice would be downloading some sort of 3d scanner app for phone, make dataset of images of the object, copy images to pc, download background remover - https://github.com/nadermx/backgroundremover or use green screen. create .obj file, degrade vertices and use it.



https://github.com/lv88h/instant-ngp

So for this to work You have to have g++/gcc version 10. Cmake has to be set to use it. 

Later, might try to make up some 3d objects from pictures I could use for already made game code (implementation).









My code that could help idea - 


/opt/cmake-3.22.3-linux-x86_64/bin/cmake  -B build
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Mon_May__3_19:15:13_PDT_2021
Cuda compilation tools, release 11.3, V11.3.109
Build cuda_11.3.r11.3/compiler.29920130_0




CMake Error in /home/ronalds/Desktop/GECKOS/instant-ngp/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
  CUDA_ARCHITECTURES is empty for target "cmTC_9c06a".


CMake Error in /home/ronalds/Desktop/GECKOS/instant-ngp/build/CMakeFiles/CMakeTmp/CMakeLists.txt:
  CUDA_ARCHITECTURES is empty for target "cmTC_9c06a".


CMake Error at /opt/cmake-3.22.3-linux-x86_64/share/cmake-3.22/Modules/CMakeTestCUDACompiler.cmake:43 (try_compile):
  Failed to generate test project build system.
Call Stack (most recent call first):
  CMakeLists.txt:18 (PROJECT)



Build cuda_11.3.r11.3/compiler.29920130_0


the thing that builds -- 
/opt/cmake-3.22.3-linux-x86_64/bin/cmake  -B build


cmake --build build --config RelWithDebInfo -j 16



the thing that installs -- 
/opt/cmake-3.22.3-linux-x86_64/bin/cmake --build build --config RelWithDebInfo -j 16



update-alternatives --config gcc

sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 50

nvcc --compiler-bindir=/usr/lib/gcc hello.cu -o hello


running nerf fox --

instant-ngp$ ./build/testbed --scene data/nerf/fox

otrdiena, 2022. gada 15. februāris

video game development 4 (updated 25.may 2022) kinda works with need of small fixes




https://enable3d.io/examples.html

 https://drive.google.com/file/d/1bcif6Iau33xugA8qgut8gtn5T3dgQnwQ/view?usp=sharing 




april 6. game.php file - https://pastebin.pl/view/aad6e4a3

changes: added text from chat appearing on screen, location updation still glitches...



changes: added few backend files to update new tables for chat inside the game, and also front end


8.march game.php file - https://pastebin.pl/view/0ca50d39

7.march game.php file - https://pastebin.pl/view/5bcc0e43


the thing works, kinda updates character and creates other characters, which also get updated. if Your character pushes other character coordinates still does not get updated, but that's a small fix I will prolly implement in few days. 

right now y coordinates of character does not get updated when jumping

(remember using correct database structures), once it be fixed to work at least minimally - will add more documentation.






personal opinion: this been tough for me, as I love video games and programming, but I always thought video game engines or music patterns should be more open to people choices to modify them for good reasoning. I respect everyone that worked on there games and sell them, it's just that, we need to maintain documentation for every thing so our future children will be able to do any job, including video game programming and modelling, besides doing things in reality, which should also be more documented. 








older code versions with some ideas -- 





22.feb (still not working) - 
 
problem -         update(time, delta, myMans, object) { // lai Viņš strādātu object subklasēm būtu jābūt pieejamām, object rodās pašā sākumā pie skin izvēles

if You want 22.feb version to work, besides fixing code Your should add row called "skin" on users table. Also, You can get .sql file for database in 20.feb version zip. file.




26.feb - game.php file - https://pastebin.pl/view/4f71c7c8


Problems: "Uncaught SyntaxError: missing ) after argument list"  for some reason code thinks, I'm missing paranthesis...


27.feb - game.php file - https://pastebin.pl/view/17d3ad63


Problems : no character? 

somehow ARRAY myMans have 4 items instead of 2.


getting array outside async function


https://pastebin.pl/view/5581af9f

turns out global arrays are defined in constructor.


28.feb - game is working, but character visualization is still missing, and jump seems to not work...





problems solution : 

                      this.myMans[i].add(this.myMans[0]);

should be same as  in original code

            this.man.add(man)

but we get 

THREE.Object3D.add: object can't be added as a child of itself.

enable3d.phaserExtension.0.25.0.min.js:1 THREE.Object3D.add: object not an instance of THREE.Object3D.


well
                      this.myMans[i] = new ExtendedObject3D()
this shoulda  create the object for every iteration.....






2.march - game.php file - https://pastebin.pl/view/dbaaf279



3.march - game.php file - https://pastebin.pl/view/0b485ff8

no errors but no character gets drawn.

ceturtdiena, 2022. gada 27. janvāris

video game development 2



https://drive.google.com/file/d/1atiTldKCQRdk8jI45I41zU4eSowXFqLl/view

https://drive.google.com/file/d/1Vm7XiyTjvKRax3DEoLdCLfxyvpaw3tfx/view


nautilus grouping panel to dash

gsettings set org.gnome.shell.extensions.dash-to-dock isolate-locations false



Ubuntu Tips: How To Launch Applications Automatically During Startup

  • Step 1: Go to “Startup Application Preferences” in Ubuntu. Go to System -> Preferences -> Startup Application, which will display the following window. ...
  • Step 2: Add the startup program.

extract frames from video and create video from frames using ffmpeg (whole tutorial later)

 ffmpeg -i kickflip.mp4 '%04d.png'


for 60 fps video

ffmpeg -framerate 60 -pattern_type glob -i '*.png'   -c:v libx264 -pix_fmt yuv420p result4.mp4


pirmdiena, 2022. gada 3. janvāris

How to mount external hard drive EXT4 to ubuntu linux?

open nautilus check if drive appears - if it appears it has number like 68fdbd51-a4d0-4e10-b665-156f40dc2a86

check mounted devices - lsblk 

check fstab cat /etc/fstab

(replace username with Your system username)

sudo chown -R $USER:$USER /media/username/68fdbd51-a4d0-4e10-b665-156f40dc2a86

sudo chmod -R 777 /media/username/68fdbd51-a4d0-4e10-b665-156f40dc2a86